cap-laravel 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cap/laravel/version.rb +1 -1
- data/lib/cap/tasks/artisan.rake +1 -1
- data/lib/cap/tasks/assets.rake +18 -4
- data/lib/cap/tasks/composer.rake +2 -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: 037bf7d031faa3437de1fc4b4a82f05002b8e5d0
|
4
|
+
data.tar.gz: ec7bb42c3341d3d2063879647159473e2ed0da57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d62ae37a186dfeec37f2015331b80b491a0d3a8ff00d34ca84dace50c07d74858f42e4182881dd242947d601c83c7fafbfde92182541ca85e295806f3ac0c3e9
|
7
|
+
data.tar.gz: b8dba3f535e633aadce14e89622c90abf0471c3a1b6ec55921889653191bdbaaba15df38c0385b79a45761cc8e359f510d65f4ea16b2134a8a96c13041624acc
|
data/lib/cap/laravel/version.rb
CHANGED
data/lib/cap/tasks/artisan.rake
CHANGED
data/lib/cap/tasks/assets.rake
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
namespace :assets do
|
2
2
|
|
3
3
|
desc "Install node components"
|
4
|
-
task :
|
4
|
+
task :run_npm do
|
5
5
|
on roles(:app) do
|
6
6
|
within release_path do
|
7
|
-
if
|
7
|
+
if test("[ -e #{release_path}/package.json ]")
|
8
8
|
execute :npm, :install, "--quiet"
|
9
9
|
end
|
10
10
|
end
|
@@ -12,15 +12,29 @@ namespace :assets do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
desc "Run the grunt command"
|
15
|
-
task :
|
15
|
+
task :run_grunt do
|
16
16
|
on roles(:app) do
|
17
17
|
within release_path do
|
18
|
-
if
|
18
|
+
if test("[ -e #{release_path}/Gruntfile.js ]")
|
19
19
|
execute fetch(:grunt_cmd)
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
24
|
+
|
25
|
+
desc "Run npm"
|
26
|
+
task :npm do
|
27
|
+
if fetch(:run_assets)
|
28
|
+
invoke 'assets:run_npm'
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
desc "Run grunt"
|
33
|
+
task :grunt do
|
34
|
+
if fetch(:run_assets)
|
35
|
+
invoke 'assets:run_grunt'
|
36
|
+
end
|
37
|
+
end
|
24
38
|
|
25
39
|
# probs wont work
|
26
40
|
desc "Run the bower command"
|
data/lib/cap/tasks/composer.rake
CHANGED
@@ -4,7 +4,7 @@ namespace :composer do
|
|
4
4
|
task :install do
|
5
5
|
on roles(:app) do
|
6
6
|
within release_path do
|
7
|
-
execute :composer,
|
7
|
+
execute :composer, :install, "--no-dev --quiet"
|
8
8
|
end
|
9
9
|
end
|
10
10
|
end
|
@@ -13,7 +13,7 @@ namespace :composer do
|
|
13
13
|
task :update do
|
14
14
|
on roles(:app) do
|
15
15
|
within release_path do
|
16
|
-
execute :composer,
|
16
|
+
execute :composer, :update, "--no-dev --quiet"
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cap-laravel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gareth Bishop
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|