lib/tasks/vite.rake in vite_ruby-3.3.1 vs lib/tasks/vite.rake in vite_ruby-3.3.2

- old
+ new

@@ -61,14 +61,16 @@ prefix = task.name.split(/#|assets:precompile/).first Rake::Task["#{ prefix }vite:install_dependencies"].invoke Rake::Task["#{ prefix }vite:build_all"].invoke end else + desc 'Bundle Vite assets' Rake::Task.define_task('assets:precompile' => ['vite:install_dependencies', 'vite:build_all']) end unless Rake::Task.task_defined?('assets:clean') + desc 'Remove old compiled assets' Rake::Task.define_task('assets:clean', [:keep, :age]) end Rake::Task['assets:clean'].enhance do |_, args| Rake::Task['vite:clean'].invoke(*args.to_h.values) end @@ -76,9 +78,10 @@ if Rake::Task.task_defined?('assets:clobber') Rake::Task['assets:clobber'].enhance do Rake::Task['vite:clobber'].invoke end else + desc 'Remove compiled assets' Rake::Task.define_task('assets:clobber' => 'vite:clobber') end end # Any prerequisite task that installs packages should also install build dependencies.