Skip to content

Commit

Permalink
fixed webpacker example
Browse files Browse the repository at this point in the history
  • Loading branch information
vaukalak committed Jun 30, 2024
1 parent 0d0f63e commit 9d5e8c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rakelib/webpacker_examples.rake
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ namespace :webpacker_examples do # rubocop:disable Metrics/BlockLength
sh_in_dir(example_type.dir, "echo \"gem 'shakapacker', '~> 6.6.0'\" >> #{example_type.gemfile}")
bundle_install_in(example_type.dir)
sh_in_dir(example_type.dir, "rake webpacker:install")
sh_in_dir(example_type.dir, example_type.generator_shell_commands)
shell_commands = []
shell_commands << "PACKAGE_JSON_FALLBACK_MANAGER=yarn_classic rails generate react_on_rails:install #{example_type.generator_options} --ignore-warnings --force"
shell_commands << "PACKAGE_JSON_FALLBACK_MANAGER=yarn_classic rails generate react_on_rails:dev_tests #{example_type.generator_options}"
sh_in_dir(example_type.dir, "yarn")
end
end
Expand Down

0 comments on commit 9d5e8c2

Please sign in to comment.