- Move
package.json
and.gitignore
into your project, or merge in their contents if you already have these files. - Run
npm init
andbower init
if you haven't already set up your npm and bower packages. - Use your dependencies from the
bower_components
directory as needed. - Run
npm install
now, and whenever you want to reinstall your package in the future.
Created
January 2, 2014 23:08
-
-
Save nickserv/8228938 to your computer and use it in GitHub Desktop.
Example: Using bower with an npm package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_modules | |
bower_components |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"postinstall": "node_modules/.bin/bower install" | |
}, | |
"dependencies": { | |
"bower": "*" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment