Sha256: 771501d9c94e6d763d0ab558b65d1d6e24a423423911d51ef3b0583fa99bb130

Contents?: true

Size: 892 Bytes

Versions: 5

Compression:

Stored size: 892 Bytes

Contents

namespace :vue do
  desc "Provide information on Webpacker's environment"
  task :info do
    $stdout.puts "Ruby: #{`ruby --version`}"
    $stdout.puts "Rails: #{Rails.version}"
    begin
      $stdout.puts "Webpacker: #{Webpacker::VERSION}" 
    rescue NameError 
      $stdout.puts "Webpacker: Not installed"
    end
    $stdout.puts "Node: #{`node --version`}"
    $stdout.puts "Yarn: #{`yarn --version`}"
    $stdout.puts "\n"
    $stdout.puts "#{`yarn list @rails/webpacker vueonrails vue-i18n vue vue-loader vuex vue-template-compiler webpack-dev-server @vue/test-utils jest jest-serializer-vue vue-jest babel-jest`}"
    $stdout.puts "\n"

    $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

5 entries across 5 versions & 1 rubygems

Version Path
vueonrails-1.0.0.beta5 lib/tasks/info.rake
vueonrails-1.0.0.beta3 lib/tasks/info.rake
vueonrails-1.0.0.beta2 lib/tasks/info.rake
vueonrails-1.0.0.beta1 lib/tasks/info.rake
vueonrails-0.3.0 lib/tasks/info.rake