Sha256: 12f1d7605857245d0f45f15c3e9e9baa647abe23403175c3d864a0add2e30572

Contents?: true

Size: 642 Bytes

Versions: 3

Compression:

Stored size: 642 Bytes

Contents

# frozen_string_literal: true

namespace :rails_server_monitor 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: [:yarn_install, :environment] do
    Webpacker.with_node_env("production") do
      if RailsServerMonitor.webpacker.commands.compile
        # Successful compilation!
      else
        # Failed compilation
        exit!
      end
    end
  end
end

task "assets:precompile" => "rails_server_monitor:compile"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails-server-monitor-0.1.6 lib/tasks/rails_server_monitor_tasks.rake
rails-server-monitor-0.1.5 lib/tasks/rails_server_monitor_tasks.rake
rails-server-monitor-0.1.4 lib/tasks/rails_server_monitor_tasks.rake