Bower support for Middleman projects. Dependency file is bower.json in Middleman root dir or Bowerfile if you use DSL, based on bower-rails. Check out changelog for the latest changes and releases.
Requirements
Install
in Gemfile
gem "middleman-bower", github: "bbtfr/middleman-bower"##Middleman commands
middleman bower initto createBowerfile, ormiddleman bower init jsonto createbower.json
Once you are done with bower.json or Bowerfile you can run
middleman bower installto install packagesmiddleman bower install deploymentto install packages from bower.jsonmiddleman bower updateto update packagesmiddleman bower update pruneto update components and uninstall extraneous packagesmiddleman bower listto list all packagesmiddleman bower cleanto remove all files not listed as main files (if specified)middleman bower resolveto resolve relative asset paths in components
If you'd like to pass any bower CLI options to a rake task, like -f, -j, you can simply do:
middleman bower install -f##JSON configuration & Ruby DSL configuration & more See bower-rails for detail.