Class: Suspenders::StylesheetBaseGenerator
- Inherits:
-
Generators::Base
- Object
- Rails::Generators::Base
- Generators::Base
- Suspenders::StylesheetBaseGenerator
- Defined in:
- lib/suspenders/generators/stylesheet_base_generator.rb
Instance Method Summary collapse
Methods inherited from Generators::Base
default_source_root, inherited
Methods included from ExitOnFailure
Methods included from Actions
#action_mailer_asset_host, #action_mailer_host, #configure_environment, #expand_json, #gem, #replace_in_file
Instance Method Details
#setup_normalize ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/suspenders/generators/stylesheet_base_generator.rb', line 5 def setup_normalize run "yarn add postcss-normalize" copy_file( "application.postcss.css", "app/assets/stylesheets/application.postcss.css", force: true ) copy_file "postcss.config.js", "postcss.config.js", force: true end |