Sha256: 5c0760d99dbe801c8d36b1544332e11ca17368fa3f7a7417d41395520797eb1c

Contents?: true

Size: 586 Bytes

Versions: 20

Compression:

Stored size: 586 Bytes

Contents

require "webpacker/configuration"

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

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
webpacker-3.6.0 lib/tasks/webpacker/verify_install.rake
webpacker-jets-3.2.101 lib/tasks/webpacker/verify_install.rake
webpacker-jets-3.2.100 lib/tasks/webpacker/verify_install.rake
webpacker-3.5.5 lib/tasks/webpacker/verify_install.rake
webpacker-3.5.3 lib/tasks/webpacker/verify_install.rake
webpacker-3.5.2 lib/tasks/webpacker/verify_install.rake
webpacker-3.5.1 lib/tasks/webpacker/verify_install.rake
webpacker-3.5.0 lib/tasks/webpacker/verify_install.rake
webpacker-3.4.3 lib/tasks/webpacker/verify_install.rake
webpacker-4.0.0.pre.pre.2 lib/tasks/webpacker/verify_install.rake
webpacker-4.0.0.pre.pre.1 lib/tasks/webpacker/verify_install.rake
webpacker-3.4.1 lib/tasks/webpacker/verify_install.rake
webpacker-3.4.0 lib/tasks/webpacker/verify_install.rake
webpacker-3.3.1 lib/tasks/webpacker/verify_install.rake
webpacker-3.3.0 lib/tasks/webpacker/verify_install.rake
webpacker-3.2.2 lib/tasks/webpacker/verify_install.rake
webpacker-3.2.1 lib/tasks/webpacker/verify_install.rake
webpacker-3.2.0 lib/tasks/webpacker/verify_install.rake
webpacker-3.1.1 lib/tasks/webpacker/verify_install.rake
webpacker-3.1.0 lib/tasks/webpacker/verify_install.rake