0.02
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Manage front-end assets and dependencies with bower.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

 Project Readme

Middleman Bower

Use bower to manage front-end assets and dependencies in Middleman.

Installation

Add this line to your application's Gemfile:

gem 'middleman-bower'

And then execute:

$ bundle

Or install it yourself as:

$ gem install middleman-bower

Don't forget to install npm and bower.

Usage

Open the config.rb file in Middleman and add the directive:

activate :bower

Now use bower to install front-end dependencies with your project:

bower install jquery

And include the asset from your sprockets file:

//= reqiure jquery/jquery

Best Practices

Its probably a good idea to keep your bower assets stashed away in the directory vendor/assets/bower via the .bowerrc file from your project root:

{
  "directory": "vendor/assets/bower"
}

The run:

bower install

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request