lib/app_drone/drones/bootstrap/bootstrap.rb~ in app_drone-0.5.1 vs lib/app_drone/drones/bootstrap/bootstrap.rb~ in app_drone-0.5.2
- old
+ new
@@ -5,13 +5,12 @@
category :ui
param :vendor, :boolean, info: 'place a local copy of the files into the repo for customization'
param :responsive, :boolean, info: 'include responsive grid'
param :font_awesome, :boolean, info: 'use font-awesome for icons', default: true
+ param :javascript_plugins, :choose_many, info: 'pipeline javascript plugin files', default: [], choices: %w(modal dropdown scrollspy tab tooltip popover alert button collapse carousel typeahead)
- # TODO js import options
-
depends_on :bundle, :stylesheet, :javascript
def align
bundle.add 'compass_twitter_bootstrap', git: 'git://github.com/vwall/compass-twitter-bootstrap.git', group: :assets
param(:vendor) ? align_vendor : align_bundle
@@ -23,23 +22,23 @@
end
private
def align_vendor
# TODO import paths for stylesheet (different to bundle)
- # TODO js imports - based on options
+ param(:javascript_plugins).each { |p| javascript.pipeline "bootstrap-#{p}" }
end
def align_bundle
stylesheet.import param(:font_awesome) ? 'compass_twitter_bootstrap_awesome' : 'compass_twitter_bootstrap'
stylesheet.import 'compass_twitter_bootstrap_responsive' if param(:responsive)
- # TODO js imports - based on options
+ param(:javascript_plugins).each { |p| javascript.pipeline "bootstrap-#{p}" }
end
def execute_vendor
# TODO pull files from git
end
def execute_bundle
- # TODO nothing
end
+
end
end