Sha256: f66c1cd9f38cb6bf5acc15259eaff13f04058dbcae935bcd0fc6f1a2467d4425

Contents?: true

Size: 387 Bytes

Versions: 2

Compression:

Stored size: 387 Bytes

Contents

class ParcelGenerator < Rails::Generators::Base
  desc "Generate parce-rails initializer"

  def create_initializer_file
    initializer "parcel.rb" do
      %{Rails.application.config.parcel do |parcel|
  parcel.entry_points = %w(app/javascript/application.js)
  parcel.destination = 'public/parcels'
end}
    end
  end

  def add_parcel_bundler
    `yarn add parcel-bundler`
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
parcel-rails-0.9.1 lib/parcel/rails/parcel_generator.rb
parcel-rails-0.9.0 lib/parcel/rails/parcel_generator.rb