Sha256: f8e29ea375d4dd57fbe457ce618706b8ad89a810225f7874c61075e1ea9eafef
Contents?: true
Size: 507 Bytes
Versions: 2
Compression:
Stored size: 507 Bytes
Contents
# frozen_string_literal: true require 'rake_factory' require 'ruby_npm' module RakeNPM module Tasks class RunScript < RakeFactory::Task default_name :run_script default_description(RakeFactory::DynamicValue.new do |t| "Runs the NPM #{t.script} script" end) parameter :script, required: true action do |task| puts "Running NPM script: '#{task.script}'..." RubyNPM.run_script( script: task.script ) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rake_npm-0.1.0.pre.8 | lib/rake_npm/tasks/run_script.rb |
rake_npm-0.1.0.pre.7 | lib/rake_npm/tasks/run_script.rb |