Module: BowerRails
- Extended by:
- BowerRails
- Included in:
- BowerRails
- Defined in:
- lib/bower-rails.rb,
lib/bower-rails/dsl.rb,
lib/bower-rails/railtie.rb,
lib/bower-rails/version.rb,
lib/bower-rails/performer.rb,
lib/generators/bower_rails/initialize/initialize_generator.rb
Defined Under Namespace
Modules: Generators Classes: Dsl, Performer, Railtie
Constant Summary collapse
- VERSION =
"0.8.3"
Class Attribute Summary collapse
-
.clean_before_precompile ⇒ Object
If set to true then rake bower:install && rake bower:clean tasks are invoked before assets precompilation.
-
.install_before_precompile ⇒ Object
If set to true then rake bower:install task is invoked before assets precompilation.
-
.resolve_before_precompile ⇒ Object
If set to true then rake bower:install && rake bower:resolve tasks are invoked before assets precompilation.
-
.root_path ⇒ Object
The root path of the project.
-
.tasks ⇒ Object
readonly
An array of tasks to enhance ‘rake assets:precompile`.
-
.use_bower_install_deployment ⇒ Object
If set to true then rake bower:install:deployment will be invoked instead of rake bower:install before assets precompilation.
Class Method Summary collapse
Class Attribute Details
.clean_before_precompile ⇒ Object
If set to true then rake bower:install && rake bower:clean tasks are invoked before assets precompilation
23 24 25 |
# File 'lib/bower-rails.rb', line 23 def clean_before_precompile @clean_before_precompile end |
.install_before_precompile ⇒ Object
If set to true then rake bower:install task is invoked before assets precompilation
15 16 17 |
# File 'lib/bower-rails.rb', line 15 def install_before_precompile @install_before_precompile end |
.resolve_before_precompile ⇒ Object
If set to true then rake bower:install && rake bower:resolve tasks are invoked before assets precompilation
19 20 21 |
# File 'lib/bower-rails.rb', line 19 def resolve_before_precompile @resolve_before_precompile end |
.root_path ⇒ Object
The root path of the project
9 10 11 |
# File 'lib/bower-rails.rb', line 9 def root_path @root_path end |
.tasks ⇒ Object (readonly)
An array of tasks to enhance ‘rake assets:precompile`
12 13 14 |
# File 'lib/bower-rails.rb', line 12 def tasks @tasks end |
.use_bower_install_deployment ⇒ Object
If set to true then rake bower:install:deployment will be invoked instead of rake bower:install before assets precompilation
27 28 29 |
# File 'lib/bower-rails.rb', line 27 def use_bower_install_deployment @use_bower_install_deployment end |
Class Method Details
.configure {|_self| ... } ⇒ Object
29 30 31 32 |
# File 'lib/bower-rails.rb', line 29 def configure &block yield self if block_given? collect_tasks end |