Skip to content

Commit 330ba11

Browse files
committed
Fix shakapacker_examples rake task issues
- Add missing space in rails_options concatenation - Use npm install instead of yarn to match Shakapacker's default 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 34a9f97 commit 330ba11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rakelib/shakapacker_examples.rake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace :shakapacker_examples do # rubocop:disable Metrics/BlockLength
2929
task example_type.gen_task_name_short => example_type.clobber_task_name do
3030
puts "Running shakapacker_examples:#{example_type.gen_task_name_short}"
3131
mkdir_p(example_type.dir)
32-
example_type.rails_options += "--skip-javascript"
32+
example_type.rails_options += " --skip-javascript"
3333
sh_in_dir(examples_dir, "rails new #{example_type.name} #{example_type.rails_options}")
3434
sh_in_dir(example_type.dir, "touch .gitignore")
3535
sh_in_dir(example_type.dir,
@@ -38,7 +38,7 @@ namespace :shakapacker_examples do # rubocop:disable Metrics/BlockLength
3838
bundle_install_in(example_type.dir)
3939
sh_in_dir(example_type.dir, "rake shakapacker:install")
4040
sh_in_dir(example_type.dir, example_type.generator_shell_commands)
41-
sh_in_dir(example_type.dir, "yarn")
41+
sh_in_dir(example_type.dir, "npm install")
4242
end
4343
end
4444

0 commit comments

Comments
 (0)