Class: Parcel::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Parcel::Generators::InstallGenerator
- Defined in:
- lib/parcel/generators/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_parcel_bundler ⇒ Object
16 17 18 |
# File 'lib/parcel/generators/install_generator.rb', line 16 def add_parcel_bundler rake 'parcel:install' end |
#create_initializer_file ⇒ Object
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 |