Skip to content

Commit

Permalink
Update script
Browse files Browse the repository at this point in the history
  • Loading branch information
fisenkodv committed Apr 14, 2018
1 parent 186e2a7 commit 9a97be1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 50 deletions.
5 changes: 2 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,13 @@ jobs:
- run:
name: Build package
command: |
node ./scripts/prebuild.js
node ./scripts/version.js
cat src/environments/environment.prod.ts
PROD_CONFIG=export const environment={production:true,google:{maps:{apiKey:'$MAPS_API_KEY',libraries:['places']},places:{apiKey:'$PLACES_API_KEY'}},firebase:{apiKey:'$FIREBASE_API_KEY',authDomain:'$FIREBASE_AUTH_DOMAIN',databaseURL:'$FIREBASE_DB_URL',projectId:'$FIREBASE_PROJECT_ID',storageBucket:'$FIREBASE_STORAGE_BUCKET',messagingSenderId:'$FIREBASE_MESSAGING_SENDER_ID'}};
ECHO $PROD_CONFIG > src/environments/environment.prod.ts
node ./node_modules/@angular/cli/bin/ng build --env=prod
- run:
name: "Publish to Firestore"
command: |
ls -la
node node_modules/firebase-tools/bin/firebase deploy --token=$FIREBASE_TOKEN --non-interactive
- save_cache:
paths:
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"lint": "ng lint",
"e2e": "ng e2e",
"version": "node ./scripts/version.js",
"prebuild": "node ./scripts/prebuild.js",
"postinstall": "npm run version"
},
"private": true,
Expand Down Expand Up @@ -58,7 +57,6 @@
"@types/jest": "^22.2.0",
"@types/node": "~6.0.60",
"codelyzer": "^4.2.1",
"ejs": "^2.5.8",
"firebase-tools": "^3.18.4",
"jasmine-core": "~2.8.0",
"jasmine-spec-reporter": "~4.2.1",
Expand Down
30 changes: 0 additions & 30 deletions scripts/prebuild.js

This file was deleted.

15 changes: 0 additions & 15 deletions src/environments/environment.ts.template

This file was deleted.

0 comments on commit 9a97be1

Please sign in to comment.