1
0
Fork 0
mirror of https://github.com/twbs/bootstrap-sass.git synced 2022-11-09 12:27:02 -05:00

Use dist/js/bootstrap.js from upstream #777

Before we compiled bootstrap.js by concatenating individual files.
This copies the file from upstream for maximum compatibility.
This commit is contained in:
Gleb Mazovetskiy 2014-11-15 15:15:54 +01:00
parent 41ea576e9d
commit faac9f3c4d
2 changed files with 544 additions and 529 deletions

File diff suppressed because it is too large Load diff

View file

@ -12,14 +12,13 @@ class Converter
log_status 'Updating javascript manifest'
manifest = ''
cat = ''
bootstrap_js_files.each do |name|
cat << contents[name] + "\n"
name = name.gsub(/\.js$/, '')
manifest << "//= require ./bootstrap/#{name}\n"
end
dist_js = read_files('dist/js', ['bootstrap.js'])['bootstrap.js']
{'assets/javascripts/bootstrap-sprockets.js' => manifest,
'assets/javascripts/bootstrap.js' => cat}.each do |path, content|
'assets/javascripts/bootstrap.js' => dist_js}.each do |path, content|
save_file path, content
log_processed path
end