1"scripts": {
2 "grunt": "grunt",
3 "server": "node server.js"
4}
5...
6# here's how to pass the params to those scripts:
7npm run grunt -- task:target // invokes `grunt task:target`
8npm run server -- --port=1337 // invokes `node server.js --port=1337`
1"start": "node ./script.js server $PORT"
2And then from the command-line:
3
4$ PORT=8080 npm start