-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from GDGCochabamba/develop
First test version
- Loading branch information
Showing
80 changed files
with
2,521 additions
and
642 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
working_directory: ~/project | ||
docker: | ||
- image: circleci/node:12.9.1-browsers | ||
steps: | ||
- checkout | ||
- run: | ||
name: Show current branch | ||
command: echo ${CIRCLE_BRANCH} | ||
- restore_cache: | ||
keys: | ||
- v1-dependencies-{{ checksum "package.json" }} | ||
- v1-dependencies- | ||
- run: | ||
name: Install dependencies | ||
command: npm install | ||
- save_cache: | ||
key: v1-dependencies-{{ checksum "package.json" }} | ||
paths: | ||
- node_modules | ||
- run: | ||
name: Linting | ||
command: npm run lint | ||
- run: | ||
name: Inject keys | ||
command: npm run keys:inject | ||
- run: | ||
name: Testing | ||
command: npm run test | ||
- run: | ||
name: Enable indexing | ||
command: sed -i 's/<meta name="robots" content="noindex">/<!-- <meta name="robots" content="noindex"> -->/' src/index.html | ||
- run: | ||
name: Building | ||
command: npm run build:prod | ||
- save_cache: | ||
key: v1-dist-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }} | ||
paths: | ||
- dist | ||
- package.json | ||
- firebase.json | ||
- .firebaserc | ||
|
||
deploy: | ||
docker: | ||
- image: circleci/node:12.9.1-browsers | ||
working_directory: ~/project | ||
steps: | ||
- run: | ||
name: Show current branch | ||
command: echo ${CIRCLE_BRANCH} | ||
- restore_cache: | ||
key: v1-dist-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }} | ||
- run: | ||
name: Install deploy tool | ||
command: npm install --save-dev firebase-tools | ||
- run: | ||
name: Deploy project | ||
command: npm run deploy:prod -- --token=$FIREBASE_DEPLOY_TOKEN | ||
|
||
workflows: | ||
version: 2 | ||
build_and_deploy: | ||
jobs: | ||
- build: | ||
filters: | ||
branches: | ||
only: | ||
- develop | ||
- master | ||
- deploy: | ||
requires: | ||
- build | ||
filters: | ||
branches: | ||
only: | ||
- master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"projects": { | ||
"production": "gdg-cbba-bo" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"hosting": { | ||
"public": "dist/gdg-website", | ||
"ignore": [ | ||
"firebase.json", | ||
"**/.*", | ||
"**/node_modules/**" | ||
], | ||
"rewrites": [ | ||
{ | ||
"source": "**", | ||
"destination": "/index.html" | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.