Class: ReactWebpackRails::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ReactWebpackRails::InstallGenerator
- Defined in:
- lib/generators/react_webpack_rails/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate_layout ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/generators/react_webpack_rails/install_generator.rb', line 5 def generate_layout copy_file 'webpack.config.js', 'webpack.config.js' copy_file 'karma.conf.js', 'karma.conf.js' copy_file 'tests.webpack.js', 'tests.webpack.js' copy_file 'index.js', 'app/react/index.js' copy_file 'hello-world.jsx', 'app/react/components/hello-world.jsx' template 'package.json.erb', 'package.json' end |