Sha256: 89c2f030c20d7927a9535268771f710e933197e16cf600b576de67deb4cbb17a

Contents?: true

Size: 506 Bytes

Versions: 10

Compression:

Stored size: 506 Bytes

Contents

require "webpacker/configuration"

namespace :webpacker do
  desc "Verifies if Webpacker is installed"
  task verify_install: [:check_node, :check_yarn, :check_binstubs] do
    unless Webpacker.config.config_path.exist?
      path = Webpacker.config.config_path.relative_path_from(Pathname.new(pwd)).to_s
      $stderr.puts "Configuration #{path} file not found. \n"\
           "Make sure webpacker:install is run successfully before " \
           "running dependent tasks"
      exit!
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
webpacker-6.0.0.beta.7 lib/tasks/webpacker/verify_install.rake
webpacker-6.0.0.beta.6 lib/tasks/webpacker/verify_install.rake
webpacker-6.0.0.beta.5 lib/tasks/webpacker/verify_install.rake
webpacker-6.0.0.beta.4 lib/tasks/webpacker/verify_install.rake
webpacker-6.0.0.beta.3 lib/tasks/webpacker/verify_install.rake
webpacker-6.0.0.beta.2 lib/tasks/webpacker/verify_install.rake
webpacker-6.0.0.beta.1 lib/tasks/webpacker/verify_install.rake
webpacker-6.0.0.beta lib/tasks/webpacker/verify_install.rake
webpacker-6.0.0.pre.2 lib/tasks/webpacker/verify_install.rake
webpacker-6.0.0.pre.1 lib/tasks/webpacker/verify_install.rake