Skip to content

Commit 37d2581

Browse files
committed
refactor npm scripts
1 parent 89cd5f8 commit 37d2581

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"npm": "6.4.1"
77
},
88
"scripts": {
9-
"build": "npm --prefix client i && npm --prefix client i babel-core@^7.0.0-bridge.0 && npm --prefix client run prod",
9+
"prod": "npm --prefix client run prod",
10+
"wire-dep": "npm --prefix client i && npm --prefix client i babel-core@^7.0.0-bridge.0",
11+
"build": "npm run wire-dep && npm run prod",
1012
"deploy": "cp -a client/dist/ public/",
1113
"heroku-postbuild": "npm run build && npm run deploy",
1214
"post-husky": "cat ../.branch-ignore > ../.git/hooks/post-checkout",

0 commit comments

Comments
 (0)