webpack_driver 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 +10 -0
- data/.rubocop.yml +15 -0
- data/.travis.yml +16 -0
- data/Gemfile +6 -0
- data/Guardfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +71 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/config.rb +14 -0
- data/lib/webpack_driver.rb +21 -0
- data/lib/webpack_driver/asset.rb +13 -0
- data/lib/webpack_driver/compile.rb +15 -0
- data/lib/webpack_driver/config_options.rb +23 -0
- data/lib/webpack_driver/configuration.rb +17 -0
- data/lib/webpack_driver/configuration/base.rb +40 -0
- data/lib/webpack_driver/dev_server.rb +45 -0
- data/lib/webpack_driver/errors.rb +2 -0
- data/lib/webpack_driver/process.rb +77 -0
- data/lib/webpack_driver/version.rb +3 -0
- data/templates/index.js.tt +1 -0
- data/templates/status-plugin.js.tt +68 -0
- data/templates/webpack.config.js.tt +25 -0
- data/webpack_driver.gemspec +42 -0
- metadata +183 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6d7a3afee77099a6ef19d926eaadc31999071f6e
|
4
|
+
data.tar.gz: 14c9d043282e752f1bb0fb517df7bb6e4c4b9448
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a579d61d73775944319200da678cbdd9a0bd0ff668c9c736f3a8e8f4b38a0aa20f8e54b729b8f27eab21ab1cef7f14f932d224286d49e4a8d287786398f0ac83
|
7
|
+
data.tar.gz: df3cc01ef4950b7d48e27edd87df7471e386a84f98b60e3b7d42184bef3699ebcf7f4f874c6613fb2d9238693e1ce1f3a4ffae77120ecbe39128fd1e0f04bbdf
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
StringLiterals:
|
2
|
+
Enabled: false
|
3
|
+
|
4
|
+
Style/IndentationWidth:
|
5
|
+
# Number of spaces for each indentation level.
|
6
|
+
Width: 4
|
7
|
+
|
8
|
+
Style/EmptyLinesAroundClassBody:
|
9
|
+
Enabled: false
|
10
|
+
|
11
|
+
Style/EmptyLinesAroundModuleBody:
|
12
|
+
Enabled: false
|
13
|
+
|
14
|
+
Style/ClassAndModuleChildren:
|
15
|
+
Enabled: false
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Guardfile
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
guard :minitest, autorun: true, bundler: true, test_folders: ['test'] do
|
2
|
+
watch(%r{^test/test_(.*)\.rb$})
|
3
|
+
watch(%r{^lib/(.*/)?([^/]+)\.rb$}) { |m| "test/test_#{m[2]}.rb" }
|
4
|
+
watch(%r{^test/test_helper\.rb$}) { 'test' }
|
5
|
+
# watch('templates/status-plugin.js.tt') { 'test/test_status_plugin.rb' }
|
6
|
+
end
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Nathan Stitt
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all 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,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
# WebpackDriver
|
2
|
+
|
3
|
+
[](https://travis-ci.org/nathanstitt/webpack_driver)
|
4
|
+
|
5
|
+
Control webpack from Ruby
|
6
|
+
|
7
|
+
WebpackDriver controls execution of both webpack and webpack-dev-server to serve assets in developer mode and to compile assets for production.
|
8
|
+
|
9
|
+
It runs the dev server in the background using the `childprocess` gem and monitors it's output to detect the current status.
|
10
|
+
|
11
|
+
## Installation
|
12
|
+
|
13
|
+
Add this line to your application's Gemfile:
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
gem 'ruby_pack'
|
17
|
+
```
|
18
|
+
|
19
|
+
And then execute:
|
20
|
+
|
21
|
+
$ bundle
|
22
|
+
|
23
|
+
Or install it yourself as:
|
24
|
+
|
25
|
+
$ gem install ruby_pack
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
Initialization, will create a `package.json`, `yarn.lock`, a bare-bones `webpack.config.js` and then run yarn install (via the [Knitter](https://github.com/nathanstitt/knitter) gem).
|
30
|
+
|
31
|
+
```ruby
|
32
|
+
WebpackDriver.config do | config |
|
33
|
+
config.directory = '/tmp/test'
|
34
|
+
end
|
35
|
+
WebpackDriver::Configuration.generate
|
36
|
+
```
|
37
|
+
|
38
|
+
Production compilation (TODO):
|
39
|
+
```ruby
|
40
|
+
compiler = WebpackDriver::Compiler.new
|
41
|
+
compiler.generate
|
42
|
+
p compiler.files
|
43
|
+
```
|
44
|
+
|
45
|
+
Dev server:
|
46
|
+
|
47
|
+
```ruby
|
48
|
+
process = WebpackDriver::DevServer.new
|
49
|
+
process.start
|
50
|
+
fail("failed to start webpack #{process.output}") unless process.alive?
|
51
|
+
puts "Webpack dev server running on port #{process.detected_port} url=#{process.detected_url}"
|
52
|
+
p process.assets.map{|asset| asset.file }
|
53
|
+
sleep 30
|
54
|
+
process.stop
|
55
|
+
```
|
56
|
+
|
57
|
+
|
58
|
+
## Development
|
59
|
+
|
60
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
61
|
+
|
62
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
63
|
+
|
64
|
+
## Contributing
|
65
|
+
|
66
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rb_webpack.
|
67
|
+
|
68
|
+
|
69
|
+
## License
|
70
|
+
|
71
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "rb_webpack"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/lib/config.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
require_relative "webpack_driver/version"
|
2
|
+
require_relative "webpack_driver/config_options"
|
3
|
+
require_relative "webpack_driver/configuration"
|
4
|
+
require_relative "webpack_driver/asset"
|
5
|
+
require_relative 'webpack_driver/process'
|
6
|
+
require_relative "webpack_driver/dev_server"
|
7
|
+
require_relative "webpack_driver/compile"
|
8
|
+
require_relative "webpack_driver/errors"
|
9
|
+
|
10
|
+
module WebpackDriver
|
11
|
+
|
12
|
+
def self.config
|
13
|
+
@config ||= WebpackDriver::ConfigOptions.new
|
14
|
+
if block_given?
|
15
|
+
yield @config
|
16
|
+
@config.after_configuration
|
17
|
+
end
|
18
|
+
@config
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module WebpackDriver
|
2
|
+
|
3
|
+
class ConfigOptions
|
4
|
+
|
5
|
+
attr_accessor :port
|
6
|
+
attr_accessor :directory
|
7
|
+
attr_accessor :environment
|
8
|
+
attr_accessor :compile_script
|
9
|
+
attr_accessor :dev_server_script
|
10
|
+
|
11
|
+
def initialize
|
12
|
+
@directory = Pathname.new(Dir.pwd)
|
13
|
+
@environment = 'development'
|
14
|
+
@compile_script = 'node_modules/webpack/bin/webpack.js'
|
15
|
+
@dev_server_script = 'node_modules/webpack-dev-server/bin/webpack-dev-server.js' end
|
16
|
+
|
17
|
+
def after_configuration
|
18
|
+
@directory = Pathname.new(@directory)
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require "thor"
|
2
|
+
require 'knitter'
|
3
|
+
|
4
|
+
module WebpackDriver
|
5
|
+
|
6
|
+
module Configuration
|
7
|
+
|
8
|
+
class Base < Thor::Group
|
9
|
+
include Thor::Actions
|
10
|
+
|
11
|
+
def self.source_root
|
12
|
+
Pathname.new(__FILE__).dirname.join("..","..","..","templates")
|
13
|
+
end
|
14
|
+
|
15
|
+
def set_destination_root
|
16
|
+
self.destination_root = WebpackDriver.config.directory
|
17
|
+
end
|
18
|
+
|
19
|
+
def install_using_yarn
|
20
|
+
yarn = Knitter::Yarn.new(WebpackDriver.config.directory)
|
21
|
+
yarn.init unless yarn.valid?
|
22
|
+
%w{webpack webpack-dev-server}.each do | package |
|
23
|
+
package = Knitter::Package.new(package, yarn: yarn)
|
24
|
+
unless package.installed?
|
25
|
+
package.dependency_type = :development
|
26
|
+
package.add
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def generate
|
32
|
+
template("webpack.config.js", verbose: false)
|
33
|
+
template("status-plugin.js", verbose: false, force: true)
|
34
|
+
template("index.js", verbose: false, force: true)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
module WebpackDriver
|
2
|
+
|
3
|
+
|
4
|
+
class DevServer < Process
|
5
|
+
|
6
|
+
attr_reader :port, :host, :path
|
7
|
+
|
8
|
+
# URL = /(https?:\/\/)([\da-z\.-]+)\:(\d+)\/([\da-z\.-]+\/)?/
|
9
|
+
|
10
|
+
def initialize(*flags)
|
11
|
+
|
12
|
+
config = WebpackDriver.config
|
13
|
+
flags = ['--port', config.port] if config.port
|
14
|
+
super(config.dev_server_script, *flags)
|
15
|
+
end
|
16
|
+
|
17
|
+
|
18
|
+
def valid?
|
19
|
+
alive? && super
|
20
|
+
end
|
21
|
+
|
22
|
+
# def detected_url
|
23
|
+
# match = URL.match(output)
|
24
|
+
# match ? match[0] : nil
|
25
|
+
# end
|
26
|
+
|
27
|
+
# def detected_port
|
28
|
+
|
29
|
+
# match = URL.match(output)
|
30
|
+
# match ? match[3].to_i : nil
|
31
|
+
# end
|
32
|
+
|
33
|
+
private
|
34
|
+
|
35
|
+
def record_message(msg)
|
36
|
+
if msg['type'] == 'dev-server'
|
37
|
+
@port = msg['value']['port']
|
38
|
+
@host = msg['value']['host']
|
39
|
+
@path = msg['value']['outputPath']
|
40
|
+
end
|
41
|
+
super
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
require 'concurrent/array'
|
2
|
+
require 'concurrent/map'
|
3
|
+
require 'childprocess'
|
4
|
+
require 'json'
|
5
|
+
|
6
|
+
module WebpackDriver
|
7
|
+
|
8
|
+
class Process
|
9
|
+
READ_CHUNK_SIZE = 1024
|
10
|
+
|
11
|
+
extend Forwardable
|
12
|
+
|
13
|
+
attr_reader :assets, :buffer
|
14
|
+
|
15
|
+
def initialize(*flags)
|
16
|
+
self.reset!
|
17
|
+
args = ["node"] + flags
|
18
|
+
@proc = ::ChildProcess.build(*args)
|
19
|
+
@proc.environment['NODE_ENV'] = WebpackDriver.config.environment
|
20
|
+
@proc.cwd = WebpackDriver.config.directory
|
21
|
+
end
|
22
|
+
|
23
|
+
def alive?
|
24
|
+
@proc.alive?
|
25
|
+
end
|
26
|
+
|
27
|
+
def start
|
28
|
+
self.reset!
|
29
|
+
@output, w = IO.pipe
|
30
|
+
@proc.io.stdout = @proc.io.stderr = w
|
31
|
+
@proc.start
|
32
|
+
w.close
|
33
|
+
@listener = listen_for_status_updates
|
34
|
+
end
|
35
|
+
|
36
|
+
def stop
|
37
|
+
@output.close unless @output.closed?
|
38
|
+
@proc.stop
|
39
|
+
@listener.join
|
40
|
+
end
|
41
|
+
|
42
|
+
def valid?
|
43
|
+
last_compilation_message['operation'] == 'emit'
|
44
|
+
end
|
45
|
+
|
46
|
+
protected
|
47
|
+
|
48
|
+
def reset!
|
49
|
+
@assets = Concurrent::Map.new
|
50
|
+
@buffer = Concurrent::Array.new
|
51
|
+
end
|
52
|
+
|
53
|
+
def last_compilation_message
|
54
|
+
msg = @buffer.reverse_each.detect{ |l| l['type'] == 'compile' }
|
55
|
+
msg ? msg['value'] : {}
|
56
|
+
end
|
57
|
+
|
58
|
+
def record_message(msg)
|
59
|
+
if msg['type'] == 'asset'
|
60
|
+
name = msg['value']['name']
|
61
|
+
@assets[name] = Asset.new(name, msg['value']['size'])
|
62
|
+
end
|
63
|
+
@buffer << msg
|
64
|
+
end
|
65
|
+
|
66
|
+
|
67
|
+
def listen_for_status_updates
|
68
|
+
Thread.new do
|
69
|
+
@output.each_line do | l |
|
70
|
+
match = l.match(/STATUS: (.*)/)
|
71
|
+
record_message(JSON.parse(match[1])) if match
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
console.log("Built using RubyPack");
|
@@ -0,0 +1,68 @@
|
|
1
|
+
/* eslint-disable */
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
var webpack = require("webpack");
|
5
|
+
// var net = require("net");
|
6
|
+
// var SocketIOClient = require("socket.io-client");
|
7
|
+
|
8
|
+
function noop() {}
|
9
|
+
|
10
|
+
function DashboardPlugin(options) {
|
11
|
+
this.options = options;
|
12
|
+
}
|
13
|
+
|
14
|
+
function log(type, value) {
|
15
|
+
console.log('STATUS:', JSON.stringify({type, value}));
|
16
|
+
}
|
17
|
+
|
18
|
+
|
19
|
+
DashboardPlugin.prototype.apply = function(compiler) {
|
20
|
+
var timer;
|
21
|
+
|
22
|
+
// console.log(compiler.options);
|
23
|
+
|
24
|
+
if ( compiler.options.devServer ) {
|
25
|
+
let {port, host, outputPath} = compiler.options.devServer;
|
26
|
+
log("dev-server", { port, host, outputPath });
|
27
|
+
}
|
28
|
+
|
29
|
+
compiler.apply(new webpack.ProgressPlugin(function (percent, msg) {
|
30
|
+
log("compile", {
|
31
|
+
"progress": percent,
|
32
|
+
"operation": msg,
|
33
|
+
"ms": Date.now() - timer
|
34
|
+
});
|
35
|
+
}));
|
36
|
+
|
37
|
+
compiler.plugin("compile", function() {
|
38
|
+
timer = Date.now();
|
39
|
+
log("compile", {
|
40
|
+
"progress": 0,
|
41
|
+
"operation": "idle"
|
42
|
+
})
|
43
|
+
});
|
44
|
+
|
45
|
+
compiler.plugin("invalid", function() {
|
46
|
+
log("status", "Invalidated");
|
47
|
+
});
|
48
|
+
|
49
|
+
compiler.plugin("after-emit", function(c) {
|
50
|
+
for (var k in c.assets){
|
51
|
+
log("asset", {name: k, size: c.assets[k].size()});
|
52
|
+
}
|
53
|
+
});
|
54
|
+
|
55
|
+
compiler.plugin("done", function(stats) {
|
56
|
+
log("status", "success");
|
57
|
+
});
|
58
|
+
|
59
|
+
compiler.plugin("failed", function() {
|
60
|
+
log("status", "failed");
|
61
|
+
});
|
62
|
+
compiler.plugin("valid", function() {
|
63
|
+
log("status", "valid");
|
64
|
+
});
|
65
|
+
|
66
|
+
}
|
67
|
+
|
68
|
+
module.exports = DashboardPlugin;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
// Responsible for reporting status back to webpack-driver
|
2
|
+
var WebpackDriverStatusPlugin = require('./status-plugin.js');
|
3
|
+
|
4
|
+
module.exports = {
|
5
|
+
entry: "./index.js",
|
6
|
+
debug: true,
|
7
|
+
plugins: [
|
8
|
+
new WebpackDriverStatusPlugin() // must not be removed
|
9
|
+
],
|
10
|
+
info: false,
|
11
|
+
output: {
|
12
|
+
path: __dirname,
|
13
|
+
filename: "bundle.js"
|
14
|
+
},
|
15
|
+
module: {
|
16
|
+
loaders: [
|
17
|
+
{ test: /\.css$/, loader: "style!css" }
|
18
|
+
]
|
19
|
+
},
|
20
|
+
devServer: {
|
21
|
+
stats: {
|
22
|
+
colors: false
|
23
|
+
}
|
24
|
+
}
|
25
|
+
};
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'webpack_driver/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "webpack_driver"
|
8
|
+
spec.version = WebpackDriver::VERSION
|
9
|
+
spec.authors = ["Nathan Stitt"]
|
10
|
+
spec.email = ["nathan@stitt.org"]
|
11
|
+
|
12
|
+
spec.summary = %q{Run webpack-dev-server in a sub process}
|
13
|
+
spec.description = %q{Run webpack and webpack-dev-server in a sub process. Autodetects the port, url and assets that are generated.}
|
14
|
+
spec.homepage = "https://github.com/nathanstitt/webpack_driver"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
21
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
23
|
+
"public gem pushes."
|
24
|
+
end
|
25
|
+
|
26
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
27
|
+
f.match(%r{^(test|spec|features)/})
|
28
|
+
end
|
29
|
+
spec.bindir = "exe"
|
30
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
31
|
+
spec.require_paths = ["lib"]
|
32
|
+
|
33
|
+
spec.add_dependency 'knitter', '~> 0.1.2'
|
34
|
+
spec.add_dependency 'thor', '~> 0.19'
|
35
|
+
spec.add_dependency 'concurrent-ruby', '~> 1.0.4'
|
36
|
+
spec.add_dependency 'childprocess', '~> 0.5'
|
37
|
+
|
38
|
+
spec.add_development_dependency 'bundler', '~> 1.13'
|
39
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
40
|
+
spec.add_development_dependency 'guard', '~> 2.13'
|
41
|
+
spec.add_development_dependency 'guard-minitest', '~> 2.3'
|
42
|
+
end
|
metadata
ADDED
@@ -0,0 +1,183 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: webpack_driver
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Nathan Stitt
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-01-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: knitter
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.1.2
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.1.2
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: thor
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.19'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.19'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: concurrent-ruby
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.0.4
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.0.4
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: childprocess
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.5'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.5'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bundler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.13'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.13'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '10.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '10.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: guard
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '2.13'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '2.13'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: guard-minitest
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '2.3'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '2.3'
|
125
|
+
description: Run webpack and webpack-dev-server in a sub process. Autodetects the
|
126
|
+
port, url and assets that are generated.
|
127
|
+
email:
|
128
|
+
- nathan@stitt.org
|
129
|
+
executables: []
|
130
|
+
extensions: []
|
131
|
+
extra_rdoc_files: []
|
132
|
+
files:
|
133
|
+
- ".gitignore"
|
134
|
+
- ".rubocop.yml"
|
135
|
+
- ".travis.yml"
|
136
|
+
- Gemfile
|
137
|
+
- Guardfile
|
138
|
+
- LICENSE.txt
|
139
|
+
- README.md
|
140
|
+
- Rakefile
|
141
|
+
- bin/console
|
142
|
+
- bin/setup
|
143
|
+
- lib/config.rb
|
144
|
+
- lib/webpack_driver.rb
|
145
|
+
- lib/webpack_driver/asset.rb
|
146
|
+
- lib/webpack_driver/compile.rb
|
147
|
+
- lib/webpack_driver/config_options.rb
|
148
|
+
- lib/webpack_driver/configuration.rb
|
149
|
+
- lib/webpack_driver/configuration/base.rb
|
150
|
+
- lib/webpack_driver/dev_server.rb
|
151
|
+
- lib/webpack_driver/errors.rb
|
152
|
+
- lib/webpack_driver/process.rb
|
153
|
+
- lib/webpack_driver/version.rb
|
154
|
+
- templates/index.js.tt
|
155
|
+
- templates/status-plugin.js.tt
|
156
|
+
- templates/webpack.config.js.tt
|
157
|
+
- webpack_driver.gemspec
|
158
|
+
homepage: https://github.com/nathanstitt/webpack_driver
|
159
|
+
licenses:
|
160
|
+
- MIT
|
161
|
+
metadata:
|
162
|
+
allowed_push_host: https://rubygems.org
|
163
|
+
post_install_message:
|
164
|
+
rdoc_options: []
|
165
|
+
require_paths:
|
166
|
+
- lib
|
167
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
168
|
+
requirements:
|
169
|
+
- - ">="
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
version: '0'
|
172
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
173
|
+
requirements:
|
174
|
+
- - ">="
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: '0'
|
177
|
+
requirements: []
|
178
|
+
rubyforge_project:
|
179
|
+
rubygems_version: 2.6.8
|
180
|
+
signing_key:
|
181
|
+
specification_version: 4
|
182
|
+
summary: Run webpack-dev-server in a sub process
|
183
|
+
test_files: []
|