Skip to content

Commit 36d4b9c

Browse files
committedJul 31, 2019
build: new npm scripts
1 parent eabfd6f commit 36d4b9c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed
 

‎package.json

+7-6
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919
"browser"
2020
],
2121
"scripts": {
22-
"build": "./node_modules/.bin/tsc -p tsconfig.json",
23-
"build-watch": "./node_modules/.bin/tsc -p tsconfig.json -w",
24-
"webpack": "./node_modules/.bin/webpack --config webpack.config.js",
25-
"webpack-watch": "./node_modules/.bin/webpack --config webpack.config.js -w",
26-
"dev": "./node_modules/.bin/concurrently --kill-others \"npm run build-watch\" \"npm run webpack-watch\"",
27-
"test": "./node_modules/.bin/mocha lib/test/index.js"
22+
"build": "npm run build:ts && npm run build:wp",
23+
"dev": "./node_modules/.bin/concurrently --kill-others \"npm run dev:ts\" \"npm run dev:wp\"",
24+
"test": "./node_modules/.bin/mocha lib/test/index.js",
25+
"build:ts": "./node_modules/.bin/tsc -p tsconfig.json",
26+
"build:wp": "./node_modules/.bin/webpack --config webpack.config.js",
27+
"dev:ts": "./node_modules/.bin/tsc -p tsconfig.json -w",
28+
"dev:wp": "./node_modules/.bin/webpack --config webpack.config.js -w"
2829
},
2930
"devDependencies": {
3031
"@types/chai": "4.1.7",

0 commit comments

Comments
 (0)
Please sign in to comment.