Skip to content

Commit

Permalink
Merge pull request #115 from ruprict/master
Browse files Browse the repository at this point in the history
Add rake task  for 'bower clean cache'
  • Loading branch information
SergeyKishenin committed Oct 17, 2014
2 parents d837d8c + d8704ad commit 4d3e4fc
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## Edge version

## v0.9.1

* add `bower:clean:cache` rake task by @ruprict [#115][]

[#115]: https://github.com/42dev/bower-rails/pull/115

## v0.9.0

* do not resolve urls which start with '#' #102
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ Once you are done with `bower.json` or `Bowerfile` you can run
* `rake bower:list` to list all packages
* `rake bower:clean` to remove all files not listed as [main files](#bower-main-files) (if specified)
* `rake bower:resolve` to resolve [relative asset paths](#relative-asset-paths) in components
* `rake bower:cache:clean` to clear the bower cache. This is useful when you know a component has been updated.

If you'd like to pass any bower CLI options to a rake task, like `-f`, `-j`, you can simply do:

Expand Down
4 changes: 2 additions & 2 deletions lib/bower-rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding : utf-8 -*-
module BowerRails
VERSION = "0.9.0"
end
VERSION = "0.9.1"
end
9 changes: 9 additions & 0 deletions lib/tasks/bower.rake
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ namespace :bower do
remove_extra_files
end
end

namespace :cache do
desc "Clear the bower cache ('bower cache clean')"
task :clean do
BowerRails::Performer.perform false do |bower|
sh "#{bower} cache clean"
end
end
end
end

before_rake_task 'assets:precompile' do
Expand Down

0 comments on commit 4d3e4fc

Please sign in to comment.