File: check_node.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 (8 lines) | stat: -rw-r--r-- 211 bytes parent folder | download
1
2
3
4
5
6
7
8
require "semantic_range"
namespace :webpacker do
  desc "Verifies if Node.js is installed"
  task :check_node do
    node_version = `node -v || nodejs -v`
    puts "Node.js version is #{node_version}"
  end
end