Skip to content

Commit

Permalink
use cross-env when setting env vars in package-scripts.js
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Hiller <boneskull@boneskull.com>
  • Loading branch information
boneskull committed Jan 4, 2019
1 parent ff07ee6 commit 33d18b7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
20 changes: 15 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package-scripts.js
Expand Up @@ -217,26 +217,26 @@ module.exports = {
description: 'Run browser tests'
},
unit: {
script: 'NODE_PATH=. karma start --single-run',
script: 'cross-env NODE_PATH=. karma start --single-run',
description: 'Run browser unit tests'
},
bdd: {
script: 'MOCHA_TEST=bdd nps test.browser.unit',
script: 'cross-env MOCHA_TEST=bdd nps test.browser.unit',
description: 'Run browser BDD interface tests',
hiddenFromHelp: true
},
tdd: {
script: 'MOCHA_TEST=tdd nps test.browser.unit',
script: 'cross-env MOCHA_TEST=tdd nps test.browser.unit',
description: 'Run browser TDD interface tests',
hiddenFromHelp: true
},
qunit: {
script: 'MOCHA_TEST=qunit nps test.browser.unit',
script: 'cross-env MOCHA_TEST=qunit nps test.browser.unit',
description: 'Run browser QUnit interface tests',
hiddenFromHelp: true
},
esm: {
script: 'MOCHA_TEST=esm nps test.browser.unit',
script: 'cross-env MOCHA_TEST=esm nps test.browser.unit',
description: 'Run browser ES modules support test',
hiddenFromHelp: true
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -517,6 +517,7 @@
"chai": "^4.2.0",
"coffee-script": "^1.10.0",
"coveralls": "^3.0.2",
"cross-env": "^5.2.0",
"cross-spawn": "^6.0.5",
"eslint": "^5.11.1",
"eslint-config-prettier": "^3.3.0",
Expand Down

0 comments on commit 33d18b7

Please sign in to comment.