Class: Trek::Generators::Install::PostcssGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Trek::Generators::Install::PostcssGenerator
- Includes:
- Helpers
- Defined in:
- lib/generators/trek/install/postcss_generator.rb
Constant Summary collapse
- NPM_DEPENDENCIES =
{ postcss: "^8.4.18", "postcss-cli": "^10.0.0", "postcss-flexbugs-fixes": "^5.0.2", "postcss-import": "^15.0.0", "postcss-inline-svg": "^5.0.0", "postcss-modules": "^5.0.0", "postcss-nesting": "^10.2.0", "postcss-preset-env": "^7.8.2", "postcss-url": "^10.1.3" }
Instance Method Summary collapse
Instance Method Details
#copy_postcss_config ⇒ Object
30 31 32 |
# File 'lib/generators/trek/install/postcss_generator.rb', line 30 def copy_postcss_config copy_file_at_root "postcss.config.js" end |
#install_dependencies ⇒ Object
26 27 28 |
# File 'lib/generators/trek/install/postcss_generator.rb', line 26 def install_dependencies install_npm_dependencies(NPM_DEPENDENCIES) end |