Sha256: f2d46c9154d0bf9959bd3a37299dc5ea00757bd092d46a9da860f9a572a0bfae
Contents?: true
Size: 630 Bytes
Versions: 2
Compression:
Stored size: 630 Bytes
Contents
module Intro module Generators class AssetsGenerator < Rails::Generators::Base desc 'Add intro assets files' source_root File.expand_path('../../../..', __FILE__) def add_shepherd_stylesheets copy_file 'app/javascript/stylesheets/intro/shepherd/_variables.scss', 'app/javascript/stylesheets/intro/_variables.scss' copy_file 'app/javascript/stylesheets/intro/shepherd/base.scss', 'app/javascript/stylesheets/intro/custom.scss' end def add_shepherd_packs create_file 'app/javascript/packs/intro/custom.js', 'import "stylesheets/intro/custom"' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
intro-0.4.1 | lib/generators/intro/assets_generator.rb |
intro-0.4.0 | lib/generators/intro/assets_generator.rb |