Skip to content

Instantly share code, notes, and snippets.

@osuka
Created January 10, 2014 16:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save osuka/8357734 to your computer and use it in GitHub Desktop.
Save osuka/8357734 to your computer and use it in GitHub Desktop.
Have bower automatically launch with npm install. Makes life easier for people just wanting to use your code. Automatically downloads bower, then call 'bower install' after npm install. From http://stackoverflow.com/a/18591690
{
"name": "webapp",
"version": "0.0.0",
"dependencies": {},
"devDependencies": {
"grunt": "~0.4.1",
...
"bower": ""
},
"engines": {
...
},
"scripts": {
"postinstall": "node_modules/.bin/bower install"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment