arui-scripts 17.4.0 → 18.1.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/.eslintrc.js +2 -0
- package/.turbo/turbo-lint.log +27 -105
- package/.turbo/turbo-test.log +7 -4
- package/CHANGELOG.md +33 -0
- package/build/commands/changelog/index.js +22 -27
- package/build/commands/start/print-compiler-output.js +1 -1
- package/build/commands/start-prod/index.js +1 -1
- package/build/commands/util/client-assets-sizes.js +2 -3
- package/build/commands/util/docker-build.js +6 -7
- package/build/commands/util/run-client-dev-server.js +1 -2
- package/build/commands/util/run-compilers.js +1 -2
- package/build/commands/util/run-server-watch-compiler.js +2 -3
- package/build/commands/util/tsc.js +1 -2
- package/build/commands/util/yarn.js +3 -4
- package/build/configs/app-configs/calculate-dependent-config.d.ts +1 -75
- package/build/configs/app-configs/calculate-dependent-config.js +3 -4
- package/build/configs/app-configs/get-defaults.js +5 -4
- package/build/configs/app-configs/read-config-file.js +2 -3
- package/build/configs/app-configs/types.d.ts +13 -2
- package/build/configs/app-configs/update-with-config-file.js +1 -2
- package/build/configs/app-configs/update-with-env.js +1 -2
- package/build/configs/app-configs/update-with-package.js +1 -2
- package/build/configs/app-configs/update-with-presets.js +2 -3
- package/build/configs/app-configs/validate-settings-keys.js +1 -2
- package/build/configs/app-configs/warn-about-deprecations.js +4 -3
- package/build/configs/client-env-config/add-env-to-html-template.js +1 -2
- package/build/configs/client-env-config/get-env-config.js +2 -3
- package/build/configs/jest/index.d.ts +3 -3
- package/build/configs/jest/settings.d.ts +11 -11
- package/build/configs/jest/settings.js +29 -13
- package/build/configs/modules.js +20 -12
- package/build/configs/postcss.config.js +2 -2
- package/build/configs/process-assets-plugin-output.js +1 -2
- package/build/configs/swc.d.ts +4 -0
- package/build/configs/swc.js +35 -0
- package/build/configs/util/apply-overrides.d.ts +5 -0
- package/build/configs/util/find-loader.js +1 -2
- package/build/configs/util/find-plugin.d.ts +0 -1
- package/build/configs/util/find-plugin.js +1 -2
- package/build/configs/util/get-polyfills.d.ts +0 -1
- package/build/configs/util/get-polyfills.js +1 -2
- package/build/configs/util/get-webpack-cache-dependencies.js +1 -2
- package/build/configs/util/resolve.js +2 -3
- package/build/configs/webpack.client.d.ts +2 -2
- package/build/configs/webpack.client.js +84 -61
- package/build/configs/webpack.server.d.ts +1 -1
- package/build/configs/webpack.server.js +70 -46
- package/build/plugins/arui-runtime/arui-runtime-module.js +1 -1
- package/build/plugins/arui-runtime/index.js +2 -2
- package/build/templates/dockerfile.template.js +1 -1
- package/build/tsconfig-local.tsbuildinfo +1 -1
- package/docs/modules.md +25 -3
- package/docs/overrides.md +3 -0
- package/docs/settings.md +27 -0
- package/package.json +15 -10
package/.eslintrc.js
CHANGED
package/.turbo/turbo-lint.log
CHANGED
|
@@ -3,75 +3,27 @@
|
|
|
3
3
|
[0;32mWARNING: [0mModule not found: [0;31marui-feather/vars/opacity.css[0m
|
|
4
4
|
[0;32mWARNING: [0mModule not found: [0;31marui-feather/vars/primitive-colors.css[0m
|
|
5
5
|
|
|
6
|
-
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/bin/index.ts
|
|
7
|
-
26:5 warning Unexpected console statement no-console
|
|
8
|
-
|
|
9
6
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/commands/archive-build/index.ts
|
|
10
|
-
|
|
11
|
-
25:9 warning Unexpected console statement no-console
|
|
12
|
-
26:9 warning Unexpected console statement no-console
|
|
13
|
-
40:9 warning Unexpected console statement no-console
|
|
14
|
-
41:9 warning Unexpected console statement no-console
|
|
15
|
-
45:9 warning Unexpected console statement no-console
|
|
16
|
-
46:9 warning Unexpected console statement no-console
|
|
17
|
-
51:9 warning Unexpected console statement no-console
|
|
18
|
-
52:9 warning Unexpected console statement no-console
|
|
19
|
-
72:9 warning Unexpected console statement no-console
|
|
20
|
-
73:9 warning Unexpected console statement no-console
|
|
21
|
-
78:9 warning Unexpected console statement no-console
|
|
22
|
-
79:9 warning Unexpected console statement no-console
|
|
23
|
-
81:9 warning Unexpected console statement no-console
|
|
24
|
-
83:13 warning Unexpected console statement no-console
|
|
7
|
+
6:8 warning Using exported name 'configs' as identifier for default export import/no-named-as-default
|
|
25
8
|
|
|
26
9
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/commands/changelog/index.ts
|
|
27
10
|
11:8 warning Using exported name 'configs' as identifier for default export import/no-named-as-default
|
|
28
11
|
|
|
29
12
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/commands/docker-build-compiled/index.ts
|
|
30
|
-
|
|
31
|
-
18:9 warning Unexpected console statement no-console
|
|
32
|
-
19:9 warning Unexpected console statement no-console
|
|
33
|
-
39:9 warning Unexpected console statement no-console
|
|
34
|
-
42:9 warning Unexpected console statement no-console
|
|
35
|
-
44:13 warning Unexpected console statement no-console
|
|
13
|
+
3:8 warning Using exported name 'configs' as identifier for default export import/no-named-as-default
|
|
36
14
|
|
|
37
15
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/commands/docker-build/index.ts
|
|
38
|
-
|
|
39
|
-
19:9 warning Unexpected console statement no-console
|
|
40
|
-
20:9 warning Unexpected console statement no-console
|
|
41
|
-
21:9 warning Unexpected console statement no-console
|
|
42
|
-
35:9 warning Unexpected console statement no-console
|
|
43
|
-
36:9 warning Unexpected console statement no-console
|
|
44
|
-
40:9 warning Unexpected console statement no-console
|
|
45
|
-
43:13 warning Unexpected console statement no-console
|
|
46
|
-
49:13 warning Unexpected console statement no-console
|
|
47
|
-
52:9 warning Unexpected console statement no-console
|
|
48
|
-
56:9 warning Unexpected console statement no-console
|
|
49
|
-
57:9 warning Unexpected console statement no-console
|
|
50
|
-
67:9 warning Unexpected console statement no-console
|
|
51
|
-
68:9 warning Unexpected console statement no-console
|
|
52
|
-
71:9 warning Unexpected console statement no-console
|
|
53
|
-
73:13 warning Unexpected console statement no-console
|
|
54
|
-
|
|
55
|
-
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/commands/start-prod/index.ts
|
|
56
|
-
1:1 warning Run autofix to sort these imports! simple-import-sort/imports
|
|
16
|
+
3:8 warning Using exported name 'configs' as identifier for default export import/no-named-as-default
|
|
57
17
|
|
|
58
18
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/commands/start/print-compiler-output.ts
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
12:5 warning Unexpected console statement no-console
|
|
62
|
-
|
|
63
|
-
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/commands/util/client-assets-sizes.ts
|
|
64
|
-
110:5 warning Unexpected console statement no-console
|
|
65
|
-
122:9 warning Unexpected console statement no-console
|
|
66
|
-
125:5 warning Unexpected console statement no-console
|
|
19
|
+
5:8 warning Prefer named exports import/no-default-export
|
|
20
|
+
5:74 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
67
21
|
|
|
68
22
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/commands/util/docker-build.ts
|
|
69
|
-
|
|
70
|
-
31:17 warning Unexpected console statement no-console
|
|
23
|
+
7:8 warning Using exported name 'configs' as identifier for default export import/no-named-as-default
|
|
71
24
|
|
|
72
25
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/commands/util/exec.ts
|
|
73
|
-
|
|
74
|
-
17:8 warning Prefer named exports import/no-default-export
|
|
26
|
+
17:8 warning Prefer named exports import/no-default-export
|
|
75
27
|
|
|
76
28
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/commands/util/format-webpack-messages.ts
|
|
77
29
|
118:38 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
@@ -82,38 +34,23 @@
|
|
|
82
34
|
|
|
83
35
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/commands/util/run-client-dev-server.ts
|
|
84
36
|
10:85 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
85
|
-
12:54 warning Unexpected console statement no-console
|
|
86
37
|
13:53 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
87
|
-
27:13 warning Unexpected console statement no-console
|
|
88
38
|
29:19 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
89
|
-
31:13 warning Unexpected console statement no-console
|
|
90
39
|
|
|
91
40
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/commands/util/run-server-watch-compiler.ts
|
|
92
41
|
3:8 warning Using exported name 'configs' as identifier for default export import/no-named-as-default
|
|
93
|
-
9:54 warning Unexpected console statement no-console
|
|
94
|
-
10:54 warning Unexpected console statement no-console
|
|
95
42
|
11:53 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
96
43
|
|
|
97
44
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/app-configs/__tests__/update-with-presets.tests.ts
|
|
98
45
|
26:28 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
99
46
|
56:45 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
100
47
|
|
|
101
|
-
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/app-configs/__tests__/validate-settings-keys.tests.ts
|
|
102
|
-
17:16 warning Unexpected console statement no-console
|
|
103
|
-
|
|
104
48
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/app-configs/index.ts
|
|
105
49
|
32:8 warning Prefer named exports import/no-default-export
|
|
106
50
|
|
|
107
51
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/app-configs/types.ts
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/app-configs/update-with-env.ts
|
|
112
|
-
12:9 warning Unexpected console statement no-console
|
|
113
|
-
19:9 warning Unexpected console statement no-console
|
|
114
|
-
|
|
115
|
-
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/app-configs/validate-settings-keys.ts
|
|
116
|
-
11:13 warning Unexpected console statement no-console
|
|
52
|
+
98:17 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
53
|
+
121:17 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
117
54
|
|
|
118
55
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/babel-client.ts
|
|
119
56
|
69:8 warning Prefer named exports import/no-default-export
|
|
@@ -132,16 +69,12 @@
|
|
|
132
69
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/dev-server.ts
|
|
133
70
|
77:8 warning Prefer named exports import/no-default-export
|
|
134
71
|
|
|
135
|
-
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/jest/index.js
|
|
136
|
-
16:13 warning Unexpected console statement no-console
|
|
137
|
-
|
|
138
72
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/modules.ts
|
|
139
73
|
9:8 warning Using exported name 'configs' as identifier for default export import/no-named-as-default
|
|
140
74
|
19:5 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
|
|
141
75
|
19:5 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
117:5 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
|
|
76
|
+
35:5 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
|
|
77
|
+
126:54 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
145
78
|
|
|
146
79
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/postcss.ts
|
|
147
80
|
9:8 warning Prefer named exports import/no-default-export
|
|
@@ -167,17 +100,16 @@
|
|
|
167
100
|
53:83 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
168
101
|
|
|
169
102
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/util/apply-overrides.ts
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
26:
|
|
103
|
+
2:1 warning Run autofix to sort these imports! simple-import-sort/imports
|
|
104
|
+
6:8 warning Using exported name 'appConfigs' as identifier for default export import/no-named-as-default
|
|
105
|
+
26:12 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
173
106
|
27:18 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
174
|
-
28:
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
144:8 warning Prefer named exports import/no-default-export
|
|
107
|
+
28:18 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
108
|
+
29:24 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
109
|
+
36:14 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
110
|
+
49:38 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
111
|
+
127:48 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
112
|
+
150:8 warning Prefer named exports import/no-default-export
|
|
181
113
|
|
|
182
114
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/util/check-node-version.ts
|
|
183
115
|
7:8 warning Prefer named exports import/no-default-export
|
|
@@ -195,12 +127,6 @@
|
|
|
195
127
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/util/get-webpack-cache-dependencies.ts
|
|
196
128
|
1:8 warning Using exported name 'configs' as identifier for default export import/no-named-as-default
|
|
197
129
|
|
|
198
|
-
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/util/install-sourcemap-support.js
|
|
199
|
-
8:5 warning Unexpected console statement no-console
|
|
200
|
-
|
|
201
|
-
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/util/node-assets-ignore.js
|
|
202
|
-
24:9 warning Unexpected console statement no-console
|
|
203
|
-
|
|
204
130
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/webpack.client.dev.ts
|
|
205
131
|
16:8 warning Prefer named exports import/no-default-export
|
|
206
132
|
|
|
@@ -208,9 +134,9 @@
|
|
|
208
134
|
16:8 warning Prefer named exports import/no-default-export
|
|
209
135
|
|
|
210
136
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/webpack.client.ts
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
137
|
+
169:47 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
138
|
+
188:58 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
139
|
+
375:60 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
214
140
|
|
|
215
141
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/webpack.server.dev.ts
|
|
216
142
|
12:8 warning Prefer named exports import/no-default-export
|
|
@@ -219,16 +145,12 @@
|
|
|
219
145
|
12:8 warning Prefer named exports import/no-default-export
|
|
220
146
|
|
|
221
147
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/configs/webpack.server.ts
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
65:47 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
148
|
+
15:8 warning Using exported name 'configs' as identifier for default export import/no-named-as-default
|
|
149
|
+
66:47 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
225
150
|
|
|
226
151
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/plugins/postcss-prefix-selector.ts
|
|
227
152
|
38:79 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
228
153
|
|
|
229
|
-
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/plugins/reload-server-webpack-plugin.js
|
|
230
|
-
35:21 warning Unexpected console statement no-console
|
|
231
|
-
|
|
232
154
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/templates/dockerfile-compiled.template.ts
|
|
233
155
|
2:8 warning Using exported name 'configs' as identifier for default export import/no-named-as-default
|
|
234
156
|
48:8 warning Prefer named exports import/no-default-export
|
|
@@ -245,6 +167,6 @@
|
|
|
245
167
|
/home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/src/types.d.ts
|
|
246
168
|
4:12 warning Prefer named exports import/no-default-export
|
|
247
169
|
|
|
248
|
-
✖
|
|
249
|
-
0 errors and
|
|
170
|
+
✖ 76 problems (0 errors, 76 warnings)
|
|
171
|
+
0 errors and 2 warnings potentially fixable with the `--fix` option.
|
|
250
172
|
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
ts-jest[versions] (WARN) Version 5.6.3 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=4.3.0 <5.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
|
|
2
|
+
ts-jest[versions] (WARN) Version 5.6.3 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=4.3.0 <5.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
|
|
3
|
+
ts-jest[versions] (WARN) Version 5.6.3 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=4.3.0 <5.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
|
|
4
|
+
PASS src/configs/util/__tests__/get-polyfills.tests.ts (36.772 s)
|
|
5
|
+
PASS src/configs/app-configs/__tests__/update-with-presets.tests.ts (37.347 s)
|
|
3
6
|
PASS src/configs/util/__tests__/apply-overrides.tests.ts
|
|
4
7
|
PASS src/configs/app-configs/__tests__/update-with-env.tests.ts
|
|
5
8
|
PASS src/configs/app-configs/__tests__/update-with-package.tests.ts
|
|
@@ -8,10 +11,10 @@ Failed to load /home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts
|
|
|
8
11
|
Failed to load /home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/tsconfig.json: Missing baseUrl in compilerOptions
|
|
9
12
|
Failed to load /home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/tsconfig.json: Missing baseUrl in compilerOptions
|
|
10
13
|
Failed to load /home/runner/work/arui-scripts/arui-scripts/packages/arui-scripts/tsconfig.json: Missing baseUrl in compilerOptions
|
|
11
|
-
PASS src/configs/util/__tests__/find-plugin.tests.ts (
|
|
14
|
+
PASS src/configs/util/__tests__/find-plugin.tests.ts (44.567 s)
|
|
12
15
|
|
|
13
16
|
Test Suites: 7 passed, 7 total
|
|
14
17
|
Tests: 21 passed, 21 total
|
|
15
18
|
Snapshots: 0 total
|
|
16
|
-
Time:
|
|
19
|
+
Time: 46.184 s
|
|
17
20
|
Ran all test suites.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# [15.3.0](https://github.com/core-ds/arui-scripts/compare/v15.2.0...v15.3.0) (2023-06-30)
|
|
2
2
|
|
|
3
|
+
## 18.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#251](https://github.com/core-ds/arui-scripts/pull/251) [`7f628ef`](https://github.com/core-ds/arui-scripts/commit/7f628ef8b81285d80b41570be1ee8686b549a46b) Thanks [@heymdall-legal](https://github.com/heymdall-legal)! - Добавляем возможность использовать swc для загрузки кода в webpack и jest.
|
|
8
|
+
|
|
9
|
+
- Добавлена настройка `codeLoader` для выбора используемого загрузчика кода.
|
|
10
|
+
Настройка заменяет собой уже существовавшую `useTscLoader` и добавляет возможность использовать в качестве
|
|
11
|
+
загрузчика swc.
|
|
12
|
+
Использование swc значительно ускоряет сборку (до 2 раз), без особых негативных последствий.
|
|
13
|
+
|
|
14
|
+
- Добавлена настройка `jestCodeTransformer` для выбора обработчика кода для jest.
|
|
15
|
+
Заменяет собой `jestUseTsJest` и добавляет возможность использовать `@swc/jest`. swc в jest немного меняет поведение при использовании
|
|
16
|
+
spyOn для esm модулей.
|
|
17
|
+
|
|
18
|
+
- Флаг `useTscLoader` помечен как deprecated и будет удален в следующем мажорном релизе. Используйте `codeLoader: 'tsc'`.
|
|
19
|
+
- Флаг `jestUseTsJest` помечен как deprecated и будет удален в следующем мажорном релизе. Используйте `jestCodeTransformer: 'tsc'`.
|
|
20
|
+
- Флаг `webpack4Compatibility` помечен как deprecated и будет удален в следующем мажорном релизе.
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- [#277](https://github.com/core-ds/arui-scripts/pull/277) [`20e19ae`](https://github.com/core-ds/arui-scripts/commit/20e19aebabe69d6563ce2e0f6d7b9f5b71c6d16d) Thanks [@heymdall-legal](https://github.com/heymdall-legal)! - Из шаблона докерфайла убрана кирилица, которая ломала сборку на некоторых CI
|
|
25
|
+
|
|
26
|
+
## 18.0.0
|
|
27
|
+
|
|
28
|
+
### Major Changes
|
|
29
|
+
|
|
30
|
+
- [#271](https://github.com/core-ds/arui-scripts/pull/271) [`ccff520`](https://github.com/core-ds/arui-scripts/commit/ccff52095274dc558574d08002d31cc3ecda7fa2) Thanks [@Lecklark](https://github.com/Lecklark)! - Исправление настройки output.publicPath в конфиге webpack для compat модулей
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- [#273](https://github.com/core-ds/arui-scripts/pull/273) [`b96804d`](https://github.com/core-ds/arui-scripts/commit/b96804dfb2e34dd7008c4a93e7c1103cbda9615c) Thanks [@VladislavNsk](https://github.com/VladislavNsk)! - Добавлена возможность задавать css префикс для MF модулей
|
|
35
|
+
|
|
3
36
|
## 17.4.0
|
|
4
37
|
|
|
5
38
|
### Minor Changes
|
|
@@ -54,36 +54,31 @@ const changelogHeaderRegExp = /^###? \[\d+\.\d+\.\d+]\([^)]+\) \(\d{4}-\d{2}-\d{
|
|
|
54
54
|
});
|
|
55
55
|
try {
|
|
56
56
|
// eslint-disable-next-line no-restricted-syntax
|
|
57
|
-
for (var _d = true, rl_1 = __asyncValues(rl), rl_1_1; rl_1_1 = yield rl_1.next(), _a = rl_1_1.done, !_a;) {
|
|
57
|
+
for (var _d = true, rl_1 = __asyncValues(rl), rl_1_1; rl_1_1 = yield rl_1.next(), _a = rl_1_1.done, !_a; _d = true) {
|
|
58
58
|
_c = rl_1_1.value;
|
|
59
59
|
_d = false;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
60
|
+
const line = _c;
|
|
61
|
+
switch (modifyingStatus) {
|
|
62
|
+
// Копируем всё как есть до первого заголовка.
|
|
63
|
+
case 'PENDING':
|
|
64
|
+
if (changelogHeaderRegExp.test(line)) {
|
|
65
|
+
modifyingStatus = 'MODIFYING';
|
|
66
|
+
}
|
|
67
|
+
ws.write(`${line}\n`);
|
|
68
|
+
break;
|
|
69
|
+
// Игнорируем описание версии, сгенерированное пакетом `standard-version`, пишем своё
|
|
70
|
+
// до второго заголовка. См. описание задачи http://jira.moscow.alfaintra.net/browse/NEWCLICKUI-1048
|
|
71
|
+
case 'MODIFYING':
|
|
72
|
+
if (changelogHeaderRegExp.test(line)) {
|
|
73
|
+
modifyingStatus = 'MODIFIED';
|
|
74
|
+
yield addVersionDescription();
|
|
68
75
|
ws.write(`${line}\n`);
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
yield addVersionDescription();
|
|
76
|
-
ws.write(`${line}\n`);
|
|
77
|
-
}
|
|
78
|
-
break;
|
|
79
|
-
// Дальше просто копируем всё как есть.
|
|
80
|
-
case 'MODIFIED':
|
|
81
|
-
ws.write(`${line}\n`);
|
|
82
|
-
break;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
finally {
|
|
86
|
-
_d = true;
|
|
76
|
+
}
|
|
77
|
+
break;
|
|
78
|
+
// Дальше просто копируем всё как есть.
|
|
79
|
+
case 'MODIFIED':
|
|
80
|
+
ws.write(`${line}\n`);
|
|
81
|
+
break;
|
|
87
82
|
}
|
|
88
83
|
}
|
|
89
84
|
}
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = printCompilerOutput;
|
|
6
7
|
const chalk_1 = __importDefault(require("chalk"));
|
|
7
8
|
const stats_options_1 = __importDefault(require("../../configs/stats-options"));
|
|
8
9
|
function printCompilerOutput(compilerName, stats) {
|
|
@@ -13,4 +14,3 @@ function printCompilerOutput(compilerName, stats) {
|
|
|
13
14
|
.join('\n');
|
|
14
15
|
console.log(output);
|
|
15
16
|
}
|
|
16
|
-
exports.default = printCompilerOutput;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const app_configs_1 = require("../../configs/app-configs");
|
|
4
|
-
const tsc_1 = require("../util/tsc");
|
|
5
4
|
const run_compilers_1 = require("../util/run-compilers");
|
|
5
|
+
const tsc_1 = require("../util/tsc");
|
|
6
6
|
process.env.BROWSERSLIST_CONFIG =
|
|
7
7
|
process.env.BROWSERSLIST_CONFIG || require.resolve('../../../.browserslistrc');
|
|
8
8
|
const compilersCommands = [
|
|
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.calculateAssetsSizes = calculateAssetsSizes;
|
|
7
|
+
exports.printAssetsSizes = printAssetsSizes;
|
|
7
8
|
// TODO: remove eslint-disable-next-line
|
|
8
9
|
const fs_1 = __importDefault(require("fs"));
|
|
9
10
|
const path_1 = __importDefault(require("path"));
|
|
@@ -62,7 +63,6 @@ function calculateAssetsSizes(webpackStats, rootDir = '') {
|
|
|
62
63
|
assets,
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
|
-
exports.calculateAssetsSizes = calculateAssetsSizes;
|
|
66
66
|
function printAssetsSizes(sizes) {
|
|
67
67
|
const longestSizeLabelLength = Math.max.apply(null, sizes.assets.map((a) => {
|
|
68
68
|
const sizeLength = (0, strip_ansi_1.default)(a.gzipLabel).length;
|
|
@@ -80,4 +80,3 @@ function printAssetsSizes(sizes) {
|
|
|
80
80
|
});
|
|
81
81
|
console.log(`${chalk_1.default.blueBright('\nTotal size:\n')} ${sizes.totalSizes.sizeLabel} (${sizes.totalSizes.gzipLabel} gzip, ${sizes.totalSizes.brotliLabel} br)\n`);
|
|
82
82
|
}
|
|
83
|
-
exports.printAssetsSizes = printAssetsSizes;
|
|
@@ -12,7 +12,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.
|
|
15
|
+
exports.getBuildParamsFromArgs = getBuildParamsFromArgs;
|
|
16
|
+
exports.prepareFilesForDocker = prepareFilesForDocker;
|
|
17
|
+
exports.dockerVersionSatisfies = dockerVersionSatisfies;
|
|
18
|
+
exports.getDockerBuildCommand = getDockerBuildCommand;
|
|
16
19
|
const path_1 = __importDefault(require("path"));
|
|
17
20
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
18
21
|
const satisfies_1 = __importDefault(require("semver/functions/satisfies"));
|
|
@@ -50,9 +53,8 @@ function getBuildParamsFromArgs() {
|
|
|
50
53
|
tempDirName,
|
|
51
54
|
};
|
|
52
55
|
}
|
|
53
|
-
|
|
54
|
-
function
|
|
55
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
function prepareFilesForDocker(_a) {
|
|
57
|
+
return __awaiter(this, arguments, void 0, function* ({ dockerfileTemplate, nginxConfTemplate, startScriptTemplate, pathToTempDir, allowLocalDockerfile, allowLocalStartScript, addNodeModulesToDockerIgnore, }) {
|
|
56
58
|
yield fs_extra_1.default.emptyDir(pathToTempDir);
|
|
57
59
|
const nginxConf = app_configs_1.default.localNginxConf
|
|
58
60
|
? yield fs_extra_1.default.readFile(app_configs_1.default.localNginxConf, 'utf8')
|
|
@@ -79,7 +81,6 @@ function prepareFilesForDocker({ dockerfileTemplate, nginxConfTemplate, startScr
|
|
|
79
81
|
]);
|
|
80
82
|
});
|
|
81
83
|
}
|
|
82
|
-
exports.prepareFilesForDocker = prepareFilesForDocker;
|
|
83
84
|
function dockerVersionSatisfies(request) {
|
|
84
85
|
const dockerServerVersion = shelljs_1.default.exec("docker version --format '{{.Server.Version}}'", {
|
|
85
86
|
silent: true,
|
|
@@ -89,7 +90,6 @@ function dockerVersionSatisfies(request) {
|
|
|
89
90
|
});
|
|
90
91
|
return (0, satisfies_1.default)(dockerServerVersion.toString(), request) && (0, satisfies_1.default)(dockerClientVersion.toString(), request);
|
|
91
92
|
}
|
|
92
|
-
exports.dockerVersionSatisfies = dockerVersionSatisfies;
|
|
93
93
|
function getDockerBuildCommand({ tempDirName, imageFullName }) {
|
|
94
94
|
// если пытаться собрать проект на маках с m1, докер будет пытаться вытянуть базовый образ под свою платформу и
|
|
95
95
|
// упадет с ошибкой. Чтобы этого избежать - достаточно использовать флаг --platform. Но он поддерживается без экспериментальных
|
|
@@ -99,7 +99,6 @@ function getDockerBuildCommand({ tempDirName, imageFullName }) {
|
|
|
99
99
|
const canUsePlatformFlag = dockerVersionSatisfies('>=20.10.21');
|
|
100
100
|
return `docker build ${canUsePlatformFlag ? '--platform linux/x86_64' : ''} -f "./${tempDirName}/Dockerfile" --build-arg START_SH_LOCATION="./${tempDirName}/start.sh" --build-arg NGINX_CONF_LOCATION="./${tempDirName}/nginx.conf" -t ${imageFullName} .`;
|
|
101
101
|
}
|
|
102
|
-
exports.getDockerBuildCommand = getDockerBuildCommand;
|
|
103
102
|
function getAndModifyDockerIgnoreContent(dockerIgnoreFilePath) {
|
|
104
103
|
return __awaiter(this, void 0, void 0, function* () {
|
|
105
104
|
if (fs_extra_1.default.existsSync(dockerIgnoreFilePath)) {
|
|
@@ -12,7 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.runClientDevServer =
|
|
15
|
+
exports.runClientDevServer = runClientDevServer;
|
|
16
16
|
const WebpackDevServerUtils_1 = require("react-dev-utils/WebpackDevServerUtils");
|
|
17
17
|
const webpack_1 = __importDefault(require("webpack"));
|
|
18
18
|
const webpack_dev_server_1 = __importDefault(require("webpack-dev-server"));
|
|
@@ -44,4 +44,3 @@ function runClientDevServer(configuration) {
|
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
|
-
exports.runClientDevServer = runClientDevServer;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.runCompilers =
|
|
6
|
+
exports.runCompilers = runCompilers;
|
|
7
7
|
const child_process_1 = require("child_process");
|
|
8
8
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
9
9
|
const app_configs_1 = require("../../configs/app-configs");
|
|
@@ -35,4 +35,3 @@ function runCompilers(pathToCompilers) {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
exports.runCompilers = runCompilers;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.runServerWatchCompiler =
|
|
6
|
+
exports.runServerWatchCompiler = runServerWatchCompiler;
|
|
7
7
|
const webpack_1 = __importDefault(require("webpack"));
|
|
8
8
|
const app_configs_1 = __importDefault(require("../../configs/app-configs"));
|
|
9
9
|
const print_compiler_output_1 = __importDefault(require("../start/print-compiler-output"));
|
|
@@ -13,8 +13,7 @@ function runServerWatchCompiler(config) {
|
|
|
13
13
|
serverCompiler.hooks.invalid.tap('server', () => console.log('Compiling server...'));
|
|
14
14
|
serverCompiler.hooks.done.tap('server', (stats) => (0, print_compiler_output_1.default)('Server', stats));
|
|
15
15
|
serverCompiler.watch({
|
|
16
|
-
aggregateTimeout: 50,
|
|
16
|
+
aggregateTimeout: 50, // Делаем это значение меньше чем у клиента, чтобы сервер пересобирался быстрее
|
|
17
17
|
ignored: new RegExp(app_configs_1.default.watchIgnorePath.join('|')),
|
|
18
18
|
}, () => { });
|
|
19
19
|
}
|
|
20
|
-
exports.runServerWatchCompiler = runServerWatchCompiler;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getTscWatchCommand =
|
|
3
|
+
exports.getTscWatchCommand = getTscWatchCommand;
|
|
4
4
|
function getTscWatchCommand(tsconfig) {
|
|
5
5
|
return [
|
|
6
6
|
require.resolve('typescript/lib/tsc.js'),
|
|
@@ -11,4 +11,3 @@ function getTscWatchCommand(tsconfig) {
|
|
|
11
11
|
'--skipLibCheck',
|
|
12
12
|
];
|
|
13
13
|
}
|
|
14
|
-
exports.getTscWatchCommand = getTscWatchCommand;
|
|
@@ -3,7 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.getYarnVersion = getYarnVersion;
|
|
7
|
+
exports.getPruningCommand = getPruningCommand;
|
|
8
|
+
exports.getInstallProductionCommand = getInstallProductionCommand;
|
|
7
9
|
const shelljs_1 = __importDefault(require("shelljs"));
|
|
8
10
|
const app_configs_1 = require("../../configs/app-configs");
|
|
9
11
|
function getYarnVersion() {
|
|
@@ -14,7 +16,6 @@ function getYarnVersion() {
|
|
|
14
16
|
}
|
|
15
17
|
return 'unavailable';
|
|
16
18
|
}
|
|
17
|
-
exports.getYarnVersion = getYarnVersion;
|
|
18
19
|
function getPruningCommand() {
|
|
19
20
|
if (app_configs_1.configs.clientOnly) {
|
|
20
21
|
return 'echo "Skipping pruning in client only mode"';
|
|
@@ -35,7 +36,6 @@ function getPruningCommand() {
|
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
|
-
exports.getPruningCommand = getPruningCommand;
|
|
39
39
|
function getInstallProductionCommand() {
|
|
40
40
|
const yarnVersion = getYarnVersion();
|
|
41
41
|
switch (yarnVersion) {
|
|
@@ -53,4 +53,3 @@ function getInstallProductionCommand() {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
exports.getInstallProductionCommand = getInstallProductionCommand;
|