Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-sass.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tasks
diff options
context:
space:
mode:
authorGleb Mazovetskiy <glebm@google.com>2015-01-15 00:38:39 +0300
committerGleb Mazovetskiy <glebm@google.com>2015-01-18 01:49:15 +0300
commitb4c0349be3f871aa782ba786ada9265b4d80a794 (patch)
tree107f3b1d67f69bb263a796875ad37e1dbf7d039f /tasks
parent06629e712d6757775d3b266841d341e02ff8253f (diff)
Update bower.json to use one JS file #812
Diffstat (limited to 'tasks')
-rw-r--r--tasks/bower.rake5
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]