capistrano-nodejs 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/Gemfile +4 -0
- data/README.md +39 -0
- data/Rakefile +1 -0
- data/capistrano-nodejs.gemspec +24 -0
- data/lib/capistrano/nodejs.rb +3 -0
- data/lib/capistrano/nodejs/version.rb +5 -0
- data/lib/capistrano/tasks/nodejs.rake +45 -0
- metadata +107 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6eb644fcdaec53e8e3ebce48475fc4f243ea2020
|
4
|
+
data.tar.gz: 6b69bbdd47a95feda1a81b8b0f9ec7e51a50e484
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ddfed5e6276d1f59413ffed67d4e13e7d547a89f1cb11fdcb133253b773b59f0cb2b9c7b37b1449a560da2a2bfb5fe5a4050f0546c0654fdcd548e54b839c084
|
7
|
+
data.tar.gz: d401ebb8b19ce9e52ef8c301902ddecd776aa0ee9d5a4b7b12971cfcf489418579b885cf31210ec2ad716eaac87a7aad1c56e889b7290e22ee3ce9350d5c632d
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# Capistrano::NodeJS
|
2
|
+
|
3
|
+
Capistrano plugin to install NPM and Bower dependencies and run Grunt tasks for deployment.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'Capistrano-NodeJS'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install Capistrano-NodeJS
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
# Capfile
|
25
|
+
require 'capistrano/nodejs'
|
26
|
+
```
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
# config/deploy.rb
|
30
|
+
set :linked_dirs, %w{node_module app/bower_components}
|
31
|
+
after "deploy:updated", "nodejs:build"
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
1. Fork it ( https://github.com/[my-github-username]/Capistrano-NodeJS/fork )
|
36
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
37
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
38
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
39
|
+
5. Create a 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
|
+
require 'capistrano/nodejs/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "capistrano-nodejs"
|
8
|
+
spec.version = Capistrano::NodeJS::VERSION
|
9
|
+
spec.authors = ["Ranndom"]
|
10
|
+
spec.email = ["ranndom@rnndm.xyz"]
|
11
|
+
|
12
|
+
spec.summary = %q{NodeJS/Grunt/Bower integration for Capistrano}
|
13
|
+
spec.description = %q{NodeJS/Grunt/Bower integration for Capistrano}
|
14
|
+
spec.homepage = "https://rnndm.xyz/capistrano/nodejs"
|
15
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
16
|
+
spec.bindir = "exe"
|
17
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_development_dependency "bundler", "~> 1.9"
|
21
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
22
|
+
spec.add_dependency "capistrano", "~> 3.1"
|
23
|
+
spec.add_dependency "sshkit", "~> 1.3"
|
24
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
namespace :config do
|
2
|
+
task :set_paths do
|
3
|
+
SSHKit.config.command_map[:bower] = File.join(release_path, 'node_modules', 'bower', 'bin', 'bower')
|
4
|
+
SSHKit.config.command_map[:grunt] = File.join(release_path, 'node_modules', 'grunt-cli', 'bin', 'grunt')
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
namespace :nodejs do
|
9
|
+
task :build do
|
10
|
+
invoke 'config:set_paths'
|
11
|
+
invoke 'npm:install'
|
12
|
+
invoke 'bower:install'
|
13
|
+
invoke 'grunt:build'
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
namespace :npm do
|
18
|
+
task :install do
|
19
|
+
on roles(:app) do
|
20
|
+
within release_path do
|
21
|
+
execute :npm, "install"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
namespace :bower do
|
28
|
+
task :install do
|
29
|
+
on roles(:app) do
|
30
|
+
within release_path do
|
31
|
+
execute :bower, "install"
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
namespace :grunt do
|
38
|
+
task :build do
|
39
|
+
on roles(:app) do
|
40
|
+
within release_path do
|
41
|
+
execute :grunt, "build"
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
metadata
ADDED
@@ -0,0 +1,107 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: capistrano-nodejs
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ranndom
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-08-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.9'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.9'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: capistrano
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.1'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.1'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: sshkit
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.3'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.3'
|
69
|
+
description: NodeJS/Grunt/Bower integration for Capistrano
|
70
|
+
email:
|
71
|
+
- ranndom@rnndm.xyz
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- Gemfile
|
78
|
+
- README.md
|
79
|
+
- Rakefile
|
80
|
+
- capistrano-nodejs.gemspec
|
81
|
+
- lib/capistrano/nodejs.rb
|
82
|
+
- lib/capistrano/nodejs/version.rb
|
83
|
+
- lib/capistrano/tasks/nodejs.rake
|
84
|
+
homepage: https://rnndm.xyz/capistrano/nodejs
|
85
|
+
licenses: []
|
86
|
+
metadata: {}
|
87
|
+
post_install_message:
|
88
|
+
rdoc_options: []
|
89
|
+
require_paths:
|
90
|
+
- lib
|
91
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '0'
|
101
|
+
requirements: []
|
102
|
+
rubyforge_project:
|
103
|
+
rubygems_version: 2.4.6
|
104
|
+
signing_key:
|
105
|
+
specification_version: 4
|
106
|
+
summary: NodeJS/Grunt/Bower integration for Capistrano
|
107
|
+
test_files: []
|