Added continues integration

This commit is contained in:
ztimson 2019-07-09 12:23:53 -04:00
parent fc0e2cf4f9
commit 61eb82c6db
5 changed files with 1940 additions and 550 deletions

67
.circleci/config.yml Normal file
View File

@ -0,0 +1,67 @@
version: 2
jobs:
build:
docker:
- image: circleci/node:10.9-browsers
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run:
name: Install Dependancies
command: yarn
- save_cache:
key: v1-dependencies-{{ checksum "package.json" }}
paths:
- node_modules
- run:
name: Build
command: yarn build --prod
- persist_to_workspace:
root: ~/repo
paths:
- node_modules
- dist/MapAlliance
- store_artifacts:
path: dist/MapAlliance
deploy:
docker:
- image: circleci/node:10.9-browsers
working_directory: ~/repo
steps:
- checkout
- attach_workspace:
at: ./
- run:
name: Deploy
command: yarn deploy
workflows:
version: 2
build_and_deply:
jobs:
- build
- deploy:
requires:
- build
filters:
branches:
only: master

2401
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,8 @@
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
"e2e": "ng e2e",
"deploy": "firebase deploy --only hosting --token \"${FIREBASE_TOKEN}\""
},
"private": true,
"dependencies": {
@ -36,6 +37,7 @@
"@angular/compiler-cli": "~8.0.1",
"@angular/language-service": "~8.0.1",
"@types/node": "~8.9.4",
"firebase-tools": "^7.0.2",
"ts-node": "~7.0.0",
"tslint": "~5.15.0",
"typescript": "~3.4.3"

View File

@ -1,3 +1,12 @@
export const environment = {
firebaseConfig: {
apiKey: "AIzaSyDFtvCY6nH_HUoTBNf_5b-E8nRweSLYtxE",
authDomain: "mapalliance-ab38a.firebaseapp.com",
databaseURL: "https://mapalliance-ab38a.firebaseio.com",
projectId: "mapalliance-ab38a",
storageBucket: "",
messagingSenderId: "443222036375",
appId: "1:443222036375:web:2e2906e3ca49aa63"
},
production: true
};

View File

@ -3,6 +3,15 @@
// The list of file replacements can be found in `angular.json`.
export const environment = {
firebaseConfig: {
apiKey: "AIzaSyDFtvCY6nH_HUoTBNf_5b-E8nRweSLYtxE",
authDomain: "mapalliance-ab38a.firebaseapp.com",
databaseURL: "https://mapalliance-ab38a.firebaseio.com",
projectId: "mapalliance-ab38a",
storageBucket: "",
messagingSenderId: "443222036375",
appId: "1:443222036375:web:2e2906e3ca49aa63"
},
production: false
};