File: verify_install.rake

package info (click to toggle)
ruby-webpacker 5.4.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,472 kB
  • sloc: ruby: 1,626; javascript: 1,480; makefile: 4
file content (13 lines) | stat: -rw-r--r-- 434 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
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?
      $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