Sha256: 80141555bdc2f3b98fd91a34236e4f5f6a8c67c67a6962c8039329915cd3e81c
Contents?: true
Size: 786 Bytes
Versions: 2
Compression:
Stored size: 786 Bytes
Contents
# frozen_string_literal: true require "autoprefixer-rails" require "bootstrap" require "bundler/gem_tasks" require "fileutils" require "rspec/core/rake_task" require "sassc" require "structured_changelog/tasks" RSpec::Core::RakeTask.new(:spec) task default: :spec task build: :assets desc "Preprocess assets" task :assets do puts "Preprocessing SCSS and JS files" puts "Copying over bootstrap" FileUtils.cp_r Gem::Specification.find_by_name("bootstrap").gem_dir, "tmp" sass = File.read(File.expand_path("./src/stylesheets/main.scss")) css = SassC::Engine.new(sass, style: :compressed).render prefixed = AutoprefixerRails.process(css) File.write(File.expand_path("./app/assets/stylesheets/main.css"), prefixed) npm_output = `npm run build` puts npm_output end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
attractor-2.6.0 | Rakefile |
attractor-2.5.0 | Rakefile |