Sha256: 61fecbecf026f5f645a0d10df4bafdeb2972597b3dd1bb4c920d4b58d0a68f5e

Contents?: true

Size: 616 Bytes

Versions: 4

Compression:

Stored size: 616 Bytes

Contents

# frozen_string_literal: true

require 'rake_factory'
require 'ruby_npm'

module RakeNPM
  module Tasks
    class Install < RakeFactory::Task
      default_name :install
      default_description(RakeFactory::DynamicValue.new do |_t|
        'Install NPM dependencies'
      end)

      parameter :color, default: 'always'
      parameter :fund, default: false
      parameter :audit, default: true

      action do |task|
        puts 'Installing NPM dependencies...'
        RubyNPM.install(
          color: task.color,
          fund: task.fund,
          audit: task.audit
        )
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rake_npm-0.1.0.pre.8 lib/rake_npm/tasks/install.rb
rake_npm-0.1.0.pre.7 lib/rake_npm/tasks/install.rb
rake_npm-0.1.0.pre.6 lib/rake_npm/tasks/install.rb
rake_npm-0.1.0.pre.5 lib/rake_npm/tasks/install.rb