webpacker 6.0.0.rc.1 → 6.0.0.rc.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/jest.yml +6 -17
- data/.github/workflows/js-lint.yml +6 -17
- data/.github/workflows/ruby.yml +13 -38
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +15 -3
- data/CONTRIBUTING.md +19 -0
- data/Gemfile.lock +84 -84
- data/README.md +118 -164
- data/docs/developing_webpacker.md +4 -4
- data/docs/troubleshooting.md +5 -1
- data/docs/v6_upgrade.md +72 -34
- data/lib/install/{packs/entrypoints/application.js → application.js} +3 -7
- data/lib/install/bin/webpack +4 -7
- data/lib/install/bin/yarn +18 -0
- data/lib/install/config/webpacker.yml +16 -13
- data/lib/install/package.json +15 -0
- data/lib/install/template.rb +37 -15
- data/lib/tasks/yarn.rake +38 -0
- data/lib/webpacker/commands.rb +19 -15
- data/lib/webpacker/dev_server_runner.rb +1 -1
- data/lib/webpacker/helper.rb +2 -2
- data/lib/webpacker/railtie.rb +7 -0
- data/lib/webpacker/version.rb +1 -1
- data/lib/webpacker/webpack_runner.rb +27 -7
- data/package/__tests__/development.js +4 -11
- data/package/config.js +3 -3
- data/package/env.js +3 -6
- data/package/environments/base.js +1 -1
- data/package/environments/development.js +34 -32
- data/package/rules/file.js +1 -1
- data/package.json +15 -15
- data/test/command_test.rb +76 -0
- data/test/dev_server_runner_test.rb +1 -1
- data/test/helper_test.rb +13 -4
- data/test/test_app/config/initializers/inspect_autoload_paths.rb +1 -0
- data/test/webpacker_test.rb +4 -0
- data/webpacker.gemspec +2 -2
- data/yarn.lock +1392 -2825
- metadata +16 -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.rc.
|
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
|
@@ -143,15 +143,17 @@ files:
|
|
143
143
|
- gemfiles/Gemfile-rails.5.2.x
|
144
144
|
- gemfiles/Gemfile-rails.6.0.x
|
145
145
|
- gemfiles/Gemfile-rails.6.1.x
|
146
|
+
- lib/install/application.js
|
146
147
|
- lib/install/bin/webpack
|
147
148
|
- lib/install/bin/webpack-dev-server
|
149
|
+
- lib/install/bin/yarn
|
148
150
|
- lib/install/binstubs.rb
|
149
151
|
- lib/install/config/webpack/base.js
|
150
152
|
- lib/install/config/webpack/development.js
|
151
153
|
- lib/install/config/webpack/production.js
|
152
154
|
- lib/install/config/webpack/test.js
|
153
155
|
- lib/install/config/webpacker.yml
|
154
|
-
- lib/install/
|
156
|
+
- lib/install/package.json
|
155
157
|
- lib/install/template.rb
|
156
158
|
- lib/tasks/webpacker.rake
|
157
159
|
- lib/tasks/webpacker/binstubs.rake
|
@@ -166,6 +168,7 @@ files:
|
|
166
168
|
- lib/tasks/webpacker/verify_config.rake
|
167
169
|
- lib/tasks/webpacker/verify_install.rake
|
168
170
|
- lib/tasks/webpacker/yarn_install.rake
|
171
|
+
- lib/tasks/yarn.rake
|
169
172
|
- lib/webpacker.rb
|
170
173
|
- lib/webpacker/commands.rb
|
171
174
|
- lib/webpacker/compiler.rb
|
@@ -242,6 +245,7 @@ files:
|
|
242
245
|
- test/test_app/config.ru
|
243
246
|
- test/test_app/config/application.rb
|
244
247
|
- test/test_app/config/environment.rb
|
248
|
+
- test/test_app/config/initializers/inspect_autoload_paths.rb
|
245
249
|
- test/test_app/config/webpack/development.js
|
246
250
|
- test/test_app/config/webpacker.yml
|
247
251
|
- test/test_app/config/webpacker_other_location.yml
|
@@ -259,8 +263,8 @@ homepage: https://github.com/rails/webpacker
|
|
259
263
|
licenses:
|
260
264
|
- MIT
|
261
265
|
metadata:
|
262
|
-
source_code_uri: https://github.com/rails/webpacker/tree/v6.0.0.rc.
|
263
|
-
changelog_uri: https://github.com/rails/webpacker/blob/v6.0.0.rc.
|
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
|
264
268
|
post_install_message:
|
265
269
|
rdoc_options: []
|
266
270
|
require_paths:
|
@@ -269,14 +273,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
269
273
|
requirements:
|
270
274
|
- - ">="
|
271
275
|
- !ruby/object:Gem::Version
|
272
|
-
version: 2.
|
276
|
+
version: 2.7.0
|
273
277
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
274
278
|
requirements:
|
275
279
|
- - ">"
|
276
280
|
- !ruby/object:Gem::Version
|
277
281
|
version: 1.3.1
|
278
282
|
requirements: []
|
279
|
-
rubygems_version: 3.
|
283
|
+
rubygems_version: 3.2.22
|
280
284
|
signing_key:
|
281
285
|
specification_version: 4
|
282
286
|
summary: Use webpack to manage app-like JavaScript modules in Rails
|
@@ -309,6 +313,7 @@ test_files:
|
|
309
313
|
- test/test_app/config.ru
|
310
314
|
- test/test_app/config/application.rb
|
311
315
|
- test/test_app/config/environment.rb
|
316
|
+
- test/test_app/config/initializers/inspect_autoload_paths.rb
|
312
317
|
- test/test_app/config/webpack/development.js
|
313
318
|
- test/test_app/config/webpacker.yml
|
314
319
|
- test/test_app/config/webpacker_other_location.yml
|