Skip to content

Commit

Permalink
Merge pull request #6 from GDGCochabamba/develop
Browse files Browse the repository at this point in the history
First test version
  • Loading branch information
combimauri authored Oct 22, 2019
2 parents 78bbb5f + 2ebfdfd commit bec4e60
Show file tree
Hide file tree
Showing 80 changed files with 2,521 additions and 642 deletions.
79 changes: 79 additions & 0 deletions .circleci/config.yml
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
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"production": "gdg-cbba-bo"
}
}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ speed-measure-plugin*.json

# IDE - VSCode
.vscode/*
!.vscode/settings.json
.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
Expand All @@ -40,6 +40,8 @@ npm-debug.log
yarn-error.log
testem.log
/typings
/.firebase
/src/environments/keys.ts

# System Files
.DS_Store
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# GdgWebsite

[![CircleCI](https://circleci.com/gh/GDGCochabamba/gdg-website.svg?style=svg)](https://circleci.com/gh/GDGCochabamba/gdg-website)

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.3.12.

## Development server
Expand Down
16 changes: 16 additions & 0 deletions firebase.json
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"
}
]
}
}
Loading

0 comments on commit bec4e60

Please sign in to comment.