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-6.5.2 lib/tasks/playbook_tasks.rake
playbook_ui-7.0.1.pre.alpha12 lib/tasks/playbook_tasks.rake
playbook_ui-7.0.1.pre.alpha11 lib/tasks/playbook_tasks.rake
playbook_ui-7.0.1.pre.alpha10 lib/tasks/playbook_tasks.rake
playbook_ui-7.0.1.pre.alpha9 lib/tasks/playbook_tasks.rake
playbook_ui-6.5.1 lib/tasks/playbook_tasks.rake
playbook_ui-6.5.0 lib/tasks/playbook_tasks.rake
playbook_ui-7.0.1.pre.alpha8 lib/tasks/playbook_tasks.rake
playbook_ui-7.0.1.pre.alpha7 lib/tasks/playbook_tasks.rake
playbook_ui-7.0.1.pre.alpha6 lib/tasks/playbook_tasks.rake
playbook_ui-7.0.1.pre.alpha5 lib/tasks/playbook_tasks.rake
playbook_ui-7.0.1.pre.alpha4 lib/tasks/playbook_tasks.rake
playbook_ui-7.0.1.pre.alpha3 lib/tasks/playbook_tasks.rake
playbook_ui-7.0.1.pre.alpha2 lib/tasks/playbook_tasks.rake
playbook_ui-6.4.2 lib/tasks/playbook_tasks.rake
playbook_ui-7.0.1.pre.alpha1 lib/tasks/playbook_tasks.rake
playbook_ui-7.0.0.pre.alpha9 lib/tasks/playbook_tasks.rake
playbook_ui-7.0.0.pre.alpha8 lib/tasks/playbook_tasks.rake
playbook_ui-7.0.0.pre.alpha7 lib/tasks/playbook_tasks.rake
playbook_ui-6.4.1 lib/tasks/playbook_tasks.rake