Sha256: ab3b6d17e68d8bf6da3fbb99dc40849e83e3e71756e545c27aa71685de880e23
Contents?: true
Size: 875 Bytes
Versions: 18
Compression:
Stored size: 875 Bytes
Contents
# frozen_string_literal: true # rubocop:disable Rails/RakeEnvironment namespace :renalware do desc "Install package.json dependencies with yarn for the renalware-core engine - "\ "without this <path to installed gem>/renalware-core/node_modules is not populated "\ "and assets:precompile in the host app will not work." task :yarn_install do puts "Installing renalware-core/package.json dependencies with yarn" Dir.chdir(File.join(__dir__, "../..")) do if ENV["RAILS_ENV"] == "production" system "yarn install --no-progress --production" else system "yarn install" end end end end if Rake::Task.task_defined?("yarn:install") Rake::Task["yarn:install"].enhance(["renalware:yarn_install"]) else Rake::Task.define_task("yarn:install" => "renalware:yarn_install") end # rubocop:enable Rails/RakeEnvironment
Version data entries
18 entries across 18 versions & 1 rubygems