lib/tasks/bower.rake in bower-rails-0.9.1 vs lib/tasks/bower.rake in bower-rails-0.9.2
- old
+ new
@@ -1,10 +1,7 @@
-require 'tasks/helpers/before_hook'
require 'bower-rails/performer'
-include BeforeHook
-
namespace :bower do
desc "Install components from bower"
task :install, :options do |_, args|
if ENV['RAILS_ENV'] && ENV['RAILS_ENV'] == 'development'
Rake::Task["bower:install:development"].invoke(args[:options])
@@ -84,12 +81,14 @@
BowerRails::Performer.perform false do |bower|
sh "#{bower} cache clean"
end
end
end
-end
-before_rake_task 'assets:precompile' do
- BowerRails.tasks.map do |task|
- Rake::Task[task].invoke
+ task :before_precompile do
+ BowerRails.tasks.each do |task|
+ Rake::Task[task].invoke
+ end
end
end
+
+task "assets:precompile" => ["bower:before_precompile"]