Skip to content

Instantly share code, notes, and snippets.

@danbjoseph
Last active August 29, 2015 14:12
Show Gist options
  • Save danbjoseph/bbdf92fb8e7cd309ba98 to your computer and use it in GitHub Desktop.
Save danbjoseph/bbdf92fb8e7cd309ba98 to your computer and use it in GitHub Desktop.
wire up Bower packages from the terminal

Wire up Bower packages from the terminal

The wiredep documentation covers everything in much greater detail but at the most basic...

Install wiredep globally

$ npm install -g wiredep

Put commented placeholders in your index.html file

<!-- bower:css -->
<!-- endbower -->

<!-- bower:js -->
<!-- endbower -->

Install Bower

Create a bower.json file with bower.init

Use bower install <package> --save to add dependencies

Run wiredep -s index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment