shakapacker 6.2.0 → 6.3.0
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/CHANGELOG.md +44 -3
- data/CONTRIBUTING.md +2 -2
- data/Gemfile.lock +1 -1
- data/README.md +46 -14
- data/docs/deployment.md +2 -2
- data/docs/react.md +262 -0
- data/docs/troubleshooting.md +18 -0
- data/docs/v6_upgrade.md +3 -1
- data/lib/install/config/webpacker.yml +6 -0
- data/lib/tasks/webpacker/clean.rake +1 -3
- data/lib/tasks/webpacker/clobber.rake +1 -3
- data/lib/tasks/webpacker/compile.rake +1 -4
- data/lib/webpacker/base_strategy.rb +24 -0
- data/lib/webpacker/compiler.rb +4 -67
- data/lib/webpacker/compiler_strategy.rb +20 -0
- data/lib/webpacker/configuration.rb +14 -0
- data/lib/webpacker/digest_strategy.rb +59 -0
- data/lib/webpacker/helper.rb +26 -1
- data/lib/webpacker/instance.rb +4 -0
- data/lib/webpacker/manifest.rb +2 -2
- data/lib/webpacker/mtime_strategy.rb +40 -0
- data/lib/webpacker/version.rb +1 -1
- data/package/babel/preset.js +0 -1
- data/package/rules/file.js +2 -2
- data/package.json +12 -11
- data/test/compiler_strategy_test.rb +27 -0
- data/test/compiler_test.rb +26 -34
- data/test/configuration_test.rb +29 -4
- data/test/digest_strategy_test.rb +33 -0
- data/test/helper_test.rb +22 -0
- data/test/manifest_test.rb +3 -3
- data/test/mtime_strategy_test.rb +42 -0
- data/test/test_app/config/webpacker_no_precompile.yml +7 -0
- data/yarn.lock +917 -884
- metadata +16 -3
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shakapacker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-
|
13
|
+
date: 2022-05-19 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -142,6 +142,7 @@ files:
|
|
142
142
|
- docs/customizing_babel_config.md
|
143
143
|
- docs/deployment.md
|
144
144
|
- docs/developing_webpacker.md
|
145
|
+
- docs/react.md
|
145
146
|
- docs/style_loader_vs_mini_css.md
|
146
147
|
- docs/troubleshooting.md
|
147
148
|
- docs/using_esbuild_loader.md
|
@@ -179,16 +180,20 @@ files:
|
|
179
180
|
- lib/tasks/webpacker/yarn_install.rake
|
180
181
|
- lib/tasks/yarn.rake
|
181
182
|
- lib/webpacker.rb
|
183
|
+
- lib/webpacker/base_strategy.rb
|
182
184
|
- lib/webpacker/commands.rb
|
183
185
|
- lib/webpacker/compiler.rb
|
186
|
+
- lib/webpacker/compiler_strategy.rb
|
184
187
|
- lib/webpacker/configuration.rb
|
185
188
|
- lib/webpacker/dev_server.rb
|
186
189
|
- lib/webpacker/dev_server_proxy.rb
|
187
190
|
- lib/webpacker/dev_server_runner.rb
|
191
|
+
- lib/webpacker/digest_strategy.rb
|
188
192
|
- lib/webpacker/env.rb
|
189
193
|
- lib/webpacker/helper.rb
|
190
194
|
- lib/webpacker/instance.rb
|
191
195
|
- lib/webpacker/manifest.rb
|
196
|
+
- lib/webpacker/mtime_strategy.rb
|
192
197
|
- lib/webpacker/railtie.rb
|
193
198
|
- lib/webpacker/runner.rb
|
194
199
|
- lib/webpacker/version.rb
|
@@ -236,10 +241,12 @@ files:
|
|
236
241
|
- package/utils/helpers.js
|
237
242
|
- rakelib/release.rake
|
238
243
|
- test/command_test.rb
|
244
|
+
- test/compiler_strategy_test.rb
|
239
245
|
- test/compiler_test.rb
|
240
246
|
- test/configuration_test.rb
|
241
247
|
- test/dev_server_runner_test.rb
|
242
248
|
- test/dev_server_test.rb
|
249
|
+
- test/digest_strategy_test.rb
|
243
250
|
- test/engine_rake_tasks_test.rb
|
244
251
|
- test/env_test.rb
|
245
252
|
- test/fixtures/beta_package.json
|
@@ -261,6 +268,7 @@ files:
|
|
261
268
|
- test/mounted_app/test/dummy/config/environment.rb
|
262
269
|
- test/mounted_app/test/dummy/config/webpacker.yml
|
263
270
|
- test/mounted_app/test/dummy/package.json
|
271
|
+
- test/mtime_strategy_test.rb
|
264
272
|
- test/rake_tasks_test.rb
|
265
273
|
- test/test_app/Rakefile
|
266
274
|
- test/test_app/app/packs/entrypoints/application.js
|
@@ -275,6 +283,7 @@ files:
|
|
275
283
|
- test/test_app/config/webpack/webpack.config.js
|
276
284
|
- test/test_app/config/webpacker.yml
|
277
285
|
- test/test_app/config/webpacker_manifest_path.yml
|
286
|
+
- test/test_app/config/webpacker_no_precompile.yml
|
278
287
|
- test/test_app/config/webpacker_other_location.yml
|
279
288
|
- test/test_app/config/webpacker_public_root.yml
|
280
289
|
- test/test_app/package.json
|
@@ -291,7 +300,7 @@ homepage: https://github.com/shakacode/shakapacker
|
|
291
300
|
licenses:
|
292
301
|
- MIT
|
293
302
|
metadata:
|
294
|
-
source_code_uri: https://github.com/shakacode/shakapacker/tree/v6.
|
303
|
+
source_code_uri: https://github.com/shakacode/shakapacker/tree/v6.3.0
|
295
304
|
post_install_message:
|
296
305
|
rdoc_options: []
|
297
306
|
require_paths:
|
@@ -313,10 +322,12 @@ specification_version: 4
|
|
313
322
|
summary: Use webpack to manage app-like JavaScript modules in Rails
|
314
323
|
test_files:
|
315
324
|
- test/command_test.rb
|
325
|
+
- test/compiler_strategy_test.rb
|
316
326
|
- test/compiler_test.rb
|
317
327
|
- test/configuration_test.rb
|
318
328
|
- test/dev_server_runner_test.rb
|
319
329
|
- test/dev_server_test.rb
|
330
|
+
- test/digest_strategy_test.rb
|
320
331
|
- test/engine_rake_tasks_test.rb
|
321
332
|
- test/env_test.rb
|
322
333
|
- test/fixtures/beta_package.json
|
@@ -338,6 +349,7 @@ test_files:
|
|
338
349
|
- test/mounted_app/test/dummy/config/environment.rb
|
339
350
|
- test/mounted_app/test/dummy/config/webpacker.yml
|
340
351
|
- test/mounted_app/test/dummy/package.json
|
352
|
+
- test/mtime_strategy_test.rb
|
341
353
|
- test/rake_tasks_test.rb
|
342
354
|
- test/test_app/Rakefile
|
343
355
|
- test/test_app/app/packs/entrypoints/application.js
|
@@ -352,6 +364,7 @@ test_files:
|
|
352
364
|
- test/test_app/config/webpack/webpack.config.js
|
353
365
|
- test/test_app/config/webpacker.yml
|
354
366
|
- test/test_app/config/webpacker_manifest_path.yml
|
367
|
+
- test/test_app/config/webpacker_no_precompile.yml
|
355
368
|
- test/test_app/config/webpacker_other_location.yml
|
356
369
|
- test/test_app/config/webpacker_public_root.yml
|
357
370
|
- test/test_app/package.json
|