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-3.1.0 lib/tasks/playbook_tasks.rake
playbook_ui-3.0.1 lib/tasks/playbook_tasks.rake
playbook_ui-3.0.0 lib/tasks/playbook_tasks.rake
playbook_ui-2.9.9 lib/tasks/playbook_tasks.rake
playbook_ui-2.9.8 lib/tasks/playbook_tasks.rake
playbook_ui-2.9.7 lib/tasks/playbook_tasks.rake
playbook_ui-2.9.6 lib/tasks/playbook_tasks.rake
playbook_ui-2.9.5 lib/tasks/playbook_tasks.rake
playbook_ui-2.9.4 lib/tasks/playbook_tasks.rake
playbook_ui-2.9.3 lib/tasks/playbook_tasks.rake
playbook_ui-2.9.2 lib/tasks/playbook_tasks.rake
playbook_ui-2.9.1 lib/tasks/playbook_tasks.rake
playbook_ui-2.9.0 lib/tasks/playbook_tasks.rake
playbook_ui-2.8.9 lib/tasks/playbook_tasks.rake
playbook_ui-2.8.8 lib/tasks/playbook_tasks.rake
playbook_ui-2.8.7 lib/tasks/playbook_tasks.rake
playbook_ui-2.8.6 lib/tasks/playbook_tasks.rake
playbook_ui-2.8.5 lib/tasks/playbook_tasks.rake
playbook_ui-2.8.4 lib/tasks/playbook_tasks.rake
playbook_ui-2.8.3 lib/tasks/playbook_tasks.rake