Skip to content

Commit 38bc6a2

Browse files
committed
fix: remove unused Procfile.dev-static and fix backward compatibility
- Remove unused Procfile.dev-static template and references - Update base_generator.rb to not copy the unused file - Update tests to not expect the unused file - Fix AdaptForOlderShakapackerGenerator to handle new Procfile structure - Add missing Procfile.dev-prod-assets to backward compatibility generator
1 parent beef2a7 commit 38bc6a2

File tree

4 files changed

+2
-12
lines changed

4 files changed

+2
-12
lines changed

lib/generators/react_on_rails/adapt_for_older_shakapacker_generator.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ def change_spelling_to_webpacker
1313
puts "Change spelling to webpacker v7"
1414
files = %w[
1515
Procfile.dev
16-
Procfile.dev-static
16+
Procfile.dev-static-assets
17+
Procfile.dev-prod-assets
1718
config/shakapacker.yml
1819
config/initializers/react_on_rails.rb
1920
]

lib/generators/react_on_rails/base_generator.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ def copy_base_files
3131
base_files = %w[app/controllers/hello_world_controller.rb
3232
app/views/layouts/hello_world.html.erb
3333
Procfile.dev
34-
Procfile.dev-static
3534
Procfile.dev-static-assets
3635
Procfile.dev-prod-assets]
3736
base_templates = %w[config/initializers/react_on_rails.rb]

lib/generators/react_on_rails/templates/base/base/Procfile.dev-static

Lines changed: 0 additions & 9 deletions
This file was deleted.

spec/react_on_rails/support/shared_examples/base_generator_examples.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
%w[app/controllers/hello_world_controller.rb
2020
config/initializers/react_on_rails.rb
2121
Procfile.dev
22-
Procfile.dev-static
2322
Procfile.dev-static-assets
2423
Procfile.dev-prod-assets].each { |file| assert_file(file) }
2524

0 commit comments

Comments
 (0)