From f6244e6d6ac43a11d2587cde75a52337819b0bc4 Mon Sep 17 00:00:00 2001 From: igarmatenko Date: Tue, 24 Jun 2014 11:27:01 +0400 Subject: [PATCH 1/2] Add install task which uses generated bower.json --- lib/tasks/bower.rake | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/tasks/bower.rake b/lib/tasks/bower.rake index 4b29e12..37ebeb1 100644 --- a/lib/tasks/bower.rake +++ b/lib/tasks/bower.rake @@ -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 => '') From 35c5d4bb1adf6efdef7c22678ddacaea1967ef17 Mon Sep 17 00:00:00 2001 From: Christoph Date: Tue, 15 Jul 2014 20:02:25 +0200 Subject: [PATCH 2/2] Addition to #89: Update README.md and CHANGELOG.md with details about deployment install task --- CHANGELOG.md | 2 ++ README.md | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 87c0cc9..2fbd919 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 4d93e6a..0b1fb07 100644 --- a/README.md +++ b/README.md @@ -149,6 +149,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