Skip to content

Commit

Permalink
add possibility to supply arguments to "npm run" calls
Browse files Browse the repository at this point in the history
Since npm run-script currently does not have a way to pass additional
arguments to scripts (see <npm/npm#3494>),
add a "wildcard" variable that can be used as a workaround, e.g. to
run specific tests or benchmarks:

ARG="--grep objrefProxy" npm -s run test
ARG=utils.js npm -s run bench
  • Loading branch information
yelworc committed Aug 27, 2014
1 parent 0c07a50 commit e3cce46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
"scripts": {
"preproc": "python tools/gsjs-preproc.py",
"start": "NODE_PATH=src node --harmony ./src/server.js",
"test": "NODE_PATH=src node_modules/mocha/bin/mocha --harmony test/unit",
"functest": "NODE_PATH=src node_modules/mocha/bin/mocha --harmony test/func",
"bench": "NODE_PATH=src node --harmony bench/runner.js",
"test": "NODE_PATH=src node_modules/mocha/bin/mocha --harmony $ARG test/unit",
"functest": "NODE_PATH=src node_modules/mocha/bin/mocha --harmony $ARG test/func",
"bench": "NODE_PATH=src node --harmony bench/runner.js $ARG",
"lint": "node_modules/jshint/bin/jshint --exclude src/gsjs src",
"docs": "node node_modules/jsdoc/jsdoc.js --destination docs --configure jsdoc-conf.json src"
},
Expand Down

0 comments on commit e3cce46

Please sign in to comment.