arui-scripts 20.4.2 → 20.5.1
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
CHANGED
|
@@ -5,20 +5,20 @@ ts-jest[versions] (WARN) Version 29.7.0 of jest installed has not been tested wi
|
|
|
5
5
|
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.
|
|
6
6
|
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.
|
|
7
7
|
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.
|
|
8
|
-
PASS src/
|
|
8
|
+
PASS src/configs/app-configs/__tests__/update-with-presets.tests.ts (28.168 s)
|
|
9
9
|
PASS src/configs/util/__tests__/apply-overrides.tests.ts
|
|
10
|
-
PASS src/
|
|
10
|
+
PASS src/plugins/postcss-global-variables/utils/__tests__/add-global-variable.tests.ts (28.742 s)
|
|
11
11
|
PASS src/configs/app-configs/__tests__/update-with-env.tests.ts
|
|
12
12
|
PASS src/configs/app-configs/__tests__/update-with-package.tests.ts
|
|
13
13
|
PASS src/configs/util/__tests__/compress-with-dcb.test.ts
|
|
14
14
|
PASS src/configs/util/__tests__/get-polyfills.tests.ts
|
|
15
15
|
PASS src/plugins/postcss-global-variables/utils/__tests__/parse-variables.tests.ts
|
|
16
|
-
PASS src/configs/app-configs/__tests__/validate-settings-keys.tests.ts
|
|
17
16
|
PASS src/plugins/postcss-global-variables/utils/__tests__/get-media-query-name.tests.ts
|
|
18
|
-
PASS src/configs/
|
|
17
|
+
PASS src/configs/app-configs/__tests__/validate-settings-keys.tests.ts
|
|
18
|
+
PASS src/configs/util/__tests__/find-plugin.tests.ts (30.665 s)
|
|
19
19
|
|
|
20
20
|
Test Suites: 11 passed, 11 total
|
|
21
21
|
Tests: 25 passed, 25 total
|
|
22
22
|
Snapshots: 0 total
|
|
23
|
-
Time:
|
|
23
|
+
Time: 31.544 s
|
|
24
24
|
Ran all test suites.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
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
|
+
## 20.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#372](https://github.com/core-ds/arui-scripts/pull/372) [`d9ecb07`](https://github.com/core-ds/arui-scripts/commit/d9ecb071c09ed44938491f59c690d7e75ecf3510) Thanks [@dmitrbrvsk](https://github.com/dmitrbrvsk)! - Исправлен запуск команды arui-scripts bundle-analyze
|
|
8
|
+
|
|
9
|
+
## 20.5.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#369](https://github.com/core-ds/arui-scripts/pull/369) [`de2081f`](https://github.com/core-ds/arui-scripts/commit/de2081f4c73ba99e068ef1991400dbca2d68bb0c) Thanks [@dmitrbrvsk](https://github.com/dmitrbrvsk)! - добавлена настройка отключения кеширования remoteEntry.js в шаблон ngnix.conf
|
|
14
|
+
|
|
3
15
|
## 20.4.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -16,6 +16,7 @@ const app_configs_1 = require("../../configs/app-configs");
|
|
|
16
16
|
const webpack_client_prod_1 = require("../../configs/webpack.client.prod");
|
|
17
17
|
const make_tmp_dir_1 = require("../util/make-tmp-dir");
|
|
18
18
|
(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
console.log('Starting bundle analysis...');
|
|
19
20
|
const clientWebpackConfigs = Array.isArray(webpack_client_prod_1.webpackClientConfig)
|
|
20
21
|
? webpack_client_prod_1.webpackClientConfig
|
|
21
22
|
: [webpack_client_prod_1.webpackClientConfig];
|
|
@@ -28,11 +29,34 @@ const make_tmp_dir_1 = require("../util/make-tmp-dir");
|
|
|
28
29
|
generateStatsFile: true,
|
|
29
30
|
statsFilename: app_configs_1.configs.statsOutputPath,
|
|
30
31
|
analyzerPort: 'auto',
|
|
32
|
+
analyzerMode: 'server',
|
|
33
|
+
openAnalyzer: true,
|
|
34
|
+
logLevel: 'info',
|
|
31
35
|
}), // webpack-bundle-analyzer has incorrect types
|
|
32
36
|
new rspack_plugin_1.RsdoctorRspackPlugin({}),
|
|
33
37
|
];
|
|
34
38
|
webpackConfig.output = Object.assign(Object.assign({}, webpackConfig.output), { path: tmpDir });
|
|
35
39
|
}));
|
|
36
40
|
yield Promise.all(promises);
|
|
37
|
-
(0, core_1.rspack)(clientWebpackConfigs).run(() => {
|
|
41
|
+
(0, core_1.rspack)(clientWebpackConfigs).run((err, stats) => {
|
|
42
|
+
var _a, _b;
|
|
43
|
+
if (err) {
|
|
44
|
+
console.error('Bundle analysis failed with error: ', err);
|
|
45
|
+
process.exit(1);
|
|
46
|
+
}
|
|
47
|
+
if (stats) {
|
|
48
|
+
const hasErrors = (_a = stats.hasErrors) === null || _a === void 0 ? void 0 : _a.call(stats);
|
|
49
|
+
const hasWarnings = (_b = stats.hasWarnings) === null || _b === void 0 ? void 0 : _b.call(stats);
|
|
50
|
+
if (hasErrors || hasWarnings) {
|
|
51
|
+
console.log(stats.toString({
|
|
52
|
+
colors: true,
|
|
53
|
+
chunks: false,
|
|
54
|
+
modules: false,
|
|
55
|
+
children: false,
|
|
56
|
+
warnings: true,
|
|
57
|
+
errors: true,
|
|
58
|
+
}));
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
});
|
|
38
62
|
}))();
|
|
@@ -28,6 +28,16 @@ server {
|
|
|
28
28
|
root ${app_configs_1.configs.nginxRootPath}/${app_configs_1.configs.buildPath};
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
location = /${app_configs_1.configs.publicPath}remoteEntry.js {
|
|
32
|
+
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
|
|
33
|
+
add_header Pragma "no-cache";
|
|
34
|
+
add_header Expires "0";
|
|
35
|
+
root ${app_configs_1.configs.nginxRootPath}/${app_configs_1.configs.buildPath};
|
|
36
|
+
types {
|
|
37
|
+
text/javascript js;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
31
41
|
location ~ /${app_configs_1.configs.publicPath}.*\\.js$ {
|
|
32
42
|
expires max;
|
|
33
43
|
add_header Cache-Control public;
|