Sha256: a76deafaa430ee66a9787696d497dcbdc656c420bc34db14a4419a8585dff0b3

Contents?: true

Size: 757 Bytes

Versions: 22

Compression:

Stored size: 757 Bytes

Contents

require "webpacker/version"

namespace :webpacker do
  desc "Provide information on Webpacker's environment"
  task :info do
    Dir.chdir(Rails.root) do
      $stdout.puts "Ruby: #{`ruby --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 "shakapacker: \n#{`npm list shakapacker version`}"

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
shakapacker-6.6.0 lib/tasks/webpacker/info.rake
shakapacker-6.5.6 lib/tasks/webpacker/info.rake
shakapacker-6.5.5 lib/tasks/webpacker/info.rake
shakapacker-6.5.4 lib/tasks/webpacker/info.rake
shakapacker-6.5.3 lib/tasks/webpacker/info.rake
shakapacker-6.5.2 lib/tasks/webpacker/info.rake
shakapacker-6.5.1 lib/tasks/webpacker/info.rake
shakapacker-6.5.0 lib/tasks/webpacker/info.rake
shakapacker-6.4.1 lib/tasks/webpacker/info.rake
shakapacker-6.4.0 lib/tasks/webpacker/info.rake
shakapacker-6.3.0 lib/tasks/webpacker/info.rake
shakapacker-6.3.0.pre.rc.1 lib/tasks/webpacker/info.rake
shakapacker-6.2.1 lib/tasks/webpacker/info.rake
shakapacker-6.2.0 lib/tasks/webpacker/info.rake
shakapacker-6.1.1 lib/tasks/webpacker/info.rake
shakapacker-6.1.0 lib/tasks/webpacker/info.rake
shakapacker-6.1.0.beta.0 lib/tasks/webpacker/info.rake
shakapacker-6.0.2 lib/tasks/webpacker/info.rake
shakapacker-6.0.1 lib/tasks/webpacker/info.rake
shakapacker-6.0.0 lib/tasks/webpacker/info.rake