capistrano-npm 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/capistrano-npm.gemspec +1 -1
- data/lib/capistrano/npm.rb +1 -1
- data/lib/capistrano/tasks/{npm.cap → npm.rake} +4 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 132ed999bf7afe299dac7588e10aab31882650cd
|
4
|
+
data.tar.gz: afbf6a78baff77a10b069e811d2f7678741bbfa8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e74440a21355f159a125dfa38dad6edf420a5b3ed9a20de5263f23a55331fa95bcfb8bd37ca29a978422e4a5b0548d7687005e74993c911009cb2557039ba6dd
|
7
|
+
data.tar.gz: 39fcb2336eb56688628fa3c0509b5445e56e885a11bff818236f09e40cbed6c509a90343177b60afcfca2d1df1f18dc397052c21798ac2236f8bb8c943d5f949
|
data/README.md
CHANGED
@@ -30,9 +30,10 @@ require 'capistrano/npm'
|
|
30
30
|
The task will run before `deploy:updated` as part of Capistrano's default deploy,
|
31
31
|
or can be run in isolation with `cap production npm:install`
|
32
32
|
|
33
|
-
Configurable options, shown here with defaults:
|
33
|
+
Configurable options, shown here with their defaults:
|
34
34
|
|
35
35
|
```ruby
|
36
|
+
set :npm_target_path, nil
|
36
37
|
set :npm_flags, '--production --silent'
|
37
38
|
set :npm_roles, :all
|
38
39
|
```
|
data/capistrano-npm.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'capistrano-npm'
|
7
|
-
spec.version = '0.0.
|
7
|
+
spec.version = '0.0.4'
|
8
8
|
spec.authors = ['Scott Walkinshaw']
|
9
9
|
spec.email = ['scott.walkinshaw@gmail.com']
|
10
10
|
spec.description = %q{npm support for Capistrano 3.x}
|
data/lib/capistrano/npm.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
load File.expand_path('../tasks/npm.
|
1
|
+
load File.expand_path('../tasks/npm.rake', __FILE__)
|
@@ -6,14 +6,14 @@ namespace :npm do
|
|
6
6
|
|
7
7
|
You can override any of these defaults by setting the variables shown below.
|
8
8
|
|
9
|
+
set :npm_target_path, nil
|
9
10
|
set :npm_flags, '--production --silent'
|
10
11
|
set :npm_roles, :all
|
11
12
|
DESC
|
12
13
|
task :install do
|
13
14
|
on roles fetch(:npm_roles) do
|
14
|
-
within release_path do
|
15
|
-
execute :npm,
|
16
|
-
fetch(:npm_flags)
|
15
|
+
within fetch(:npm_target_path, :release_path) do
|
16
|
+
execute :npm, 'install', fetch(:npm_flags)
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
@@ -23,6 +23,7 @@ end
|
|
23
23
|
|
24
24
|
namespace :load do
|
25
25
|
task :defaults do
|
26
|
+
set :npm_target_path, nil
|
26
27
|
set :npm_flags, '--production --silent'
|
27
28
|
set :npm_roles, :all
|
28
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-npm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Walkinshaw
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -67,7 +67,7 @@ files:
|
|
67
67
|
- capistrano-npm.gemspec
|
68
68
|
- lib/capistrano-npm.rb
|
69
69
|
- lib/capistrano/npm.rb
|
70
|
-
- lib/capistrano/tasks/npm.
|
70
|
+
- lib/capistrano/tasks/npm.rake
|
71
71
|
homepage: https://github.com/capistrano/npm
|
72
72
|
licenses:
|
73
73
|
- MIT
|