Sha256: 49c96e107bae3a27383c4cad9b34670842549b205aa33214cd5a3b77c83fe0b8

Contents?: true

Size: 369 Bytes

Versions: 20

Compression:

Stored size: 369 Bytes

Contents

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
railties-5.1.7 lib/rails/tasks/yarn.rake
railties-5.1.7.rc1 lib/rails/tasks/yarn.rake
railties-5.1.6.2 lib/rails/tasks/yarn.rake
railties-5.1.6.1 lib/rails/tasks/yarn.rake
railties-5.1.6 lib/rails/tasks/yarn.rake
railties-5.1.5 lib/rails/tasks/yarn.rake
railties-5.1.5.rc1 lib/rails/tasks/yarn.rake
railties-5.1.4 lib/rails/tasks/yarn.rake
railties-5.1.4.rc1 lib/rails/tasks/yarn.rake
railties-5.1.3 lib/rails/tasks/yarn.rake
railties-5.1.3.rc3 lib/rails/tasks/yarn.rake
railties-5.1.3.rc2 lib/rails/tasks/yarn.rake
railties-5.1.3.rc1 lib/rails/tasks/yarn.rake
railties-5.1.2 lib/rails/tasks/yarn.rake
railties-5.1.2.rc1 lib/rails/tasks/yarn.rake
railties-5.1.1 lib/rails/tasks/yarn.rake
railties-5.1.0 lib/rails/tasks/yarn.rake
railties-5.1.0.rc2 lib/rails/tasks/yarn.rake
railties-5.1.0.rc1 lib/rails/tasks/yarn.rake
railties-5.1.0.beta1 lib/rails/tasks/yarn.rake