Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

npm script with arguments

"scripts": {
	"grunt": "grunt",
	"server": "node server.js"
}
...
# here's how to pass the params to those scripts:
npm run grunt -- task:target  // invokes `grunt task:target`
npm run server -- --port=1337 // invokes `node server.js --port=1337`
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #npm #script #arguments
ADD COMMENT
Topic
Name
9+9 =