capistrano-npm 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/capistrano-npm.gemspec +1 -1
- data/lib/capistrano/tasks/npm.rake +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9894f6b990de09398c50144e9fd38e6c52f95d42
|
|
4
|
+
data.tar.gz: 5b88615b8dce11b734aa95f58f6fe38c977be87c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a390ce86348135846bb189b6984ce14cce2cc51d97c6372a6978961ebfce5c56b3f4b2e0ca414d88daff1bd538a591a1ba55e29d506f957539eec35ef2a4e17b
|
|
7
|
+
data.tar.gz: 17aba9eb8f2809b1bd396716172bb4596e694105f8b11c6c0ba00422d6f4ae49ca21e0f4ceff8bad028a8583dc060b95592dbc1ecf665b8f5e0412d2069f0158
|
data/README.md
CHANGED
|
@@ -30,12 +30,12 @@ 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
|
|
33
|
+
Configurable options:
|
|
34
34
|
|
|
35
35
|
```ruby
|
|
36
|
-
set :npm_target_path,
|
|
37
|
-
set :npm_flags, '--production --silent'
|
|
38
|
-
set :npm_roles, :all
|
|
36
|
+
set :npm_target_path, release_path.join('subdir') # default not set
|
|
37
|
+
set :npm_flags, '--production --silent' # default
|
|
38
|
+
set :npm_roles, :all # default
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
## Contributing
|
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.5'
|
|
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}
|
|
@@ -12,7 +12,7 @@ namespace :npm do
|
|
|
12
12
|
DESC
|
|
13
13
|
task :install do
|
|
14
14
|
on roles fetch(:npm_roles) do
|
|
15
|
-
within fetch(:npm_target_path,
|
|
15
|
+
within fetch(:npm_target_path, release_path) do
|
|
16
16
|
execute :npm, 'install', fetch(:npm_flags)
|
|
17
17
|
end
|
|
18
18
|
end
|
|
@@ -23,7 +23,6 @@ end
|
|
|
23
23
|
|
|
24
24
|
namespace :load do
|
|
25
25
|
task :defaults do
|
|
26
|
-
set :npm_target_path, nil
|
|
27
26
|
set :npm_flags, '--production --silent'
|
|
28
27
|
set :npm_roles, :all
|
|
29
28
|
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.5
|
|
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-12-
|
|
11
|
+
date: 2013-12-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: capistrano
|