Skip to content

Commit

Permalink
Preparing for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Esplin committed May 21, 2018
1 parent 64b015f commit 9f63dcb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 97 deletions.
6 changes: 6 additions & 0 deletions bin/copy-public.sh
@@ -0,0 +1,6 @@
cp -R public/assets dist/assets
cp -R public/environments dist/environments
cp public/manifest.json dist/manifest.json
cp public/style.css dist/style.css
cp public/sw.js dist/sw.js

2 changes: 1 addition & 1 deletion firebase.json
Expand Up @@ -7,7 +7,7 @@
"indexes": "firestore.indexes.json"
},
"hosting": {
"public": "public",
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -34,7 +34,8 @@
},
"scripts": {
"start": "webpack-dev-server --mode development --env.development",
"build": "webpack --mode production",
"build": "rm -rf dist && cp -R public dist && webpack --mode production",
"build:old": "rm -rf dist && webpack --mode production && sh bin/copy-public.sh",
"test": "jest --watchAll",
"test:functions": "cd functions && node --version && jest --watchAll",
"deploy": "firebase deploy",
Expand Down
95 changes: 0 additions & 95 deletions public/firebase-messaging-sw.js

This file was deleted.

0 comments on commit 9f63dcb

Please sign in to comment.