Sha256: fba4b22ad6038b16ced7883e3c2d4a956b8338e5d7ec61649e6a1ff6c511fee4

Contents?: true

Size: 716 Bytes

Versions: 2

Compression:

Stored size: 716 Bytes

Contents

require "rails/generators"

module Frontrunner
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path("../templates", __FILE__)

      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
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
frontrunner-0.1.1 lib/generators/frontrunner/install_generator.rb
frontrunner-0.1.0 lib/generators/frontrunner/install_generator.rb