public
Last active

npm_exec

  • Download Gist
npm_exec.sh
Shell
1
./node_modules/.bin/$@
package.json
JSON
1 2 3 4 5 6 7 8 9 10 11 12
{
"name": "application-name",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "start app"
},
"dependencies": {
"express": "3.0.0alpha1",
"jade": "*"
}
}
scripts.json
JSON
1 2 3 4 5 6 7 8 9 10
{
...
 
"scripts": {
"start": "node app",
"foo": "node -e 'console.log(1+2)'"
}
 
...
}
supervisor.json
JSON
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
{
"name": "application-name",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "supervisor app"
},
"dependencies": {
"express": "3.0.0alpha1",
"jade": "*"
},
"devDependencies": {
"supervisor": "*"
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.