Skip to content

Commit

Permalink
Merge pull request #51 from PHPSP/setup-circleci-new-try
Browse files Browse the repository at this point in the history
Setup Circleci
  • Loading branch information
jpjoao committed Jun 17, 2019
2 parents a1a61de + ca142db commit 58a79b8
Show file tree
Hide file tree
Showing 6 changed files with 7,396 additions and 11,462 deletions.
32 changes: 32 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: 2
jobs:
build:
docker:
- image: circleci/php:7.2-node-browsers

steps:
- checkout

- restore_cache:
keys:
- v1-dependencies-{{ checksum "composer.json" }}
- v1-dependencies-

- run: composer install --no-interaction --no-progress

- save_cache:
key: v1-dependencies-{{ checksum "composer.json" }}
paths:
- ./vendor

- restore_cache:
keys:
- node-v1-{{ checksum "package.json" }}
- node-v1-
- run: yarn install
- save_cache:
key: node-v1-{{ checksum "package.json" }}
paths:
- node_modules

- run: yarn production
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/build_local/
/build_production/
/build_*/
/node_modules/
/vendor/
.idea
/source/assets/build/
/source/assets/build/
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,19 @@ do nosso Slack.
* Enviar um PR para `master` com o novo conteúdo;

## Desenvolvimento do website local
Requisitos: PHP7.2 e NPM instalados localmente;
Requisitos: PHP7.2 e Yarn instalados localmente;
Passos:
* Fazer fork do repositório;
* Rodar composer install:
* > $ composer install
* Rodar NPM install:
* > $ npm install
* Reixar o NPM "observando" as mudanças (e gerando o conteúdo estático):
* > $ npm run watch
```sh
composer install
```
* Rodar yarn install:
```sh
yarn install
```
* Deixar o yarn "observando" as mudanças (e gerando o conteúdo estático):
```sh
yarn watch
```
* Enviar um PR para `master` com as alterações;
Loading

0 comments on commit 58a79b8

Please sign in to comment.