Sha256: f570583f4c7311538b68e5c2d1bdd1db75fede4a1b2dfe82f37808db8015ae3e
Contents?: true
Size: 418 Bytes
Versions: 1
Compression:
Stored size: 418 Bytes
Contents
# frozen_string_literal: true 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
parcel-rails-0.9.2 | lib/parcel/rails/parcel_generator.rb |