From b87c71fbeb7e5cfca69b6b189f9f7e128b16dc08 Mon Sep 17 00:00:00 2001 From: Walter Lee Davis Date: Wed, 3 Jan 2024 08:02:54 -0500 Subject: [PATCH] Update stimulus_tasks.rake (#129) Describe the two options under stimulus:manifest so they can be found in a `rails -T` aid d'memoir. --- lib/tasks/stimulus_tasks.rake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tasks/stimulus_tasks.rake b/lib/tasks/stimulus_tasks.rake index 8878a13..f6d8eaf 100644 --- a/lib/tasks/stimulus_tasks.rake +++ b/lib/tasks/stimulus_tasks.rake @@ -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"))