Skip to content

Commit

Permalink
Merge pull request #92 from 1st8/feature/install-deployment-task
Browse files Browse the repository at this point in the history
Feature/install deployment task (including README and CHANGELOG update)
  • Loading branch information
SergeyKishenin committed Jul 15, 2014
2 parents 9295cd6 + 35c5d4b commit 84b9c25
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## Edge version

* Add `rake bower:install:deployment` which installs from generated bower.json without generating it first, keeping any additions (like dependency conflict resolutions) intact [#89][]

## v0.7.3

* Add `install_before_precompile` configurable option to invoke `rake bower:install` before precompilation
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ By default this line is added while running the generator.
Once you are done with `bower.json` or `Bowerfile` you can run

* `rake bower:install` to install packages
* `rake bower:install:deployment` to install packages from bower.json
* `rake bower:update` to update packages
* `rake bower:update:prune` to update components and uninstall extraneous packages
* `rake bower:list` to list all packages
Expand Down
10 changes: 10 additions & 0 deletions lib/tasks/bower.rake
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ namespace :bower do
end
end

namespace :install do
desc "Install components from bower using previously generated bower.json"
task :deployment, :options do |_, args|
args.with_defaults(:options => '')
perform false do |bower|
sh "#{bower} install #{args[:options]}"
end
end
end

desc "Update bower components"
task :update, :options do |_, args|
args.with_defaults(:options => '')
Expand Down

0 comments on commit 84b9c25

Please sign in to comment.