Skip to content

Instantly share code, notes, and snippets.

@kamiyam
Created September 16, 2013 04:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kamiyam/6576796 to your computer and use it in GitHub Desktop.
Save kamiyam/6576796 to your computer and use it in GitHub Desktop.
npm scripts preinstall Example...
#!/bin/sh
npm i -g grunt-cli
npm i -g forever
"dependencies": {
},
"devDependencies": {
},
"scripts": {
"start": "node app.js",
"debug": "node debug app.js",
"preinstall": "sh ./install.sh"
},
"main": "app.js",
"author": "k5m",
"license": "MIT"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment