arui-scripts 13.3.1 → 13.4.0-feat-vite-dev-build.2
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/CHANGELOG.md +14 -0
- package/build/bin/index.js +1 -0
- package/build/commands/archive-build/index.js +3 -3
- package/build/commands/build/build-wrapper.d.ts +1 -1
- package/build/commands/build/build-wrapper.js +2 -2
- package/build/commands/build/client.js +4 -4
- package/build/commands/build/index.js +3 -3
- package/build/commands/build/server.js +2 -2
- package/build/commands/bundle-analyze/index.js +2 -2
- package/build/commands/docker-build/index.js +7 -7
- package/build/commands/docker-build-compiled/index.js +5 -5
- package/build/commands/start/client.js +3 -3
- package/build/commands/start/index.js +3 -3
- package/build/commands/start/server.js +2 -2
- package/build/commands/start-vite/client.d.ts +1 -0
- package/build/commands/start-vite/client.js +70 -0
- package/build/commands/start-vite/index.d.ts +1 -0
- package/build/commands/start-vite/index.js +25 -0
- package/build/commands/util/client-assets-sizes.d.ts +3 -3
- package/build/commands/util/client-assets-sizes.js +9 -9
- package/build/commands/util/docker-build.d.ts +1 -1
- package/build/commands/util/localhost-certs.d.ts +2 -0
- package/build/commands/util/localhost-certs.js +50 -0
- package/build/commands/util/start-http2-proxy-server.d.ts +7 -0
- package/build/commands/util/start-http2-proxy-server.js +40 -0
- package/build/commands/util/vite-proxy-utils.d.ts +64 -0
- package/build/commands/util/vite-proxy-utils.js +100 -0
- package/build/commands/util/yarn.d.ts +1 -1
- package/build/configs/app-configs/available-package-settings.d.ts +2 -2
- package/build/configs/app-configs/calculate-dependent-config.js +3 -3
- package/build/configs/app-configs/get-defaults.js +2 -1
- package/build/configs/app-configs/index.js +6 -6
- package/build/configs/app-configs/types.d.ts +2 -1
- package/build/configs/app-configs/update-with-config-file.js +3 -3
- package/build/configs/app-configs/update-with-env.js +2 -2
- package/build/configs/app-configs/update-with-package.js +2 -2
- package/build/configs/app-configs/update-with-presets.js +4 -4
- package/build/configs/babel-client.js +1 -1
- package/build/configs/babel-dependencies.js +1 -1
- package/build/configs/babel-server.js +1 -1
- package/build/configs/dev-server.js +1 -1
- package/build/configs/jest/file-transform.d.ts +1 -2
- package/build/configs/jest/index.d.ts +8 -8
- package/build/configs/postcss.config.d.ts +1 -1
- package/build/configs/postcss.js +1 -1
- package/build/configs/stats-options.js +1 -1
- package/build/configs/supporting-browsers.js +1 -1
- package/build/configs/util/apply-overrides.d.ts +6 -3
- package/build/configs/vite.config.d.ts +1 -0
- package/build/configs/vite.config.js +46 -0
- package/build/configs/vite.html-template.d.ts +1 -0
- package/build/configs/vite.html-template.js +16 -0
- package/build/configs/webpack.client.dev.js +7 -2
- package/build/configs/webpack.client.prod.js +5 -3
- package/build/configs/webpack.server.dev.js +3 -3
- package/build/configs/webpack.server.prod.js +3 -3
- package/build/index.js +1 -0
- package/build/templates/dockerfile-compiled.template.js +3 -3
- package/build/templates/dockerfile.template.js +1 -1
- package/build/templates/nginx.conf.template.js +1 -1
- package/build/templates/start.template.js +1 -1
- package/build/tsconfig-local.tsbuildinfo +1 -8816
- package/package.json +8 -2
|
@@ -27,7 +27,7 @@ function getSingleEntry(entryPoint) {
|
|
|
27
27
|
// This is the production configuration.
|
|
28
28
|
// It compiles slowly and is focused on producing a fast and minimal bundle.
|
|
29
29
|
// The development configuration is different and lives in a separate file.
|
|
30
|
-
const config = apply_overrides_1.default(['webpack', 'webpackServer', 'webpackProd', 'webpackServerProd'], {
|
|
30
|
+
const config = (0, apply_overrides_1.default)(['webpack', 'webpackServer', 'webpackProd', 'webpackServerProd'], {
|
|
31
31
|
mode: 'production',
|
|
32
32
|
// Don't attempt to continue if there are any errors.
|
|
33
33
|
bail: true,
|
|
@@ -38,7 +38,7 @@ const config = apply_overrides_1.default(['webpack', 'webpackServer', 'webpackPr
|
|
|
38
38
|
__filename: true,
|
|
39
39
|
__dirname: true
|
|
40
40
|
},
|
|
41
|
-
entry: get_entry_1.default(app_configs_1.default.serverEntry, getSingleEntry),
|
|
41
|
+
entry: (0, get_entry_1.default)(app_configs_1.default.serverEntry, getSingleEntry),
|
|
42
42
|
context: app_configs_1.default.cwd,
|
|
43
43
|
output: {
|
|
44
44
|
// Add /* filename */ comments to generated require()s in the output.
|
|
@@ -53,7 +53,7 @@ const config = apply_overrides_1.default(['webpack', 'webpackServer', 'webpackPr
|
|
|
53
53
|
.replace(/\\/g, '/'),
|
|
54
54
|
},
|
|
55
55
|
externalsPresets: { node: true },
|
|
56
|
-
externals: [webpack_node_externals_1.default({
|
|
56
|
+
externals: [(0, webpack_node_externals_1.default)({
|
|
57
57
|
allowlist: [
|
|
58
58
|
/^arui-feather/,
|
|
59
59
|
/^arui-ft-private/,
|
package/build/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getBuildParamsFromArgs = exports.prepareFilesForDocker = void 0;
|
|
3
4
|
var docker_build_1 = require("./commands/util/docker-build");
|
|
4
5
|
Object.defineProperty(exports, "prepareFilesForDocker", { enumerable: true, get: function () { return docker_build_1.prepareFilesForDocker; } });
|
|
5
6
|
var docker_build_2 = require("./commands/util/docker-build");
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const app_configs_1 = __importDefault(require("../configs/app-configs"));
|
|
7
7
|
const apply_overrides_1 = __importDefault(require("../configs/util/apply-overrides"));
|
|
8
8
|
const yarn_1 = require("../commands/util/yarn");
|
|
9
|
-
const installProductionCommand = yarn_1.getInstallProductionCommand();
|
|
10
|
-
const yarnVersion = yarn_1.getYarnVersion();
|
|
9
|
+
const installProductionCommand = (0, yarn_1.getInstallProductionCommand)();
|
|
10
|
+
const yarnVersion = (0, yarn_1.getYarnVersion)();
|
|
11
11
|
// В зависимости от используемого мендежера зависимостей для их установки нужно копировать разный набор файлов
|
|
12
12
|
const filesRequiredToInstallDependencies = [
|
|
13
13
|
'package.json',
|
|
@@ -44,4 +44,4 @@ RUN touch /var/run/nginx.pid && \
|
|
|
44
44
|
chown -R nginx:nginx /var/run/nginx.pid
|
|
45
45
|
USER nginx
|
|
46
46
|
`;
|
|
47
|
-
exports.default = apply_overrides_1.default('DockerfileCompiled', dockerfileTemplate);
|
|
47
|
+
exports.default = (0, apply_overrides_1.default)('DockerfileCompiled', dockerfileTemplate);
|
|
@@ -34,4 +34,4 @@ nginx &
|
|
|
34
34
|
# Start nodejs process
|
|
35
35
|
node --max-old-space-size="$node_memory_limit" ./${app_configs_1.default.buildPath}/${app_configs_1.default.serverOutput}
|
|
36
36
|
`;
|
|
37
|
-
exports.default = apply_overrides_1.default('start.sh', startTemplate);
|
|
37
|
+
exports.default = (0, apply_overrides_1.default)('start.sh', startTemplate);
|