debian-mirror-gitlab/debian/gems-compat/railties-5.1.7/lib/rails/tasks/yarn.rake
2019-08-02 22:44:51 +05:30

11 lines
369 B
Ruby

namespace :yarn do
desc "Install all JavaScript dependencies as specified via Yarn"
task :install do
system("./bin/yarn install --no-progress")
end
end
# Run Yarn prior to Sprockets assets precompilation, so dependencies are available for use.
if Rake::Task.task_defined?("assets:precompile")
Rake::Task["assets:precompile"].enhance [ "yarn:install" ]
end