webpack_rails 1.2.2 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/webpack_rails/package.json +1 -1
- data/lib/webpack_rails/task.rb +0 -22
- data/lib/webpack_rails/webpack-task-dev-server.js +0 -1
- metadata +20 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ce87fd8b09d37538e4476a527a1668908bf78bc
|
4
|
+
data.tar.gz: 0901773166b7a9074df2a3638493e1233996403b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 862fced2cb06eced667b52d2fe15b9ab7a05c1a2dac951cbc6f786fa0dee6842eb6440271a8af0f83182a28f954555aecfeb84d609516b3b3d5ba557b430f920
|
7
|
+
data.tar.gz: 511e95365db6794ea8be3674f8f846fc6727b82cc686abe397f49f6ef0775daa88f269d702f5616b0f3739c397f8a12c448688269941c436b77adf7425a1b451
|
data/lib/webpack_rails/task.rb
CHANGED
@@ -9,8 +9,6 @@ module WebpackRails
|
|
9
9
|
def initialize(node_task_error)
|
10
10
|
super(node_task_error.to_s)
|
11
11
|
|
12
|
-
# TODO: expose @js_error from NodeTask::Error
|
13
|
-
js_error = node_task_error.instance_variable_get(:@js_error)
|
14
12
|
set_backtrace(js_error[:stack].split('\n')) if js_error
|
15
13
|
end
|
16
14
|
end
|
@@ -63,26 +61,6 @@ module WebpackRails
|
|
63
61
|
return_value
|
64
62
|
end
|
65
63
|
|
66
|
-
# TODO: move to NodeTask
|
67
|
-
def alive?
|
68
|
-
current_pid = nil
|
69
|
-
alive = false
|
70
|
-
if @controller
|
71
|
-
begin
|
72
|
-
current_pid = @controller.pid
|
73
|
-
rescue Errno::ENOENT
|
74
|
-
end
|
75
|
-
end
|
76
|
-
if current_pid
|
77
|
-
begin
|
78
|
-
Process.getpgid(current_pid)
|
79
|
-
alive = true
|
80
|
-
rescue Errno::ESRCH
|
81
|
-
end
|
82
|
-
end
|
83
|
-
alive
|
84
|
-
end
|
85
|
-
|
86
64
|
def build_once(webpack_task_config)
|
87
65
|
WebpackRails::Task.with_app_node_path do
|
88
66
|
webpack_cmd_script = `#{WebpackRails::Task.node_command} -e "process.stdout.write(require.resolve('webpack/bin/webpack.js'))"`
|
@@ -90,7 +90,6 @@ function makeDevServerConfig(opts) {
|
|
90
90
|
new webpack.optimize.OccurenceOrderPlugin(),
|
91
91
|
// https://webpack.github.io/docs/webpack-dev-server.html#hot-module-replacement
|
92
92
|
new webpack.HotModuleReplacementPlugin(),
|
93
|
-
new webpack.NoErrorsPlugin(),
|
94
93
|
new ErrorMessagePlugin(),
|
95
94
|
]),
|
96
95
|
});
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webpack_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Friend
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: node_task
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.2
|
19
|
+
version: 0.3.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.2
|
26
|
+
version: 0.3.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: tilt
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.1'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sprockets
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
description: Much longer explanation of the webpack_rails!
|
42
56
|
email: james@jsdf.co
|
43
57
|
executables: []
|