webpacker 6.0.0.beta.7 → 6.0.0.rc.6
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 +4 -4
- data/.github/workflows/jest.yml +7 -15
- data/.github/workflows/js-lint.yml +7 -15
- data/.github/workflows/rubocop.yml +1 -1
- data/.github/workflows/ruby.yml +15 -40
- data/.node-version +1 -1
- data/.rubocop.yml +2 -1
- data/CHANGELOG.md +34 -11
- data/CONTRIBUTING.md +19 -0
- data/Gemfile.lock +84 -84
- data/README.md +177 -165
- data/config/webpacker.yml +1 -1
- data/docs/developing_webpacker.md +29 -0
- data/docs/troubleshooting.md +57 -23
- data/docs/v6_upgrade.md +69 -42
- data/gemfiles/Gemfile-rails-edge +1 -1
- data/gemfiles/Gemfile-rails.6.1.x +12 -0
- data/lib/install/{packs/entrypoints/application.js → application.js} +3 -8
- data/lib/install/bin/webpack +4 -7
- data/lib/install/bin/yarn +18 -0
- data/lib/install/config/webpacker.yml +18 -19
- data/lib/install/package.json +15 -0
- data/lib/install/template.rb +38 -16
- data/lib/tasks/webpacker/check_node.rake +3 -1
- data/lib/tasks/webpacker/check_yarn.rake +4 -2
- data/lib/tasks/webpacker/clobber.rake +1 -1
- data/lib/tasks/webpacker/verify_config.rake +14 -0
- data/lib/tasks/webpacker/verify_install.rake +1 -11
- data/lib/tasks/yarn.rake +38 -0
- data/lib/webpacker/commands.rb +19 -15
- data/lib/webpacker/configuration.rb +15 -4
- data/lib/webpacker/dev_server.rb +6 -0
- data/lib/webpacker/dev_server_runner.rb +6 -3
- data/lib/webpacker/env.rb +5 -1
- data/lib/webpacker/helper.rb +14 -8
- data/lib/webpacker/instance.rb +4 -0
- data/lib/webpacker/manifest.rb +1 -2
- data/lib/webpacker/railtie.rb +8 -2
- data/lib/webpacker/runner.rb +1 -1
- data/lib/webpacker/version.rb +1 -1
- data/lib/webpacker/webpack_runner.rb +27 -7
- data/lib/webpacker.rb +1 -1
- data/package/__tests__/development.js +4 -11
- data/package/__tests__/env.js +8 -4
- data/package/babel/preset.js +0 -1
- data/package/config.js +3 -3
- data/package/env.js +6 -3
- data/package/environments/__tests__/base.js +3 -3
- data/package/environments/base.js +13 -8
- data/package/environments/development.js +36 -36
- data/package/index.js +2 -0
- data/package/inliningCss.js +7 -0
- data/package/rules/file.js +1 -1
- data/package/rules/sass.js +1 -2
- data/package/utils/get_style_rule.js +4 -2
- data/package.json +25 -29
- data/test/command_test.rb +76 -0
- data/test/configuration_test.rb +1 -1
- data/test/dev_server_runner_test.rb +5 -2
- data/test/helper_test.rb +48 -34
- data/test/manifest_test.rb +10 -2
- data/test/mounted_app/test/dummy/config/webpacker.yml +1 -1
- data/test/test_app/config/initializers/inspect_autoload_paths.rb +1 -0
- data/test/test_app/config/webpacker.yml +1 -3
- data/test/test_app/config/webpacker_other_location.yml +79 -0
- data/test/test_app/public/packs/manifest.json +12 -5
- data/test/webpacker_test.rb +21 -0
- data/webpacker.gemspec +2 -2
- data/yarn.lock +2357 -3262
- metadata +22 -11
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: 6.0.0.
|
4
|
+
version: 6.0.0.rc.6
|
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: 2021-
|
12
|
+
date: 2021-11-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -85,16 +85,16 @@ dependencies:
|
|
85
85
|
name: rubocop
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- -
|
88
|
+
- - ">="
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: 0
|
90
|
+
version: '0'
|
91
91
|
type: :development
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- -
|
95
|
+
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: 0
|
97
|
+
version: '0'
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: rubocop-performance
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,20 +136,24 @@ files:
|
|
136
136
|
- config/README.md
|
137
137
|
- config/webpacker.yml
|
138
138
|
- docs/deployment.md
|
139
|
+
- docs/developing_webpacker.md
|
139
140
|
- docs/troubleshooting.md
|
140
141
|
- docs/v6_upgrade.md
|
141
142
|
- gemfiles/Gemfile-rails-edge
|
142
143
|
- gemfiles/Gemfile-rails.5.2.x
|
143
144
|
- gemfiles/Gemfile-rails.6.0.x
|
145
|
+
- gemfiles/Gemfile-rails.6.1.x
|
146
|
+
- lib/install/application.js
|
144
147
|
- lib/install/bin/webpack
|
145
148
|
- lib/install/bin/webpack-dev-server
|
149
|
+
- lib/install/bin/yarn
|
146
150
|
- lib/install/binstubs.rb
|
147
151
|
- lib/install/config/webpack/base.js
|
148
152
|
- lib/install/config/webpack/development.js
|
149
153
|
- lib/install/config/webpack/production.js
|
150
154
|
- lib/install/config/webpack/test.js
|
151
155
|
- lib/install/config/webpacker.yml
|
152
|
-
- lib/install/
|
156
|
+
- lib/install/package.json
|
153
157
|
- lib/install/template.rb
|
154
158
|
- lib/tasks/webpacker.rake
|
155
159
|
- lib/tasks/webpacker/binstubs.rake
|
@@ -161,8 +165,10 @@ files:
|
|
161
165
|
- lib/tasks/webpacker/compile.rake
|
162
166
|
- lib/tasks/webpacker/info.rake
|
163
167
|
- lib/tasks/webpacker/install.rake
|
168
|
+
- lib/tasks/webpacker/verify_config.rake
|
164
169
|
- lib/tasks/webpacker/verify_install.rake
|
165
170
|
- lib/tasks/webpacker/yarn_install.rake
|
171
|
+
- lib/tasks/yarn.rake
|
166
172
|
- lib/webpacker.rb
|
167
173
|
- lib/webpacker/commands.rb
|
168
174
|
- lib/webpacker/compiler.rb
|
@@ -198,6 +204,7 @@ files:
|
|
198
204
|
- package/environments/production.js
|
199
205
|
- package/environments/test.js
|
200
206
|
- package/index.js
|
207
|
+
- package/inliningCss.js
|
201
208
|
- package/rules/babel.js
|
202
209
|
- package/rules/coffee.js
|
203
210
|
- package/rules/css.js
|
@@ -238,8 +245,10 @@ files:
|
|
238
245
|
- test/test_app/config.ru
|
239
246
|
- test/test_app/config/application.rb
|
240
247
|
- test/test_app/config/environment.rb
|
248
|
+
- test/test_app/config/initializers/inspect_autoload_paths.rb
|
241
249
|
- test/test_app/config/webpack/development.js
|
242
250
|
- test/test_app/config/webpacker.yml
|
251
|
+
- test/test_app/config/webpacker_other_location.yml
|
243
252
|
- test/test_app/config/webpacker_public_root.yml
|
244
253
|
- test/test_app/package.json
|
245
254
|
- test/test_app/public/packs/manifest.json
|
@@ -254,8 +263,8 @@ homepage: https://github.com/rails/webpacker
|
|
254
263
|
licenses:
|
255
264
|
- MIT
|
256
265
|
metadata:
|
257
|
-
source_code_uri: https://github.com/rails/webpacker/tree/v6.0.0.
|
258
|
-
changelog_uri: https://github.com/rails/webpacker/blob/v6.0.0.
|
266
|
+
source_code_uri: https://github.com/rails/webpacker/tree/v6.0.0.rc.6
|
267
|
+
changelog_uri: https://github.com/rails/webpacker/blob/v6.0.0.rc.6/CHANGELOG.md
|
259
268
|
post_install_message:
|
260
269
|
rdoc_options: []
|
261
270
|
require_paths:
|
@@ -264,14 +273,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
264
273
|
requirements:
|
265
274
|
- - ">="
|
266
275
|
- !ruby/object:Gem::Version
|
267
|
-
version: 2.
|
276
|
+
version: 2.7.0
|
268
277
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
269
278
|
requirements:
|
270
279
|
- - ">"
|
271
280
|
- !ruby/object:Gem::Version
|
272
281
|
version: 1.3.1
|
273
282
|
requirements: []
|
274
|
-
rubygems_version: 3.2.
|
283
|
+
rubygems_version: 3.2.22
|
275
284
|
signing_key:
|
276
285
|
specification_version: 4
|
277
286
|
summary: Use webpack to manage app-like JavaScript modules in Rails
|
@@ -304,8 +313,10 @@ test_files:
|
|
304
313
|
- test/test_app/config.ru
|
305
314
|
- test/test_app/config/application.rb
|
306
315
|
- test/test_app/config/environment.rb
|
316
|
+
- test/test_app/config/initializers/inspect_autoload_paths.rb
|
307
317
|
- test/test_app/config/webpack/development.js
|
308
318
|
- test/test_app/config/webpacker.yml
|
319
|
+
- test/test_app/config/webpacker_other_location.yml
|
309
320
|
- test/test_app/config/webpacker_public_root.yml
|
310
321
|
- test/test_app/package.json
|
311
322
|
- test/test_app/public/packs/manifest.json
|