Skip to content

Commit

Permalink
remove bootstrap-flex update handling since it's gone
Browse files Browse the repository at this point in the history
  • Loading branch information
bgentry committed Jan 6, 2017
1 parent ec0d634 commit 023043a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tasks/updater/scss.rb
Expand Up @@ -12,16 +12,14 @@ def update_scss_assets
log_processed "#{bootstrap_scss_files * ' '}"

log_status 'Updating scss main files'
%w(bootstrap bootstrap-flex bootstrap-grid bootstrap-reboot).each do |name|
%w(bootstrap bootstrap-grid bootstrap-reboot).each do |name|
# Compass treats non-partials as targets to copy into the main project, so make them partials.
# Also move them up a level to clearly indicate entry points.
from = "#{save_to}/#{name}.scss"
to = "#{save_to}/../_#{name}.scss"
FileUtils.mv from, to
# As we moved the files, adjust imports accordingly (except for bootstrap-flex that imports the main bootstrap).
unless 'bootstrap-flex' == name
File.write to, File.read(to).gsub(/ "/, ' "bootstrap/')
end
# As we moved the files, adjust imports accordingly.
File.write to, File.read(to).gsub(/ "/, ' "bootstrap/')
end

log_status 'Generating variable template file'
Expand Down

0 comments on commit 023043a

Please sign in to comment.