Class: NpmRails::InitializeGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- NpmRails::InitializeGenerator
- Defined in:
- lib/generators/npm_rails/initialize_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_to_gitignore ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/generators/npm_rails/initialize_generator.rb', line 10 def add_to_gitignore append_to_file ".gitignore" do <<-EOF.strip_heredoc # Added by npm-rails /node_modules EOF end end |
#create_package_file ⇒ Object
6 7 8 |
# File 'lib/generators/npm_rails/initialize_generator.rb', line 6 def create_package_file copy_file 'npm_packages', 'npm_packages' end |