Skip to content

Commit 176283b

Browse files
refactor: scripts (#1984)
1 parent 251f7f9 commit 176283b

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@
2424
"test:watch": "npm run test:coverage --watch",
2525
"test": "npm run test:coverage",
2626
"pretest": "npm run lint",
27-
"prepare": "rimraf ./ssl/*.pem && npm run -s transpile:index && npm run transpile:clients && npm run -s build:live && npm run -s build:index && npm run -s build:sockjs",
28-
"transpile:index": "babel client-src/default --out-dir client --ignore \"./client-src/default/*.config.js\"",
29-
"transpile:clients": "babel client-src/clients --out-dir client/clients",
30-
"build:index": "webpack ./client-src/default/index.js -o client/index.bundle.js --color --config client-src/default/webpack.config.js",
31-
"build:live": "webpack ./client-src/live/index.js -o client/live.bundle.js --color --config client-src/live/webpack.config.js",
32-
"build:sockjs": "webpack ./client-src/sockjs/index.js -o client/sockjs.bundle.js --color --config client-src/sockjs/webpack.config.js",
27+
"prepare": "rimraf ./ssl/*.pem && npm run build:client",
28+
"build:client:default": "babel client-src/default --out-dir client --ignore \"./client-src/default/*.config.js\"",
29+
"build:client:clients": "babel client-src/clients --out-dir client/clients",
30+
"build:client:index": "webpack ./client-src/default/index.js -o client/index.bundle.js --color --config client-src/default/webpack.config.js",
31+
"build:client:live": "webpack ./client-src/live/index.js -o client/live.bundle.js --color --config client-src/live/webpack.config.js",
32+
"build:client:sockjs": "webpack ./client-src/sockjs/index.js -o client/sockjs.bundle.js --color --config client-src/sockjs/webpack.config.js",
33+
"build:client": "rimraf ./client/* && npm-run-all -s -l -p \"build:client:**\"",
3334
"webpack-dev-server": "cd $INIT_CWD && node ../../../bin/webpack-dev-server.js",
3435
"release": "standard-version"
3536
},

0 commit comments

Comments
 (0)