Sha256: d3ed2c0543234c633c40444f3167b2ee1e96e08fe559c66302df08cee92caa11

Contents?: true

Size: 417 Bytes

Versions: 6

Compression:

Stored size: 417 Bytes

Contents

namespace :webpacker do
  desc "Support for older Rails versions. Install all JavaScript dependencies as specified via Yarn"
  task :yarn_install do
    valid_node_envs = %w[test development production]
    node_env = ENV.fetch("NODE_ENV") do
      valid_node_envs.include?(Rails.env) ? Rails.env : "production"
    end
    system({ "NODE_ENV" => node_env }, "yarn install --no-progress --frozen-lockfile")
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
webpacker-5.2.1 lib/tasks/webpacker/yarn_install.rake
webpacker-5.2.0 lib/tasks/webpacker/yarn_install.rake
webpacker-5.1.1 lib/tasks/webpacker/yarn_install.rake
webpacker-5.1.0 lib/tasks/webpacker/yarn_install.rake
webpacker-5.0.1 lib/tasks/webpacker/yarn_install.rake
webpacker-5.0.0 lib/tasks/webpacker/yarn_install.rake