blob: bb99d38fdee6cc601eba66b71fbf3837d5192bb9 (
plain) (
tree)
|
|
namespace :yarn do
desc "Install all JavaScript dependencies as specified via Yarn"
task :install do
system('./bin/yarn install')
end
end
# Run Yarn prior to Sprockets assets precompilation, so dependencies are available for use.
Rake::Task['assets:precompile'].enhance [ 'yarn:install' ]
|