capistrano-webpack-encore 0.1.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 +7 -0
- data/.gitignore +2 -0
- data/Gemfile +3 -0
- data/LICENSE +20 -0
- data/README.md +42 -0
- data/Rakefile +0 -0
- data/capistrano-webpack-encore.gemspec +24 -0
- data/lib/capistrano-webpack-encore.rb +1 -0
- data/lib/capistrano/tasks/webpack_encore.rake +18 -0
- data/lib/capistrano/webpack_encore.rb +1 -0
- metadata +101 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c41da0d07e04774ee3671930d8f2a32511c94e8b
|
4
|
+
data.tar.gz: 50bb90d0cdbcfe6b99c736c58affebb47afbbdbe
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5c6ff112e33f1aa91e3fe8b624067915fe0862d769f4adc03a35c9ab194446ea6ae5d42b87b04c86439b54db79786256d576a930d8011b6127b0303f1b56d07b
|
7
|
+
data.tar.gz: 842bd1325e9a57240facdd9453f6a26ced40e2ec683448ea49205ced7bf97b97920d0018236c3c99c07886527db469776c5fd30b0c37dcd1148dc2572f679e1b
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Andy Palmer
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
7
|
+
the Software without restriction, including without limitation the rights to
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
10
|
+
subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
capistrano-webpack-encore
|
2
|
+
=====================
|
3
|
+
|
4
|
+
Capistrano v3.* extension to run [Webpack Encore](https://github.com/symfony/webpack-encore) during deployment.
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'capistrano', '~> 3.3.0'
|
12
|
+
gem 'capistrano-webpack-encore'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install capistrano-webpack-encore
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
Require in `Capfile` to use the default task:
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
require 'capistrano/webpack_encore'
|
29
|
+
```
|
30
|
+
|
31
|
+
The build command is executed during `deploy:updated`
|
32
|
+
|
33
|
+
Configurable options:
|
34
|
+
|
35
|
+
```ruby
|
36
|
+
set :webpack_encore_env, "production" # default
|
37
|
+
set :webpack_encore_flags, "" # default
|
38
|
+
```
|
39
|
+
|
40
|
+
## License
|
41
|
+
|
42
|
+
Released under the [MIT license](LICENSE)
|
data/Rakefile
ADDED
File without changes
|
@@ -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-webpack-encore'
|
7
|
+
spec.version = '0.1.1'
|
8
|
+
spec.authors = ['Andy Palmer']
|
9
|
+
spec.email = ['andy@andypalmer.me']
|
10
|
+
spec.description = %q{Run webpack encore during deployment}
|
11
|
+
spec.summary = %q{Run Symfony's webpack encore tool during deployment}
|
12
|
+
spec.homepage = 'https://github.com/andyexeter/capistrano-webpack-encore'
|
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_runtime_dependency 'capistrano', '~> 3.0', '>= 3.0.0'
|
21
|
+
|
22
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
23
|
+
spec.add_development_dependency 'rake', '~> 0'
|
24
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
load File.expand_path('../tasks/webpack_encore.rake', __FILE__)
|
@@ -0,0 +1,18 @@
|
|
1
|
+
namespace :deploy do
|
2
|
+
task :webpack_encore do
|
3
|
+
on roles :app do
|
4
|
+
execute "pushd #{release_path.to_s} && ./node_modules/.bin/encore #{fetch(:webpack_encore_env)} #{fetch(:webpack_encore_flags)} && popd"
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
task :updated do
|
9
|
+
invoke "deploy:webpack_encore"
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
namespace :load do
|
14
|
+
task :defaults do
|
15
|
+
set :webpack_encore_env, "production"
|
16
|
+
set :webpack_encore_flags, ""
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
load File.expand_path('../tasks/webpack_encore.rake', __FILE__)
|
metadata
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: capistrano-webpack-encore
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Andy Palmer
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-09-14 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
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 3.0.0
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.0'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 3.0.0
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: bundler
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '1.3'
|
40
|
+
type: :development
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '1.3'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rake
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
description: Run webpack encore during deployment
|
62
|
+
email:
|
63
|
+
- andy@andypalmer.me
|
64
|
+
executables: []
|
65
|
+
extensions: []
|
66
|
+
extra_rdoc_files: []
|
67
|
+
files:
|
68
|
+
- ".gitignore"
|
69
|
+
- Gemfile
|
70
|
+
- LICENSE
|
71
|
+
- README.md
|
72
|
+
- Rakefile
|
73
|
+
- capistrano-webpack-encore.gemspec
|
74
|
+
- lib/capistrano-webpack-encore.rb
|
75
|
+
- lib/capistrano/tasks/webpack_encore.rake
|
76
|
+
- lib/capistrano/webpack_encore.rb
|
77
|
+
homepage: https://github.com/andyexeter/capistrano-webpack-encore
|
78
|
+
licenses:
|
79
|
+
- MIT
|
80
|
+
metadata: {}
|
81
|
+
post_install_message:
|
82
|
+
rdoc_options: []
|
83
|
+
require_paths:
|
84
|
+
- lib
|
85
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
95
|
+
requirements: []
|
96
|
+
rubyforge_project:
|
97
|
+
rubygems_version: 2.5.1
|
98
|
+
signing_key:
|
99
|
+
specification_version: 4
|
100
|
+
summary: Run Symfony's webpack encore tool during deployment
|
101
|
+
test_files: []
|