diff options
author | Gleb Mazovetskiy <glex.spb@gmail.com> | 2013-10-17 00:00:44 +0400 |
---|---|---|
committer | Gleb Mazovetskiy <glex.spb@gmail.com> | 2013-10-17 00:00:44 +0400 |
commit | 0411a9ea076dda703c22894bd21f484c12e0ba85 (patch) | |
tree | 7449399d2113a421175c848c83113caccb8ec8b0 /templates | |
parent | a6c38bd84fbfc1db216df113518db6190c3e54b0 (diff) |
Compass manifest.rb: remove hard-coded JS files list
Diffstat (limited to 'templates')
-rw-r--r-- | templates/project/manifest.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/project/manifest.rb b/templates/project/manifest.rb index 419f4da..33c3b54 100644 --- a/templates/project/manifest.rb +++ b/templates/project/manifest.rb @@ -8,6 +8,7 @@ stylesheet '_variables.scss.erb', to: '_variables.scss', erb: true # JS: bs_javascripts = "../../vendor/assets/javascripts/bootstrap" -%w(affix alert button carousel collapse dropdown modal popover scrollspy tab tooltip transition).each do |file| - javascript "#{bs_javascripts}/#{file}.js", to: "bootstrap/#{file}.js" -end
\ No newline at end of file +Dir.glob File.expand_path("#{bs_javascripts}/*.js", File.dirname(__FILE__)) do |path| + file = File.basename(path) + javascript "#{bs_javascripts}/#{file}", to: "bootstrap/#{file}" +end |