webpacker 4.0.3 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.node-version +1 -1
- data/.rubocop.yml +2 -1
- data/.travis.yml +7 -4
- data/CHANGELOG.md +244 -129
- data/Gemfile.lock +79 -60
- data/README.md +110 -3
- data/docs/css.md +12 -0
- data/docs/deployment.md +38 -9
- data/docs/docker.md +25 -6
- data/docs/engines.md +40 -3
- data/docs/es6.md +19 -1
- data/docs/troubleshooting.md +37 -9
- data/docs/typescript.md +8 -5
- data/docs/webpack-dev-server.md +1 -1
- data/docs/webpack.md +18 -3
- data/gemfiles/Gemfile-rails.6.0.x +9 -0
- data/lib/install/bin/webpack +0 -1
- data/lib/install/bin/webpack-dev-server +0 -1
- data/lib/install/coffee.rb +1 -1
- data/lib/install/config/babel.config.js +11 -11
- data/lib/install/config/webpacker.yml +2 -1
- data/lib/install/elm.rb +1 -1
- data/lib/install/erb.rb +2 -2
- data/lib/install/examples/angular/hello_angular/polyfills.ts +2 -2
- data/lib/install/examples/react/babel.config.js +18 -15
- data/lib/install/examples/svelte/app.svelte +11 -0
- data/lib/install/examples/svelte/hello_svelte.js +20 -0
- data/lib/install/loaders/elm.js +9 -6
- data/lib/install/loaders/svelte.js +9 -0
- data/lib/install/loaders/typescript.js +1 -1
- data/lib/install/svelte.rb +29 -0
- data/lib/install/typescript.rb +1 -1
- data/lib/install/vue.rb +1 -1
- data/lib/tasks/installers.rake +1 -0
- data/lib/tasks/webpacker.rake +2 -0
- data/lib/tasks/webpacker/clean.rake +15 -0
- data/lib/tasks/webpacker/compile.rake +1 -1
- data/lib/tasks/webpacker/yarn_install.rake +15 -0
- data/lib/webpacker.rb +1 -1
- data/lib/webpacker/commands.rb +26 -0
- data/lib/webpacker/compiler.rb +15 -8
- data/lib/webpacker/configuration.rb +9 -1
- data/lib/webpacker/dev_server.rb +1 -1
- data/lib/webpacker/dev_server_proxy.rb +2 -8
- data/lib/webpacker/helper.rb +39 -13
- data/lib/webpacker/railtie.rb +4 -0
- data/lib/webpacker/version.rb +1 -1
- data/package.json +36 -37
- data/package/__tests__/config.js +0 -23
- data/package/config.js +2 -10
- data/package/config_types/config_list.js +3 -3
- data/package/config_types/config_object.js +1 -1
- data/package/environments/base.js +2 -2
- data/package/environments/development.js +1 -1
- data/package/environments/production.js +12 -0
- data/package/rules/babel.js +1 -1
- data/package/rules/node_modules.js +2 -1
- data/package/rules/sass.js +1 -1
- data/package/utils/__tests__/get_style_rule.js +9 -0
- data/package/utils/deep_merge.js +5 -5
- data/package/utils/get_style_rule.js +7 -12
- data/package/utils/helpers.js +9 -9
- data/test/command_test.rb +6 -0
- data/test/compiler_test.rb +5 -6
- data/test/configuration_test.rb +36 -27
- data/test/dev_server_test.rb +22 -0
- data/test/helper_test.rb +34 -0
- data/test/rake_tasks_test.rb +6 -0
- data/test/test_app/bin/webpack +0 -1
- data/test/test_app/bin/webpack-dev-server +0 -1
- data/test/test_app/config/webpacker.yml +1 -0
- data/test/test_app/public/packs/manifest.json +3 -0
- data/webpacker.gemspec +2 -1
- data/yarn.lock +1934 -1642
- metadata +24 -10
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webpacker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-11-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -60,9 +60,6 @@ dependencies:
|
|
60
60
|
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: 1.3.0
|
63
|
-
- - "<"
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
version: '2.0'
|
66
63
|
type: :development
|
67
64
|
prerelease: false
|
68
65
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -70,9 +67,6 @@ dependencies:
|
|
70
67
|
- - ">="
|
71
68
|
- !ruby/object:Gem::Version
|
72
69
|
version: 1.3.0
|
73
|
-
- - "<"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '2.0'
|
76
70
|
- !ruby/object:Gem::Dependency
|
77
71
|
name: rubocop
|
78
72
|
requirement: !ruby/object:Gem::Requirement
|
@@ -87,6 +81,20 @@ dependencies:
|
|
87
81
|
- - "<"
|
88
82
|
- !ruby/object:Gem::Version
|
89
83
|
version: '0.69'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: rubocop-performance
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
90
98
|
description:
|
91
99
|
email:
|
92
100
|
- david@basecamp.com
|
@@ -131,6 +139,7 @@ files:
|
|
131
139
|
- gemfiles/Gemfile-rails.5.0.x
|
132
140
|
- gemfiles/Gemfile-rails.5.1.x
|
133
141
|
- gemfiles/Gemfile-rails.5.2.x
|
142
|
+
- gemfiles/Gemfile-rails.6.0.x
|
134
143
|
- lib/install/angular.rb
|
135
144
|
- lib/install/bin/webpack
|
136
145
|
- lib/install/bin/webpack-dev-server
|
@@ -161,6 +170,8 @@ files:
|
|
161
170
|
- lib/install/examples/stimulus/application.js
|
162
171
|
- lib/install/examples/stimulus/controllers/hello_controller.js
|
163
172
|
- lib/install/examples/stimulus/controllers/index.js
|
173
|
+
- lib/install/examples/svelte/app.svelte
|
174
|
+
- lib/install/examples/svelte/hello_svelte.js
|
164
175
|
- lib/install/examples/typescript/hello_typescript.ts
|
165
176
|
- lib/install/examples/typescript/tsconfig.json
|
166
177
|
- lib/install/examples/vue/app.vue
|
@@ -169,10 +180,12 @@ files:
|
|
169
180
|
- lib/install/loaders/coffee.js
|
170
181
|
- lib/install/loaders/elm.js
|
171
182
|
- lib/install/loaders/erb.js
|
183
|
+
- lib/install/loaders/svelte.js
|
172
184
|
- lib/install/loaders/typescript.js
|
173
185
|
- lib/install/loaders/vue.js
|
174
186
|
- lib/install/react.rb
|
175
187
|
- lib/install/stimulus.rb
|
188
|
+
- lib/install/svelte.rb
|
176
189
|
- lib/install/template.rb
|
177
190
|
- lib/install/typescript.rb
|
178
191
|
- lib/install/vue.rb
|
@@ -182,6 +195,7 @@ files:
|
|
182
195
|
- lib/tasks/webpacker/check_binstubs.rake
|
183
196
|
- lib/tasks/webpacker/check_node.rake
|
184
197
|
- lib/tasks/webpacker/check_yarn.rake
|
198
|
+
- lib/tasks/webpacker/clean.rake
|
185
199
|
- lib/tasks/webpacker/clobber.rake
|
186
200
|
- lib/tasks/webpacker/compile.rake
|
187
201
|
- lib/tasks/webpacker/info.rake
|
@@ -273,8 +287,8 @@ homepage: https://github.com/rails/webpacker
|
|
273
287
|
licenses:
|
274
288
|
- MIT
|
275
289
|
metadata:
|
276
|
-
source_code_uri: https://github.com/rails/webpacker/tree/v4.0
|
277
|
-
changelog_uri: https://github.com/rails/webpacker/blob/v4.0
|
290
|
+
source_code_uri: https://github.com/rails/webpacker/tree/v4.1.0
|
291
|
+
changelog_uri: https://github.com/rails/webpacker/blob/v4.1.0/CHANGELOG.md
|
278
292
|
post_install_message:
|
279
293
|
rdoc_options: []
|
280
294
|
require_paths:
|