feat: update package.json scripts to work on windows (#216)

* feat: add npm-run-all and fix test:web script

* fix: remove test script extra option

* fix: update lint script revert test script and remove npm-run-all

* chore: revert to linux/mac specific script

* fix: prepend node command so it works on windows
pull/217/head^2
Ralph Jbeily 5 years ago committed by GitHub
parent ca44ce3dd1
commit 46ce505727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -15,7 +15,7 @@
"test_build": "rollup -c",
"test": "yarn test:node && yarn test:web",
"test:node": "jest",
"test:web": "./node_modules/karma/bin/karma start karma.conf.js --auto-watch",
"test:web": "node ./node_modules/karma/bin/karma start karma.conf.js --auto-watch",
"test:build": "cd ./scripts && jest check-build.test.js",
"test:build:web": "node ./scripts/proxy-browser-test.js",
"watch:test": "jest --watch",

@ -34,7 +34,7 @@ const stop = () => {
if (!process.env.CI) {
start();
require('child_process').execSync(
'./node_modules/karma/bin/karma start ./scripts/karma.conf.js',
'node ./node_modules/karma/bin/karma start ./scripts/karma.conf.js',
{ stdio: [0, 1, 2] }
);
stop();

Loading…
Cancel
Save