arui-scripts 22.2.0 → 22.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-test.log +5 -5
- package/CHANGELOG.md +12 -0
- package/build/configs/app-configs/get-defaults.js +3 -0
- package/build/configs/app-configs/types.d.ts +2 -0
- package/build/configs/webpack.server.js +1 -6
- package/build/index.d.ts +1 -1
- package/docs/settings.md +5 -0
- package/package.json +1 -1
- package/tsconfig-local.tsbuildinfo +1 -1
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
ts-jest[versions] (WARN) Version 6.0.2 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=4.3.0 <6.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
|
|
2
2
|
ts-jest[versions] (WARN) Version 6.0.2 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=4.3.0 <6.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
|
|
3
3
|
ts-jest[versions] (WARN) Version 6.0.2 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=4.3.0 <6.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
|
|
4
|
-
PASS src/configs/app-configs/__tests__/update-with-presets.tests.ts (24.
|
|
4
|
+
PASS src/configs/app-configs/__tests__/update-with-presets.tests.ts (24.151 s)
|
|
5
5
|
PASS src/configs/util/__tests__/create-watch-ignore-regex.tests.ts
|
|
6
6
|
PASS src/configs/util/__tests__/apply-overrides.tests.ts
|
|
7
|
+
PASS src/plugins/postcss-global-variables/utils/__tests__/add-global-variable.tests.ts (24.589 s)
|
|
7
8
|
PASS src/configs/app-configs/__tests__/update-with-env.tests.ts
|
|
8
9
|
PASS src/configs/app-configs/__tests__/update-with-package.tests.ts
|
|
9
10
|
PASS src/configs/util/__tests__/compress-with-dcb.test.ts
|
|
10
11
|
PASS src/configs/util/__tests__/get-polyfills.tests.ts
|
|
11
|
-
PASS src/plugins/postcss-global-variables/utils/__tests__/parse-variables.tests.ts
|
|
12
|
-
PASS src/plugins/postcss-global-variables/utils/__tests__/add-global-variable.tests.ts (25.852 s)
|
|
13
12
|
PASS src/plugins/postcss-global-variables/utils/__tests__/get-media-query-name.tests.ts
|
|
13
|
+
PASS src/plugins/postcss-global-variables/utils/__tests__/parse-variables.tests.ts
|
|
14
14
|
PASS src/configs/app-configs/__tests__/validate-settings-keys.tests.ts
|
|
15
|
-
PASS src/configs/util/__tests__/find-plugin.tests.ts (
|
|
15
|
+
PASS src/configs/util/__tests__/find-plugin.tests.ts (35.922 s)
|
|
16
16
|
A worker process has failed to exit gracefully and has been force exited. This is likely caused by tests leaking due to improper teardown. Try running with --detectOpenHandles to find leaks. Active timers can also cause this, ensure that .unref() was called on them.
|
|
17
17
|
|
|
18
18
|
Test Suites: 12 passed, 12 total
|
|
19
19
|
Tests: 30 passed, 30 total
|
|
20
20
|
Snapshots: 0 total
|
|
21
|
-
Time: 37.
|
|
21
|
+
Time: 37.378 s
|
|
22
22
|
Ran all test suites.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# arui-scripts
|
|
2
2
|
|
|
3
|
+
## 22.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#500](https://github.com/core-ds/arui-scripts/pull/500) [`c8662df`](https://github.com/core-ds/arui-scripts/commit/c8662df4ad59ee602069679ad80b8445513263ac) Thanks [@dmitrbrvsk](https://github.com/dmitrbrvsk)! - добавлен экспорт типа CompatModuleConfig
|
|
8
|
+
|
|
9
|
+
## 22.3.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#498](https://github.com/core-ds/arui-scripts/pull/498) [`807e9a8`](https://github.com/core-ds/arui-scripts/commit/807e9a85d8753611c7cfeb7c38fdede28a970901) Thanks [@qrik116](https://github.com/qrik116)! - Добавлена настройка `nodeExternals` для настройки **webpack-node-externals** в конфигурации сервера
|
|
14
|
+
|
|
3
15
|
## 22.2.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type DevTool, type Shared } from '@rspack/core';
|
|
2
2
|
import { type Configuration as DevServerConfiguration } from '@rspack/dev-server';
|
|
3
3
|
import { type PluginOptions as ReactCompilerOptions } from 'babel-plugin-react-compiler';
|
|
4
|
+
import type webpackNodeExternals from 'webpack-node-externals';
|
|
4
5
|
/**
|
|
5
6
|
* Конфигурация arui-scripts, которая может быть переопределена приложением
|
|
6
7
|
*/
|
|
@@ -86,6 +87,7 @@ export type AppConfigs = {
|
|
|
86
87
|
options?: ModuleConfigBase;
|
|
87
88
|
shareScope?: string;
|
|
88
89
|
} | null;
|
|
90
|
+
nodeExternals?: Omit<webpackNodeExternals.Options, 'allowlist'>;
|
|
89
91
|
};
|
|
90
92
|
export type ModuleConfigBase = {
|
|
91
93
|
cssPrefix?: false | string;
|
|
@@ -59,12 +59,7 @@ const createServerConfig = (mode) => ({
|
|
|
59
59
|
cache: mode === 'dev',
|
|
60
60
|
externalsPresets: { node: true },
|
|
61
61
|
externals: [
|
|
62
|
-
(0, webpack_node_externals_1.default)({
|
|
63
|
-
allowlist: server_externals_exemptions_1.serverExternalsExemptions,
|
|
64
|
-
// we cannot determine node_modules location before arui-scripts installation, so just load
|
|
65
|
-
// dependencies list from package.json
|
|
66
|
-
modulesFromFile: true,
|
|
67
|
-
}),
|
|
62
|
+
(0, webpack_node_externals_1.default)(Object.assign(Object.assign({}, app_configs_1.configs.nodeExternals), { allowlist: server_externals_exemptions_1.serverExternalsExemptions })),
|
|
68
63
|
],
|
|
69
64
|
optimization: {
|
|
70
65
|
minimize: false,
|
package/build/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { OverrideFile } from './configs/util/apply-overrides';
|
|
2
|
-
export type { AppConfigs, PackageSettings } from './configs/app-configs/types';
|
|
2
|
+
export type { AppConfigs, CompatModuleConfig, PackageSettings } from './configs/app-configs/types';
|
|
3
3
|
export { prepareFilesForDocker } from './commands/util/docker-build';
|
|
4
4
|
export { getBuildParamsFromArgs } from './commands/util/docker-build';
|
|
5
5
|
export { getDockerBuildCommand } from './commands/util/docker-build';
|
package/docs/settings.md
CHANGED
|
@@ -279,6 +279,11 @@ const packageSettings = {
|
|
|
279
279
|
Выключает проверку типов вебпаком во время разработки. По умолчанию `true`.
|
|
280
280
|
Вместо этого будет запускаться отдельный процесс `tsc`, который будет выдавать сообщения об ошибках в типах только в консоль.
|
|
281
281
|
|
|
282
|
+
#### nodeExternals
|
|
283
|
+
Настройки для `webpack-node-externals`, см. [документацию](https://www.npmjs.com/package/webpack-node-externals). По умолчанию `{ modulesFromFile: true }`.
|
|
284
|
+
|
|
285
|
+
`allowlist` настраивается через систему [оверайдов](overrides.md), свойство `serverExternalsExemptions`
|
|
286
|
+
|
|
282
287
|
### Обработка изображений
|
|
283
288
|
#### dataUrlMaxSize
|
|
284
289
|
Ресурсы, не превышающие данный размер (в байтах), будут включены в исходники `inline`, иначе вынесены в отдельный файл. По умолчанию `1536`.
|