Class: Frontrunner::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/frontrunner/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#performObject



8
9
10
11
12
13
14
15
16
# File 'lib/generators/frontrunner/install_generator.rb', line 8

def perform
  copy_file "package.json", "package.json"
  copy_file "webpack.config.js", "webpack.config.js"
  append_file ".gitignore", "\n# Webpack\n/node_modules/\nnpm-debug.log\nwebpack-assets.json\n"
  create_file "app/webpack/images/.keep"
  copy_file "application.js", "app/webpack/javascripts/application.js"
  copy_file "hello.coffee", "app/webpack/javascripts/hello.coffee"
  copy_file "application.scss", "app/webpack/stylesheets/application.scss"
end