Sha256: b17b6e30982d558bba67cdf22f2c613bbec3e432aeba52bae553dba94471da09
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
Contents
# Install Webpacker copy_file "#{__dir__}/config/webpacker.yml", "config/webpacker.yml" puts "Copying webpack core config" directory "#{__dir__}/config/webpack", "config/webpack" say "Copying .postcssrc.yml to app root directory" copy_file "#{__dir__}/config/.postcssrc.yml", ".postcssrc.yml" say "Copying .babelrc to app root directory" copy_file "#{__dir__}/config/.babelrc", ".babelrc" # Jets handles creating javascript directory after webpacker:install runs unless defined?(Jets) say "Creating JavaScript app source directory" directory "#{__dir__}/javascript", Webpacker.config.source_path, force: options[:force] # How to use the FORCE: rake webpacker:install FORCE=1 end say "Installing binstubs" run "bundle binstubs webpacker" if File.exists?(".gitignore") append_to_file ".gitignore", <<-EOS /public/packs /public/packs-test /node_modules EOS end say "Installing all JavaScript dependencies" run "yarn add @rails/webpacker coffeescript@1.12.7" say "Installing dev server for live reloading" run "yarn add --dev webpack-dev-server" say "Webpacker successfully installed 🎉 🍰", :green
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
webpacker-jets-3.2.100 | lib/install/template.rb |