Sha256: 4ffa6a842f240eaafcc70452b8296ec602aa7e1ef1bcb12ba5b7e90bfceb8b63

Contents?: true

Size: 645 Bytes

Versions: 161

Compression:

Stored size: 645 Bytes

Contents

# frozen_string_literal: true

require "webpacker"

namespace :playbook do
  namespace :webpacker do
    desc "Install deps with yarn"
    task :yarn_install do
      Dir.chdir(File.join(__dir__, "../..")) do
        system "yarn install --no-progress --production"
      end
    end

    desc "Compile JavaScript packs using webpack for production with digests"
    task compile: %i[yarn_install environment] do
      ::Webpacker.with_node_env("production") do
        if Playbook.webpacker.commands.compile
          # Successful compilation!
        else
          # Failed compilation
          exit!
        end
      end
    end
  end
end

Version data entries

161 entries across 161 versions & 1 rubygems

Version Path
playbook_ui-5.3.0.pre.alpha1 lib/tasks/playbook_tasks.rake
playbook_ui-5.4.0 lib/tasks/playbook_tasks.rake
playbook_ui-5.2.0.pre.alpha6 lib/tasks/playbook_tasks.rake
playbook_ui-5.2.0.pre.alpha5 lib/tasks/playbook_tasks.rake
playbook_ui-5.3.0 lib/tasks/playbook_tasks.rake
playbook_ui-5.2.0.pre.alpha4 lib/tasks/playbook_tasks.rake
playbook_ui-5.2.0.pre.alpha3 lib/tasks/playbook_tasks.rake
playbook_ui-5.2.0.pre.alpha2 lib/tasks/playbook_tasks.rake
playbook_ui-5.2.0 lib/tasks/playbook_tasks.rake
playbook_ui-5.1.0 lib/tasks/playbook_tasks.rake
playbook_ui-5.0.3 lib/tasks/playbook_tasks.rake
playbook_ui-5.0.2 lib/tasks/playbook_tasks.rake
playbook_ui-5.0.1.pre.beta lib/tasks/playbook_tasks.rake
playbook_ui-5.1.0.pre.alpha4 lib/tasks/playbook_tasks.rake
playbook_ui-5.1.0.pre.alpha2 lib/tasks/playbook_tasks.rake
playbook_ui-5.1.0.pre.alpha1 lib/tasks/playbook_tasks.rake
playbook_ui-5.0.1 lib/tasks/playbook_tasks.rake
playbook_ui-5.0.1.pre.alpha1 lib/tasks/playbook_tasks.rake
playbook_ui-4.18.1.pre.alpha1 lib/tasks/playbook_tasks.rake
playbook_ui-4.18.1 lib/tasks/playbook_tasks.rake