Sha256: 14d66a6428c8f9d769d65e0c40e55bbd6191bf5910a7cf3f9be553a14477c210

Contents?: true

Size: 743 Bytes

Versions: 8

Compression:

Stored size: 743 Bytes

Contents

require "webpacker/version"

namespace :webpacker do
  desc "Provide information on Webpacker's environment"
  task :info do
    $stdout.puts "Ruby: #{`ruby --version`}"
    $stdout.puts "Jets: #{Jets.version}"
    $stdout.puts "Rails: #{Rails.version}"
    $stdout.puts "Webpacker: #{Webpacker::VERSION}"
    $stdout.puts "Node: #{`node --version`}"
    $stdout.puts "Yarn: #{`yarn --version`}"

    $stdout.puts "\n"
    $stdout.puts "@rails/webpacker: \n#{`npm list @rails/webpacker version`}"

    $stdout.puts "Is bin/webpack present?: #{File.exist? 'bin/webpack'}"
    $stdout.puts "Is bin/webpack-dev-server present?: #{File.exist? 'bin/webpack-dev-server'}"
    $stdout.puts "Is bin/yarn present?: #{File.exist? 'bin/yarn'}"
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
jetpacker-0.7.0 lib/tasks/webpacker/info.rake
jetpacker-0.6.0 lib/tasks/webpacker/info.rake
jetpacker-0.5.0 lib/tasks/webpacker/info.rake
jetpacker-0.4.2 lib/tasks/webpacker/info.rake
jetpacker-0.4.1 lib/tasks/webpacker/info.rake
jetpacker-0.4.0 lib/tasks/webpacker/info.rake
jetpacker-0.3.0 lib/tasks/webpacker/info.rake
jetpacker-0.2.0 lib/tasks/webpacker/info.rake