Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup Circleci #50

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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