Skip to content

Commit 85ad042

Browse files
Adding clean scripts
1 parent debd2a5 commit 85ad042

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

dist/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
],
1919
"main": "index.js",
2020
"scripts": {
21-
"build": "webpack -p; babel src --out-dir dist -s; cp ./types/* README.md LICENSE package.json dist; cd dist && npm install --only=production && cd -",
22-
"pub": "npm run build && npm publish dist"
21+
"clean": "rm -rf ./dist",
22+
"build": "webpack -p && babel src --out-dir dist -s && cp ./types/* README.md LICENSE package.json dist && cd dist && npm install --only=production && cd -",
23+
"pub": "npm run clean && npm run build && npm publish dist"
2324
},
2425
"author": "Google",
2526
"repository": {

example/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"scripts": {
3-
"build": "npm run createfirebaseconf; NODE_ENV=production webpack -p;",
3+
"clean": "rm -rf ./public/bundle.* ./src/firebase-config.json ./node_modules",
4+
"build": "npm run clean && npm run createfirebaseconf; NODE_ENV=production webpack -p;",
45
"createfirebaseconf": "firebase setup:web --json > ./src/firebase-config.json",
56
"serve": "firebase serve"
67
},

0 commit comments

Comments
 (0)