0.03
No commit activity in last 3 years
No release in over 3 years
Bower support for Capistrano 3.x
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

Capistrano::Bower Gem Version

Bower for support for Capistrano 3.x

Installation

Add this line to your application's Gemfile:

gem 'capistrano-bower'
gem 'capistrano'

And then execute:

$ bundle

Or install it yourself as:

$ gem install capistrano-bower

Usage

Require in Capfile to use the default task:

require 'capistrano/bower'

The task will run before deploy:updated as part of Capistrano's default deploy, or can be run in isolation with cap production bower:install

Configurable options, shown here with defaults:

set :bower_flags, '--quiet --config.interactive=false'
set :bower_roles, :web
set :bower_target_path, nil
set :bower_bin, :bower

If your bower.json is not in the root directory, set the directory with :bower_target_path. For example with Symfony2:

set :bower_flags, '--quiet --config.interactive=false'
set :bower_roles, :web
set :bower_target_path, "#{release_path}/web"

If your bower executable is not found in the default PATH by capistrano, set the bower_bin option. For example:

set :bower_bin, '/usr/local/node/node-default/bin/bower'

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

Credits

Thank you contributors!

Platanus

capistrano-bower is maintained by platanus.

License

Guides is © 2014 platanus, spa. It is free software and may be redistributed under the terms specified in the LICENSE file.