Class: Suspenders::StylelintGenerator
- Inherits:
-
Generators::Base
- Object
- Rails::Generators::Base
- Generators::Base
- Suspenders::StylelintGenerator
- Defined in:
- lib/suspenders/generators/stylelint_generator.rb
Defined Under Namespace
Classes: YarnInstall
Instance Method Summary collapse
Methods inherited from Generators::Base
Methods included from Actions
#action_mailer_asset_host, #action_mailer_host, #configure_environment, #expand_json, #replace_in_file
Instance Method Details
#copy_stylelint_config ⇒ Object
14 15 16 |
# File 'lib/suspenders/generators/stylelint_generator.rb', line 14 def copy_stylelint_config copy_file "stylelintrc.json", ".stylelintrc.json" end |
#install_stylelint ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/suspenders/generators/stylelint_generator.rb', line 5 def install_stylelint dependencies = ["stylelint", "stylelint-config-recommended", "stylelint-order", "stylelint-declaration-block-no-ignored-properties", "stylelint-scss"] action YarnInstall.new(self, dependencies, "--dev") end |