Sha256: 196aab2b605c643d6e96e5a063219a8124b593c71d6f28696c0d3734daa623f4

Contents?: true

Size: 600 Bytes

Versions: 1

Compression:

Stored size: 600 Bytes

Contents

require "webpacker_helpers/configuration"

namespace :webpacker_helpers do
  desc "Verifies if webpacker_helpers is installed"
  task verify_install: [:check_node, :check_yarn] do
    if File.exist?(WebpackerHelpers::Env.file_path)
      puts "WebpackerHelpers is installed 🎉 🍰"
      puts "Using #{WebpackerHelpers::Env.file_path} file for setting up webpack paths"
    else
      puts "Configuration config/webpack/paths.yml file not found. \n"\
           "Make sure webpacker_helpers:install is run successfully before " \
           "running dependent tasks"
      exit!
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
webpacker_helpers-3.0.0.beta.1 lib/tasks/webpacker_lite/verify_install.rake