Skip to content

Commit

Permalink
Update stimulus_tasks.rake (#129)
Browse files Browse the repository at this point in the history
Describe the two options under stimulus:manifest so they can be found in a `rails -T` aid d'memoir.
  • Loading branch information
walterdavis authored Jan 3, 2024
1 parent 7510ff9 commit b87c71f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/tasks/stimulus_tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@ namespace :stimulus do
end

namespace :manifest do
desc "Show the current Stimulus manifest (all installed controllers)"
task :display do
puts Stimulus::Manifest.generate_from(Rails.root.join("app/javascript/controllers"))
end

desc "Update the Stimulus manifest (will overwrite controllers/index.js)"
task :update do
manifest =
Stimulus::Manifest.generate_from(Rails.root.join("app/javascript/controllers"))
Expand Down

0 comments on commit b87c71f

Please sign in to comment.