Sha256: 630a70fa8ddcd23ef53674ad096d45db76aba861a509a05a0cc1b99572c10ce3

Contents?: true

Size: 599 Bytes

Versions: 4

Compression:

Stored size: 599 Bytes

Contents

require "webpacker_lite/configuration"

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
webpacker_lite-1.0.0 lib/tasks/webpacker_lite/verify_install.rake
webpacker_lite-0.0.5 lib/tasks/webpacker_lite/verify_install.rake
webpacker_lite-0.0.4 lib/tasks/webpacker_lite/verify_install.rake
webpacker_lite-0.0.3 lib/tasks/webpacker_lite/verify_install.rake