Skip to content

Commit

Permalink
Remove sassc-rails dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
th-ad authored Aug 30, 2022
2 parents 78e7e0f + 7ca596b commit 34ba613
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
17 changes: 0 additions & 17 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,6 @@ task :test_all_gemfiles do
end
end

desc 'Dumps output to a CSS file for testing'
task :debug do
require 'sassc'
require './lib/bootstrap'
require 'term/ansicolor'
require 'autoprefixer-rails'
path = Bootstrap.stylesheets_path
%w(_bootstrap _bootstrap-reboot _bootstrap-grid).each do |file|
engine = SassC::Engine.new(File.read("#{path}/#{file}.scss"), syntax: :scss, load_paths: [path])
out = File.join('tmp', "#{file[1..-1]}.css")
css = engine.render
css = AutoprefixerRails.process(css)
File.write(out, css)
$stderr.puts Term::ANSIColor.green "Compiled #{out}"
end
end

desc 'Update bootstrap from upstream'
task :update, :branch do |t, args|
require './tasks/updater'
Expand Down
2 changes: 0 additions & 2 deletions bootstrap.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ Gem::Specification.new do |s|
s.homepage = 'https://github.com/twbs/bootstrap-rubygem'
s.license = 'MIT'

# SassC requires Ruby 2.3.3. Also specify here to make it obvious.
s.required_ruby_version = '>= 2.3.3'

s.add_runtime_dependency 'popper_js', '>= 1.14.3', '< 2'

s.add_runtime_dependency 'sassc-rails', '>= 2.0.0'
s.add_runtime_dependency 'autoprefixer-rails', '>= 9.1.0'

# Testing dependencies
Expand Down
1 change: 0 additions & 1 deletion lib/bootstrap/engine.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# frozen_string_literal: true

require 'autoprefixer-rails'
require 'sassc-rails'

module Bootstrap
module Rails
Expand Down

0 comments on commit 34ba613

Please sign in to comment.