capistrano-npm 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -0
- data/capistrano-npm.gemspec +1 -1
- data/lib/capistrano/tasks/npm.rake +3 -1
- 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: 583f33370908a8eda74a9502a442f9db04ca825c
|
4
|
+
data.tar.gz: 6e20b88af3799cfd25e2c5b84e6f08b25b9fd771
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab4ac955c6dc5ab95ef174a4fd84363a2ee822324749480cffb79dbd0f5895950b71b6a857352bf0b0606f424d2ae99feb4125f90f6c833265225e468ce7446a
|
7
|
+
data.tar.gz: 01948cede6d57fd1f16f4679ae92c9495c92240e1fbfae1844412c1bf03b5092593efd9e793a5ca4b7cd2c8feb2747183da606c898d64be604b4d33d081cbd96
|
data/README.md
CHANGED
@@ -37,8 +37,15 @@ set :npm_target_path, -> { release_path.join('subdir') } # default not set
|
|
37
37
|
set :npm_flags, '--production --silent --no-progress' # default
|
38
38
|
set :npm_roles, :all # default
|
39
39
|
set :npm_env_variables, {} # default
|
40
|
+
set :npm_method, 'install' # default
|
40
41
|
```
|
41
42
|
|
43
|
+
### NPM Method
|
44
|
+
|
45
|
+
As of version 5.7.0 of npm, a new install method (`ci`) was introduced which utilises
|
46
|
+
the `package-lock.json` file. Change `npm_method` to `ci` in order to use make
|
47
|
+
use of the improved installation method.
|
48
|
+
|
42
49
|
### Dependencies
|
43
50
|
|
44
51
|
npm allows for normal `dependencies` and `devDependencies`. By default this gem uses `'--production --silent --no-progress'` as the install flags which will **only** install `dependencies` and skip `devDependencies`. If you want your `devDependencies` installed as well, then remove `--production`.
|
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 = '1.0.
|
7
|
+
spec.version = '1.0.3'
|
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}
|
@@ -10,12 +10,13 @@ namespace :npm do
|
|
10
10
|
set :npm_flags, '--production --silent --no-spin'
|
11
11
|
set :npm_roles, :all
|
12
12
|
set :npm_env_variables, {}
|
13
|
+
set :npm_method, 'install'
|
13
14
|
DESC
|
14
15
|
task :install do
|
15
16
|
on roles fetch(:npm_roles) do
|
16
17
|
within fetch(:npm_target_path, release_path) do
|
17
18
|
with fetch(:npm_env_variables, {}) do
|
18
|
-
execute :npm,
|
19
|
+
execute :npm, fetch(:npm_method), fetch(:npm_flags)
|
19
20
|
end
|
20
21
|
end
|
21
22
|
end
|
@@ -70,5 +71,6 @@ namespace :load do
|
|
70
71
|
set :npm_flags, %w(--production --silent --no-progress)
|
71
72
|
set :npm_prune_flags, '--production'
|
72
73
|
set :npm_roles, :all
|
74
|
+
set :npm_method, 'install'
|
73
75
|
end
|
74
76
|
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: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Walkinshaw
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|