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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rake_npm/tasks/run_script.rb +24 -0
- data/lib/rake_npm/tasks.rb +1 -0
- data/lib/rake_npm/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8dad1f15449b68c461351185986bfa0e98648dae4d1ca6e735fe16a13767e7d
|
4
|
+
data.tar.gz: d8e143763fb758af6e90aa6df7f341c0b330b4b0c207e0104e721a2cd338fe50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36eb90ffb682b751bc468f55fda7ef8dda0c4e306f4c1a09c458b5bb62a2b606beb129486857c860b2f928af0e85c613836ab0e083f19e64e4a6f5e1c165a39d
|
7
|
+
data.tar.gz: f95b7f8d99279b59b108c777a30100222b74e88520738209fa87d3420ed77e0f4a2349b792ff0598a70ac92e813f56701b85be8cc446857a397e48ecaef1f187
|
data/Gemfile.lock
CHANGED
@@ -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
|
data/lib/rake_npm/tasks.rb
CHANGED
data/lib/rake_npm/version.rb
CHANGED
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.
|
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
|