Sha256: c26f8831478adac852bf18bf7d92105e08279cd61c0fe3a1e300fb406c80e17c

Contents?: true

Size: 400 Bytes

Versions: 16

Compression:

Stored size: 400 Bytes

Contents

namespace :webpacker do
  desc "Verifies that bin/webpack is present"
  task :check_binstubs do
    unless File.exist?(Rails.root.join("bin/webpack"))
      $stderr.puts "webpack binstub not found.\n"\
           "Have you run rails webpacker:install ?\n"\
           "Make sure the bin directory and bin/webpack are not included in .gitignore\n"\
           "Exiting!"
      exit!
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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