capistrano-npm 1.0.2 → 1.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 064716d8439d99c2e6af60bccaf093ea6a810ce3
4
- data.tar.gz: 65191ff8342ac81de3385595433c421c7c6f5d49
3
+ metadata.gz: 583f33370908a8eda74a9502a442f9db04ca825c
4
+ data.tar.gz: 6e20b88af3799cfd25e2c5b84e6f08b25b9fd771
5
5
  SHA512:
6
- metadata.gz: 3c53da9665c839fa6bee9893568ea9f49b5b964b2419c9fc0a72397ad6033b5461d6ed711add68be129b761f57562a32170ba9504822488382b2e101d498a93a
7
- data.tar.gz: 77daf9a60a51f95829f9f8dd775d947bfc9d5cd5711d15e4f7227ddfa2954171d77c706e21f141da10580119e3348c3725cff3a26cab1108824710a008a6748f
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`.
@@ -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.2'
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, 'install', fetch(:npm_flags)
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.2
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: 2016-02-29 00:00:00.000000000 Z
11
+ date: 2018-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano