Skip to content

Commit 277f6b2

Browse files
committed
Added run-script-os to check for os
1 parent 8e60edc commit 277f6b2

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

package.json

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,21 @@
99
"README.md"
1010
],
1111
"scripts": {
12-
"build": "WEBPACK_ENV=build & webpack",
13-
"dev": "WEBPACK_ENV=dev & webpack",
14-
"dev:watch": "WEBPACK_ENV=dev & webpack --progress --colors --watch",
15-
"test": "WEBPACK_ENV=dev & karma start",
16-
"test:travis": "WEBPACK_ENV=dev & karma start --single-run",
12+
"build": "run-script-os",
13+
"build:win32": "SET WEBPACK_ENV=build & webpack",
14+
"build:darwin:linux": "WEBPACK_ENV=build & webpack",
15+
"dev": "run-script-os",
16+
"dev:win32": "SET WEBPACK_ENV=dev & webpack",
17+
"dev:darwin:linux": "WEBPACK_ENV=dev & webpack",
18+
"dev:watch": "run-script-os",
19+
"dev:watch:win32": "SET WEBPACK_ENV=dev & webpack --progress --colors --watch",
20+
"dev:watch:darwin:linux": "WEBPACK_ENV=dev & webpack --progress --colors --watch",
21+
"test": "run-script-os",
22+
"test:win32": "SET WEBPACK_ENV=dev & karma start",
23+
"test:darwin:linux": "WEBPACK_ENV=dev & karma start",
24+
"test:travis": "run-script-os",
25+
"test:travis:win32": "SET WEBPACK_ENV=dev & karma start --single-run",
26+
"test:travis:darwin:linux": "WEBPACK_ENV=dev & karma start --single-run",
1727
"coveralls": "cat ./coverage/*/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
1828
"prepublish": "npm build & npm run dev",
1929
"build&publish": "npm run prepublish & npm publish"
@@ -51,8 +61,9 @@
5161
"karma-phantomjs-launcher": "^1.0.4",
5262
"karma-webpack": "^2.0.9",
5363
"phantomjs-prebuilt": "^2.1.15",
64+
"run-script-os": "^1.0.2",
5465
"tslint": "^5.7.0",
5566
"uglifyjs-webpack-plugin": "^0.4.6",
5667
"webpack": "^2.0.9"
5768
}
58-
}
69+
}

0 commit comments

Comments
 (0)