Class: Parcel::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#add_parcel_bundlerObject



16
17
18
# File 'lib/parcel/generators/install_generator.rb', line 16

def add_parcel_bundler
  rake 'parcel:install'
end

#create_initializer_fileObject



6
7
8
9
10
11
12
13
14
# File 'lib/parcel/generators/install_generator.rb', line 6

def create_initializer_file
  initializer 'parcel.rb' do
    %(Parcel.setup do |config|
  config.source_entry_path = 'app/javascript/packs'
  config.public_out_path = 'parcels'
end
)
  end
end