lib/bower-rails.rb in bower-rails-0.10.0 vs lib/bower-rails.rb in bower-rails-0.11.0
- old
+ new
@@ -20,18 +20,30 @@
# If set to true then rake bower:install && rake bower:clean tasks
# are invoked before assets precompilation
attr_accessor :clean_before_precompile
+ # If containing a list of bower component names, those components
+ # will be excluded from the bower:clean
+ attr_accessor :exclude_from_clean
+
# If set to true then rake bower:install:deployment will be invoked
# instead of rake bower:install before assets precompilation
attr_accessor :use_bower_install_deployment
+ # If set to true then rake bower:install will search for gem dependencies
+ # and in each gem it will search for Bowerfile and then concatenate all Bowerfile
+ # for evaluation
+ attr_accessor :use_gem_deps_for_bowerfile
+
# If set to true then rake bower:install[-f] will be invoked
# instead of rake bower:install before assets precompilation
attr_accessor :force_install
+ # Where to store the bower components
+ attr_accessor :bower_components_directory
+
def configure &block
yield self if block_given?
collect_tasks
end
@@ -56,7 +68,9 @@
@tasks = []
@install_before_precompile = false
@resolve_before_precompile = false
@clean_before_precompile = false
@use_bower_install_deployment = false
+ @use_gem_deps_for_bowerfile = false
@force_install = false
+ @bower_components_directory = "bower_components"
end