capistrano-gulp 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/README.md +79 -0
- data/Rakefile +1 -0
- data/capistrano-gulp.gemspec +24 -0
- data/lib/capistrano-gulp.rb +0 -0
- data/lib/capistrano/gulp.rb +1 -0
- data/lib/capistrano/tasks/gulp.rake +40 -0
- metadata +94 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1967ffddb057419569b336984c0bfc548fbd2f26
|
4
|
+
data.tar.gz: 957425b9ca87070cab49f04a950cf7b1d4d7804c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 414e6dacefbf077960501b6723513bbd05f23019915e7c3fcb33667ad14493dab31c3383830bffe94ddf852234b9841354aa10c03d0d57920e698cccd32ac22b
|
7
|
+
data.tar.gz: 994886d6bec7b3e15dc604976ee956267e153b5d7afc4ed130e1df45de322c1e1ed8bade92cac2083e35e782c19a50a9b4a5e15a86e7c8e55e1416fb1fa9b287
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
# Capistrano::Gulp
|
2
|
+
|
3
|
+
This gem will let you run [Gulp](http://gulptjs.com/) tasks with Capistrano 3.x.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```bash
|
10
|
+
gem 'capistrano', '~> 3.0'
|
11
|
+
gem 'capistrano-gulp', github: 'BRITEWEB/capistrano-gulp'
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
|
16
|
+
```
|
17
|
+
$ bundle install
|
18
|
+
```
|
19
|
+
|
20
|
+
2. Add to `Capfile` or `config/deploy.rb`:
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
require 'capistrano/gulp'
|
24
|
+
```
|
25
|
+
|
26
|
+
## Usage
|
27
|
+
|
28
|
+
Set what Gulp tasks you want run in your `deploy.rb` file:
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
set :gulp_tasks, 'deploy:production'
|
32
|
+
```
|
33
|
+
|
34
|
+
If you don't set `:gulp_tasks`, Gulp will run without any task specified. (equivalent to just running `gulp` from the command line).
|
35
|
+
|
36
|
+
To run multiple tasks (can be string or array of strings):
|
37
|
+
|
38
|
+
```ruby
|
39
|
+
set :gulp_tasks, 'deploy:production cdn'
|
40
|
+
set :gulp_tasks, %w{deploy:production cdn}
|
41
|
+
```
|
42
|
+
|
43
|
+
The above would be equivalent of running the following from the command line:
|
44
|
+
|
45
|
+
```bash
|
46
|
+
gulp deploy:production cdn
|
47
|
+
```
|
48
|
+
|
49
|
+
Then add the task to your `deploy.rb`:
|
50
|
+
|
51
|
+
```ruby
|
52
|
+
before :updated, 'gulp'
|
53
|
+
```
|
54
|
+
|
55
|
+
## Configuration
|
56
|
+
|
57
|
+
To specify a `Gulpfile`, use the `:gulp_file` option:
|
58
|
+
|
59
|
+
```ruby
|
60
|
+
set :gulp_file, -> { release_path.join('config/Gulpfile.js') }
|
61
|
+
```
|
62
|
+
|
63
|
+
Configurable options:
|
64
|
+
|
65
|
+
```ruby
|
66
|
+
set :gulp_file, nil # default
|
67
|
+
set :gulp_tasks, nil # default
|
68
|
+
set :gulp_flags, '--no-color' # default
|
69
|
+
set :gulp_roles, :all # default
|
70
|
+
set :gulp_target_path, -> { release_path.join('subdir') } # default not set
|
71
|
+
```
|
72
|
+
|
73
|
+
## Contributing
|
74
|
+
|
75
|
+
1. Fork it
|
76
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
77
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
78
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
79
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'capistrano-gulp'
|
7
|
+
spec.version = '0.0.1'
|
8
|
+
spec.authors = ['Alessandro Biavati']
|
9
|
+
spec.email = ['abiavati@gmail.com']
|
10
|
+
spec.description = %q{Gulp support for Capistrano 3.x}
|
11
|
+
spec.summary = %q{This gem will let you run Gulp tasks with Capistrano 3.x.}
|
12
|
+
spec.homepage = 'https://github.com/BRITEWEB/capistrano-gulp'
|
13
|
+
spec.license = 'MIT'
|
14
|
+
|
15
|
+
spec.files = `git ls-files`.split($/)
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
+
spec.require_paths = ['lib']
|
19
|
+
|
20
|
+
spec.add_dependency 'capistrano', '~> 3.0'
|
21
|
+
|
22
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
23
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
24
|
+
end
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
load File.expand_path('../tasks/gulp.rake', __FILE__)
|
@@ -0,0 +1,40 @@
|
|
1
|
+
desc <<-DESC
|
2
|
+
Run Gulp tasks. By default, it runs with no task specified, which \
|
3
|
+
means the default Gulp task will be run. The install command is \
|
4
|
+
executed with the --no-color flag.
|
5
|
+
|
6
|
+
You can override any of these defaults by setting the variables shown below.
|
7
|
+
|
8
|
+
set :gulp_file, nil
|
9
|
+
set :gulp_tasks, nil
|
10
|
+
set :gulp_flags, '--no-color'
|
11
|
+
set :gulp_target_path, nil
|
12
|
+
set :gulp_roles, :all
|
13
|
+
DESC
|
14
|
+
task :gulp do
|
15
|
+
on roles fetch(:gulp_roles) do
|
16
|
+
within fetch(:gulp_target_path, release_path) do
|
17
|
+
options = [
|
18
|
+
fetch(:gulp_flags)
|
19
|
+
]
|
20
|
+
|
21
|
+
options << "--gulpfile #{fetch(:gulp_file)}" if fetch(:gulp_file)
|
22
|
+
options << fetch(:gulp_tasks) if fetch(:gulp_tasks)
|
23
|
+
|
24
|
+
execute :gulp, options
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
namespace :gulp do
|
30
|
+
task default: :gulp
|
31
|
+
end
|
32
|
+
|
33
|
+
namespace :load do
|
34
|
+
task :defaults do
|
35
|
+
set :gulp_file, nil
|
36
|
+
set :gulp_tasks, nil
|
37
|
+
set :gulp_flags, '--no-color'
|
38
|
+
set :gulp_roles, :all
|
39
|
+
end
|
40
|
+
end
|
metadata
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: capistrano-gulp
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Alessandro Biavati
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-03-02 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: capistrano
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.3'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
description: Gulp support for Capistrano 3.x
|
56
|
+
email:
|
57
|
+
- abiavati@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- Gemfile
|
64
|
+
- README.md
|
65
|
+
- Rakefile
|
66
|
+
- capistrano-gulp.gemspec
|
67
|
+
- lib/capistrano-gulp.rb
|
68
|
+
- lib/capistrano/gulp.rb
|
69
|
+
- lib/capistrano/tasks/gulp.rake
|
70
|
+
homepage: https://github.com/BRITEWEB/capistrano-gulp
|
71
|
+
licenses:
|
72
|
+
- MIT
|
73
|
+
metadata: {}
|
74
|
+
post_install_message:
|
75
|
+
rdoc_options: []
|
76
|
+
require_paths:
|
77
|
+
- lib
|
78
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - ">="
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
requirements: []
|
89
|
+
rubyforge_project:
|
90
|
+
rubygems_version: 2.2.2
|
91
|
+
signing_key:
|
92
|
+
specification_version: 4
|
93
|
+
summary: This gem will let you run Gulp tasks with Capistrano 3.x.
|
94
|
+
test_files: []
|