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 init
to createBowerfile
, ormiddleman bower init json
to createbower.json
Once you are done with bower.json
or Bowerfile
you can run
middleman bower install
to install packagesmiddleman bower install deployment
to install packages from bower.jsonmiddleman bower update
to update packagesmiddleman bower update prune
to update components and uninstall extraneous packagesmiddleman bower list
to list all packagesmiddleman bower clean
to remove all files not listed as main files (if specified)middleman bower resolve
to 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.