Module: Stationed::Generators::Plugins::Styles
- Included in:
- AppGenerator
- Defined in:
- lib/stationed/generators/plugins/styles.rb
Instance Method Summary collapse
Instance Method Details
#finish_template ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/stationed/generators/plugins/styles.rb', line 5 def finish_template gem 'bourbon' gem 'neat' gem 'bitters' remove_file 'app/assets/stylesheets/application.css' copy_file 'application.scss', 'app/assets/stylesheets/application.scss' copy_file 'layout.scss', 'app/assets/stylesheets/_layout.scss' super end |
#run_bundle ⇒ Object
15 16 17 18 19 20 |
# File 'lib/stationed/generators/plugins/styles.rb', line 15 def run_bundle super run 'bitters install' FileUtils.mv 'bitters', 'app/assets/stylesheets/bitters' gsub_file 'app/assets/stylesheets/bitters/_bitters.scss', %r{// @import}, '@import' end |