rake_npm 0.1.0.pre.6 → 0.1.0.pre.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eab20fb2df3c5c70ad008c83ba12de2ba867186fcf50481bb0d02ceace716e20
4
- data.tar.gz: 0b0863615a3278fb179cc1a18ed3bdfb5d0f475aaa28b640cf3f2ab884444e69
3
+ metadata.gz: b8dad1f15449b68c461351185986bfa0e98648dae4d1ca6e735fe16a13767e7d
4
+ data.tar.gz: d8e143763fb758af6e90aa6df7f341c0b330b4b0c207e0104e721a2cd338fe50
5
5
  SHA512:
6
- metadata.gz: 5de21c17d0092bbfbfccdb6785ea7574f9674d4adb5fe7ab2835ab5202ce448d1b5537180ab339ac2f7ca6778d510237d61c7e54511d29a98fb32f461f0b5138
7
- data.tar.gz: 04feaf470c67684becf1dd3873250c0d0018228a6c9550380e5437f7c5d3717665ad9b4db5a2004c993792ad0e3fc68e773d229a0b917b21243beaf3b2362ddb
6
+ metadata.gz: 36eb90ffb682b751bc468f55fda7ef8dda0c4e306f4c1a09c458b5bb62a2b606beb129486857c860b2f928af0e85c613836ab0e083f19e64e4a6f5e1c165a39d
7
+ data.tar.gz: f95b7f8d99279b59b108c777a30100222b74e88520738209fa87d3420ed77e0f4a2349b792ff0598a70ac92e813f56701b85be8cc446857a397e48ecaef1f187
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_npm (0.1.0.pre.6)
4
+ rake_npm (0.1.0.pre.7)
5
5
  colored2 (~> 3.1)
6
6
  rake_dependencies (~> 3.1)
7
7
  rake_factory (~> 0.23)
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rake_factory'
4
+ require 'ruby_npm'
5
+
6
+ module RakeNPM
7
+ module Tasks
8
+ class RunScript < RakeFactory::Task
9
+ default_name :run_script
10
+ default_description(RakeFactory::DynamicValue.new do |t|
11
+ "Runs the NPM #{t.script} script"
12
+ end)
13
+
14
+ parameter :script, required: true
15
+
16
+ action do |task|
17
+ puts "Running NPM script: '#{task.script}'..."
18
+ RubyNPM.run_script(
19
+ script: task.script
20
+ )
21
+ end
22
+ end
23
+ end
24
+ end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative 'tasks/install'
4
+ require_relative 'tasks/run_script'
4
5
 
5
6
  module RakeNPM
6
7
  module Tasks
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RakeNPM
4
- VERSION = '0.1.0.pre.6'
4
+ VERSION = '0.1.0.pre.7'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_npm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.6
4
+ version: 0.1.0.pre.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers
@@ -283,6 +283,7 @@ files:
283
283
  - lib/rake_npm/task_sets/npm.rb
284
284
  - lib/rake_npm/tasks.rb
285
285
  - lib/rake_npm/tasks/install.rb
286
+ - lib/rake_npm/tasks/run_script.rb
286
287
  - lib/rake_npm/version.rb
287
288
  - rake_npm.gemspec
288
289
  homepage: https://github.com/infrablocks/rake_npm