capistrano-npm-build 2.0 → 2.0.1

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
  SHA256:
3
- metadata.gz: bfba5081de78c0a59432cecdf768e8cda18f9fb85676b711d1b63a8c82d5bf09
4
- data.tar.gz: 92518b8e3b9549fb0f92db2043bdadca58e846b198f7ced53de58bbcadb98a29
3
+ metadata.gz: 6cad039e4229e7e8f3906d012d26d02ac5c2ac70783c6e8d9b2281c34421ef1c
4
+ data.tar.gz: 191cba2dd993852c8dbff10ea6216f5df33f32980add09749c6ccf9f2cf92444
5
5
  SHA512:
6
- metadata.gz: a5f6d0eeae1004d1de28c8d63a8bed357a7fdf60fb7804f62b096ca531609c693d51c1194e002e931a815591684bf1aa7d295a8c2fe944598275e23c834321d5
7
- data.tar.gz: 76a64d060a706ada3192c611e67ec4bbbcd4adc84bbf67f4743cbba0913661741cd1f23aca71718dba89d6bfed41e2d0d7ca8bdcfda2f77161ea5dbf217e4b8a
6
+ metadata.gz: 82ea228db9320f89390a9778359c5f47059d8c3f3a3d9ae91a597ecdf49f6c9409b6d1427c6ad5cf3a51561e849b2425861b95f8cb2bfdbe6da05cac9d0fd705
7
+ data.tar.gz: 54d0b0416da7c279da43eb74ef32d8f05cf3dc46be8b89fae321317ea22a22a52aae5fa1af6e8a2a9959e3f91f64939e0b9b8b00c6bd5056ca32f9818945e323
@@ -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-build'
7
- spec.version = '2.0'
7
+ spec.version = '2.0.1'
8
8
  spec.authors = ['Abhilash Reddy']
9
9
  spec.email = ['abhilashmv@outlook.com']
10
10
  spec.description = %q{npm build support for Capistrano 3.x}
@@ -4,6 +4,16 @@ namespace :npm do
4
4
  within fetch(:npm_target_path, release_path) do
5
5
  with fetch(:npm_env_variables, {}) do
6
6
  execute :npm, 'install', fetch(:npm_flags)
7
+ # execute "sh -c \"cd #{fetch(:deploy_to)}/current/ && #{fetch(:build_command)}\""
8
+ end
9
+ end
10
+ end
11
+ end
12
+
13
+ task :build do
14
+ on roles fetch(:npm_roles) do
15
+ within fetch(:npm_target_path, release_path) do
16
+ with fetch(:npm_env_variables, {}) do
7
17
  execute "sh -c \"cd #{fetch(:deploy_to)}/current/ && #{fetch(:build_command)}\""
8
18
  end
9
19
  end
@@ -11,6 +21,7 @@ namespace :npm do
11
21
  end
12
22
 
13
23
  before 'deploy:updated', 'npm:install'
24
+ after 'npm:install', 'npm:build'
14
25
 
15
26
  task :prune do
16
27
  on roles fetch(:npm_roles) do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-npm-build
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.0'
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abhilash Reddy