Skip to content

Commit

Permalink
refactor: use directory instead of multiple copy_file calls
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Aug 10, 2023
1 parent 06de10f commit 1655045
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions variants/frontend-stimulus/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1655045

Please sign in to comment.