diff options
author | Gleb Mazovetskiy <glebm@google.com> | 2015-01-15 00:38:39 +0300 |
---|---|---|
committer | Gleb Mazovetskiy <glebm@google.com> | 2015-01-18 01:49:15 +0300 |
commit | b4c0349be3f871aa782ba786ada9265b4d80a794 (patch) | |
tree | 107f3b1d67f69bb263a796875ad37e1dbf7d039f /tasks | |
parent | 06629e712d6757775d3b266841d341e02ff8253f (diff) |
Update bower.json to use one JS file #812
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/bower.rake | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tasks/bower.rake b/tasks/bower.rake index 9cbe993e..5598e883 100644 --- a/tasks/bower.rake +++ b/tasks/bower.rake @@ -15,14 +15,11 @@ namespace :bower do require 'bootstrap-sass' Dir.chdir Bootstrap.gem_path do spec = JSON.parse(File.read 'bower.json') - js_paths = File.read(File.join Bootstrap.javascripts_path, 'bootstrap-sprockets.js').lines.map do |line| - line.strip if line.sub!(%r(//\s*=\s*require\s*(?:./)?(.*)\s*), 'assets/javascripts/\1.js') - end.compact spec['main'] = find_files.(File.join(Bootstrap.stylesheets_path, '_bootstrap.scss')) + find_files.(Bootstrap.fonts_path) + - js_paths + %w(assets/javascripts/bootstrap.js) spec['version'] = Bootstrap::VERSION[0..-3] |