arui-scripts 15.3.0-feat-image-minimizer.1 → 15.4.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.
- package/.turbo/turbo-build.log +0 -0
- package/.turbo/turbo-test.log +91 -0
- package/CHANGELOG.md +271 -657
- package/README.md +41 -2
- package/bin/build.sh +2 -1
- package/build/commands/build/build-wrapper.d.ts +2 -2
- package/build/commands/build/client.js +3 -3
- package/build/commands/bundle-analyze/index.js +15 -15
- package/build/commands/changelog/index.js +2 -2
- package/build/commands/util/make-tmp-dir.d.ts +1 -1
- package/build/commands/util/make-tmp-dir.js +2 -2
- package/build/commands/util/run-client-dev-server.d.ts +1 -1
- package/build/commands/util/run-client-dev-server.js +1 -4
- package/build/configs/app-configs/calculate-dependent-config.d.ts +54 -8
- package/build/configs/app-configs/calculate-dependent-config.js +11 -13
- package/build/configs/app-configs/get-defaults.d.ts +3 -2
- package/build/configs/app-configs/get-defaults.js +69 -55
- package/build/configs/app-configs/index.d.ts +5 -3
- package/build/configs/app-configs/index.js +13 -7
- package/build/configs/app-configs/types.d.ts +51 -38
- package/build/configs/app-configs/update-with-config-file.d.ts +2 -2
- package/build/configs/app-configs/update-with-config-file.js +5 -7
- package/build/configs/app-configs/update-with-env.js +3 -8
- package/build/configs/app-configs/update-with-package.d.ts +2 -2
- package/build/configs/app-configs/update-with-package.js +5 -10
- package/build/configs/app-configs/update-with-presets.d.ts +2 -2
- package/build/configs/app-configs/update-with-presets.js +8 -15
- package/build/configs/app-configs/validate-settings-keys.d.ts +2 -5
- package/build/configs/app-configs/validate-settings-keys.js +6 -7
- package/build/configs/babel-client.d.ts +33 -1
- package/build/configs/babel-dependencies.d.ts +14 -1
- package/build/configs/babel-server.d.ts +26 -1
- package/build/configs/dev-server.d.ts +15 -1
- package/build/configs/jest/index.d.ts +33 -1
- package/build/configs/postcss.config.d.ts +1 -1
- package/build/configs/postcss.d.ts +1 -1
- package/build/configs/process-assets-plugin-output.d.ts +2 -0
- package/build/configs/process-assets-plugin-output.js +32 -0
- package/build/configs/server-externals-exemptions.d.ts +1 -1
- package/build/configs/util/apply-overrides.d.ts +23 -7
- package/build/configs/util/apply-overrides.js +3 -2
- package/build/configs/util/get-entry.d.ts +2 -1
- package/build/configs/webpack.client.d.ts +10 -2
- package/build/configs/webpack.client.dev.js +1 -1
- package/build/configs/webpack.client.js +42 -13
- package/build/configs/webpack.client.prod.js +1 -1
- package/build/index.d.ts +1 -1
- package/build/tsconfig-local.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/build/configs/app-configs/available-package-settings.d.ts +0 -8
- package/build/configs/app-configs/available-package-settings.js +0 -34
|
File without changes
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
PASS src/configs/app-configs/__tests__/update-with-presets.tests.ts (12.976 s)
|
|
2
|
+
PASS src/configs/util/__tests__/get-polyfills.tests.ts
|
|
3
|
+
PASS src/configs/util/__tests__/apply-overrides.tests.ts
|
|
4
|
+
PASS src/configs/app-configs/__tests__/update-with-env.tests.ts
|
|
5
|
+
● Console
|
|
6
|
+
|
|
7
|
+
console.warn
|
|
8
|
+
Используйте ARUI_SCRIPTS_CONFIG только для отладки
|
|
9
|
+
|
|
10
|
+
8 |
|
|
11
|
+
9 | try {
|
|
12
|
+
> 10 | console.warn('Используйте ARUI_SCRIPTS_CONFIG только для отладки');
|
|
13
|
+
| ^
|
|
14
|
+
11 | const envSettings = JSON.parse(process.env.ARUI_SCRIPTS_CONFIG);
|
|
15
|
+
12 | validateSettingsKeys(config, envSettings, 'ENV');
|
|
16
|
+
13 | return {
|
|
17
|
+
|
|
18
|
+
at updateWithEnv (src/configs/app-configs/update-with-env.ts:10:17)
|
|
19
|
+
at src/configs/app-configs/__tests__/update-with-env.tests.ts:30:26
|
|
20
|
+
at Object.<anonymous> (../../node_modules/expect/build/toThrowMatchers.js:83:11)
|
|
21
|
+
at Object.throwingMatcher [as toThrowError] (../../node_modules/expect/build/index.js:342:21)
|
|
22
|
+
at Object.<anonymous> (src/configs/app-configs/__tests__/update-with-env.tests.ts:31:12)
|
|
23
|
+
|
|
24
|
+
console.error
|
|
25
|
+
SyntaxError: Unexpected token o in JSON at position 1
|
|
26
|
+
at JSON.parse (<anonymous>)
|
|
27
|
+
at updateWithEnv (/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/app-configs/update-with-env.ts:11:34)
|
|
28
|
+
at /home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/app-configs/__tests__/update-with-env.tests.ts:30:26
|
|
29
|
+
at Object.<anonymous> (/home/runner/work/arui-scripts/arui-scripts/node_modules/expect/build/toThrowMatchers.js:83:11)
|
|
30
|
+
at Object.throwingMatcher [as toThrowError] (/home/runner/work/arui-scripts/arui-scripts/node_modules/expect/build/index.js:342:21)
|
|
31
|
+
at Object.<anonymous> (/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/app-configs/__tests__/update-with-env.tests.ts:31:12)
|
|
32
|
+
at Promise.then.completed (/home/runner/work/arui-scripts/arui-scripts/node_modules/jest-circus/build/utils.js:333:28)
|
|
33
|
+
at new Promise (<anonymous>)
|
|
34
|
+
at callAsyncCircusFn (/home/runner/work/arui-scripts/arui-scripts/node_modules/jest-circus/build/utils.js:259:10)
|
|
35
|
+
at _callCircusTest (/home/runner/work/arui-scripts/arui-scripts/node_modules/jest-circus/build/run.js:277:40)
|
|
36
|
+
|
|
37
|
+
16 | };
|
|
38
|
+
17 | } catch (e) {
|
|
39
|
+
> 18 | console.error(e);
|
|
40
|
+
| ^
|
|
41
|
+
19 | throw Error('Not valid JSON passed. Correct it. For example: ARUI_SCRIPTS_CONFIG="{\"serverPort\":3333}"');
|
|
42
|
+
20 | }
|
|
43
|
+
21 | }
|
|
44
|
+
|
|
45
|
+
at updateWithEnv (src/configs/app-configs/update-with-env.ts:18:17)
|
|
46
|
+
at src/configs/app-configs/__tests__/update-with-env.tests.ts:30:26
|
|
47
|
+
at Object.<anonymous> (../../node_modules/expect/build/toThrowMatchers.js:83:11)
|
|
48
|
+
at Object.throwingMatcher [as toThrowError] (../../node_modules/expect/build/index.js:342:21)
|
|
49
|
+
at Object.<anonymous> (src/configs/app-configs/__tests__/update-with-env.tests.ts:31:12)
|
|
50
|
+
|
|
51
|
+
console.warn
|
|
52
|
+
Используйте ARUI_SCRIPTS_CONFIG только для отладки
|
|
53
|
+
|
|
54
|
+
8 |
|
|
55
|
+
9 | try {
|
|
56
|
+
> 10 | console.warn('Используйте ARUI_SCRIPTS_CONFIG только для отладки');
|
|
57
|
+
| ^
|
|
58
|
+
11 | const envSettings = JSON.parse(process.env.ARUI_SCRIPTS_CONFIG);
|
|
59
|
+
12 | validateSettingsKeys(config, envSettings, 'ENV');
|
|
60
|
+
13 | return {
|
|
61
|
+
|
|
62
|
+
at updateWithEnv (src/configs/app-configs/update-with-env.ts:10:17)
|
|
63
|
+
at Object.<anonymous> (src/configs/app-configs/__tests__/update-with-env.tests.ts:38:44)
|
|
64
|
+
|
|
65
|
+
PASS src/configs/app-configs/__tests__/update-with-package.tests.ts
|
|
66
|
+
PASS src/configs/app-configs/__tests__/validate-settings-keys.tests.ts
|
|
67
|
+
● Console
|
|
68
|
+
|
|
69
|
+
console.warn
|
|
70
|
+
Неизвестная настройка "country" в конфигурации
|
|
71
|
+
|
|
72
|
+
9 | Object.keys(settingsObject).forEach((setting) => {
|
|
73
|
+
10 | if (typeof existingConfig[setting] === 'undefined') {
|
|
74
|
+
> 11 | console.warn(`Неизвестная настройка "${setting}" в ${source || 'конфигурации'}`);
|
|
75
|
+
| ^
|
|
76
|
+
12 | }
|
|
77
|
+
13 | });
|
|
78
|
+
14 | }
|
|
79
|
+
|
|
80
|
+
at console.<anonymous> (../../node_modules/jest-mock/build/index.js:839:25)
|
|
81
|
+
at src/configs/app-configs/validate-settings-keys.ts:11:21
|
|
82
|
+
at Array.forEach (<anonymous>)
|
|
83
|
+
at validateSettingsKeys (src/configs/app-configs/validate-settings-keys.ts:9:33)
|
|
84
|
+
at Object.<anonymous> (src/configs/app-configs/__tests__/validate-settings-keys.tests.ts:14:29)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
Test Suites: 6 passed, 6 total
|
|
88
|
+
Tests: 17 passed, 17 total
|
|
89
|
+
Snapshots: 0 total
|
|
90
|
+
Time: 15.742 s
|
|
91
|
+
Ran all test suites.
|