diff --git a/variants/frontend-stimulus/template.rb b/variants/frontend-stimulus/template.rb index 13ee87d3..f7c79e3f 100644 --- a/variants/frontend-stimulus/template.rb +++ b/variants/frontend-stimulus/template.rb @@ -7,10 +7,8 @@ @hotwired/stimulus-webpack-helpers ] -copy_file "app/frontend/stimulus/controllers/hello_controller.js" -copy_file "app/frontend/stimulus/controllers/add_class_controller.js" -copy_file "app/frontend/test/stimulus/controllers/add_class_controller.test.js" -copy_file "app/frontend/test/setupExpectEachTestHasAssertions.js" +directory "app/frontend/stimulus/controllers" +directory "app/frontend/test" prepend_to_file "app/frontend/packs/application.js" do <<~EO_JS_IMPORTS