shakapacker 9.3.0.beta.1 → 9.3.0.beta.4
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/eslint-validation.yml +46 -0
- data/ESLINT_TECHNICAL_DEBT.md +159 -0
- data/Gemfile.lock +1 -1
- data/README.md +9 -6
- data/docs/common-upgrades.md +80 -0
- data/docs/configuration.md +101 -0
- data/docs/preventing_fouc.md +132 -0
- data/docs/troubleshooting.md +4 -0
- data/docs/v9_upgrade.md +90 -8
- data/eslint.config.js +119 -7
- data/lib/shakapacker/build_config_loader.rb +147 -0
- data/lib/shakapacker/configuration.rb +6 -2
- data/lib/shakapacker/dev_server_runner.rb +73 -0
- data/lib/shakapacker/runner.rb +263 -15
- data/lib/shakapacker/version.rb +1 -1
- data/package/configExporter/buildValidator.ts +2 -2
- data/package/configExporter/cli.ts +260 -173
- data/package/configExporter/configFile.ts +182 -46
- data/package/configExporter/fileWriter.ts +20 -13
- data/package/configExporter/types.ts +2 -0
- data/package/utils/pathValidation.ts +3 -3
- data/package-lock.json +2 -2
- data/package.json +1 -1
- data/test/configExporter/buildValidator.test.js +31 -28
- data/test/configExporter/configFile.test.js +3 -2
- data/test/configExporter/integration.test.js +14 -27
- data/test/package/configExporter.test.js +4 -8
- metadata +8 -4
- /data/bin/{export-bundler-config → shakapacker-config} +0 -0
- /data/lib/install/bin/{export-bundler-config → shakapacker-config} +0 -0
|
@@ -17,8 +17,7 @@ describe("configExporter", () => {
|
|
|
17
17
|
describe("fileWriter", () => {
|
|
18
18
|
test("generates correct filename for client config", () => {
|
|
19
19
|
const { FileWriter } = require("../../package/configExporter/fileWriter")
|
|
20
|
-
const
|
|
21
|
-
const filename = writer.generateFilename(
|
|
20
|
+
const filename = FileWriter.generateFilename(
|
|
22
21
|
"webpack",
|
|
23
22
|
"development",
|
|
24
23
|
"client",
|
|
@@ -29,8 +28,7 @@ describe("configExporter", () => {
|
|
|
29
28
|
|
|
30
29
|
test("generates correct filename for server config", () => {
|
|
31
30
|
const { FileWriter } = require("../../package/configExporter/fileWriter")
|
|
32
|
-
const
|
|
33
|
-
const filename = writer.generateFilename(
|
|
31
|
+
const filename = FileWriter.generateFilename(
|
|
34
32
|
"webpack",
|
|
35
33
|
"production",
|
|
36
34
|
"server",
|
|
@@ -41,8 +39,7 @@ describe("configExporter", () => {
|
|
|
41
39
|
|
|
42
40
|
test("generates correct filename for client-hmr config", () => {
|
|
43
41
|
const { FileWriter } = require("../../package/configExporter/fileWriter")
|
|
44
|
-
const
|
|
45
|
-
const filename = writer.generateFilename(
|
|
42
|
+
const filename = FileWriter.generateFilename(
|
|
46
43
|
"webpack",
|
|
47
44
|
"development",
|
|
48
45
|
"client-hmr",
|
|
@@ -53,8 +50,7 @@ describe("configExporter", () => {
|
|
|
53
50
|
|
|
54
51
|
test("generates correct filename for json format", () => {
|
|
55
52
|
const { FileWriter } = require("../../package/configExporter/fileWriter")
|
|
56
|
-
const
|
|
57
|
-
const filename = writer.generateFilename(
|
|
53
|
+
const filename = FileWriter.generateFilename(
|
|
58
54
|
"rspack",
|
|
59
55
|
"production",
|
|
60
56
|
"client",
|
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: 9.3.0.beta.
|
|
4
|
+
version: 9.3.0.beta.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Heinemeier Hansson
|
|
@@ -141,6 +141,7 @@ files:
|
|
|
141
141
|
- ".github/workflows/claude-code-review.yml"
|
|
142
142
|
- ".github/workflows/claude.yml"
|
|
143
143
|
- ".github/workflows/dummy.yml"
|
|
144
|
+
- ".github/workflows/eslint-validation.yml"
|
|
144
145
|
- ".github/workflows/generator.yml"
|
|
145
146
|
- ".github/workflows/node.yml"
|
|
146
147
|
- ".github/workflows/ruby.yml"
|
|
@@ -156,6 +157,7 @@ files:
|
|
|
156
157
|
- CHANGELOG.md
|
|
157
158
|
- CLAUDE.md
|
|
158
159
|
- CONTRIBUTING.md
|
|
160
|
+
- ESLINT_TECHNICAL_DEBT.md
|
|
159
161
|
- Gemfile
|
|
160
162
|
- Gemfile.development_dependencies
|
|
161
163
|
- Gemfile.lock
|
|
@@ -166,7 +168,7 @@ files:
|
|
|
166
168
|
- TODO_v9.md
|
|
167
169
|
- __mocks__/nonexistent/package.json
|
|
168
170
|
- __mocks__/sass-loader/package.json
|
|
169
|
-
- bin/
|
|
171
|
+
- bin/shakapacker-config
|
|
170
172
|
- conductor-setup.sh
|
|
171
173
|
- conductor.json
|
|
172
174
|
- config/README.md
|
|
@@ -181,6 +183,7 @@ files:
|
|
|
181
183
|
- docs/optional-peer-dependencies.md
|
|
182
184
|
- docs/peer-dependencies.md
|
|
183
185
|
- docs/precompile_hook.md
|
|
186
|
+
- docs/preventing_fouc.md
|
|
184
187
|
- docs/react.md
|
|
185
188
|
- docs/releasing.md
|
|
186
189
|
- docs/rspack.md
|
|
@@ -211,8 +214,8 @@ files:
|
|
|
211
214
|
- jest.config.js
|
|
212
215
|
- knip.ts
|
|
213
216
|
- lib/install/application.js
|
|
214
|
-
- lib/install/bin/export-bundler-config
|
|
215
217
|
- lib/install/bin/shakapacker
|
|
218
|
+
- lib/install/bin/shakapacker-config
|
|
216
219
|
- lib/install/bin/shakapacker-dev-server
|
|
217
220
|
- lib/install/binstubs.rb
|
|
218
221
|
- lib/install/config/rspack/rspack.config.js
|
|
@@ -224,6 +227,7 @@ files:
|
|
|
224
227
|
- lib/install/template.rb
|
|
225
228
|
- lib/shakapacker.rb
|
|
226
229
|
- lib/shakapacker/base_strategy.rb
|
|
230
|
+
- lib/shakapacker/build_config_loader.rb
|
|
227
231
|
- lib/shakapacker/bundler_switcher.rb
|
|
228
232
|
- lib/shakapacker/commands.rb
|
|
229
233
|
- lib/shakapacker/compiler.rb
|
|
@@ -378,7 +382,7 @@ homepage: https://github.com/shakacode/shakapacker
|
|
|
378
382
|
licenses:
|
|
379
383
|
- MIT
|
|
380
384
|
metadata:
|
|
381
|
-
source_code_uri: https://github.com/shakacode/shakapacker/tree/v9.3.0.beta.
|
|
385
|
+
source_code_uri: https://github.com/shakacode/shakapacker/tree/v9.3.0.beta.4
|
|
382
386
|
rdoc_options: []
|
|
383
387
|
require_paths:
|
|
384
388
|
- lib
|
|
File without changes
|
|
File without changes
|