Sha256: 280eb86851084ba1e815dfd224fbba2b74cdc9aa1315f4d9266b457cd461012b
Contents?: true
Size: 624 Bytes
Versions: 33
Compression:
Stored size: 624 Bytes
Contents
module Isomorfeus module Installer class Npm def self.execute Bundler.with_original_env do begin if File.exist?('package.json') puts 'Executing npm install:' system("npm install") end rescue puts "failed, is npm installed?" end begin puts 'Executing npm install esbuild:' system("npm install esbuild") rescue puts "failed, using the supplied, but slower esuild-wasm instead." end end end end end end
Version data entries
33 entries across 33 versions & 1 rubygems