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 +4 -4
- data/capistrano-npm-build.gemspec +1 -1
- data/lib/capistrano/tasks/npm_build.rake +11 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6cad039e4229e7e8f3906d012d26d02ac5c2ac70783c6e8d9b2281c34421ef1c
|
|
4
|
+
data.tar.gz: 191cba2dd993852c8dbff10ea6216f5df33f32980add09749c6ccf9f2cf92444
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|