Added builder

This commit is contained in:
Zakary Timson 2018-11-29 17:26:28 -05:00
parent 44cafb9fd9
commit 83ab8ff605
2 changed files with 79 additions and 46 deletions

32
.circleci/config.yml Normal file
View File

@ -0,0 +1,32 @@
version: 2
jobs:
build:
docker:
- image: circleci/node:10.4-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
- run:
name: Deploy
command: yarn deploy

View File

@ -7,7 +7,8 @@
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
"e2e": "ng e2e",
"deploy": "firebase deploy --token \"${FIREBASE_TOKEN}\""
},
"private": true,
"dependencies": {