@gravity-ui/app-builder 0.37.0 → 0.39.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/README.md
CHANGED
|
@@ -235,6 +235,7 @@ With this `{rootDir}/src/ui/tsconfig.json`:
|
|
|
235
235
|
- `ipc` (`string`) — the Unix socket to listen to. If `ipc` and `port` are not defined, then the socket `{rootDir}/dist/run/client.sock` is used.
|
|
236
236
|
- `port` (`number | true`) — specify a port number to listen for requests on. If `true`, the free port will be selected automatically.
|
|
237
237
|
- `webSocketPath` (`string`) — tells clients connected to devServer to use the provided path to connect. Default is `${publicPathPrefix}/build/sockjs-node`.
|
|
238
|
+
- `webSocketClientPort` (`number`) - tells clients to connect to devServer using this port from a browser. Default is `${devServer.port}`
|
|
238
239
|
- `type` (`'https'`) — allow to serve over HTTPS.
|
|
239
240
|
- `options` (`import('https').ServerOptions`) — allow to provide your own certificate.
|
|
240
241
|
- `watchOptions` — a set of options used to customize watch mode, [more](https://webpack.js.org/configuration/watch/#watchoptions)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import WebpackDevServer from 'webpack-dev-server';
|
|
2
2
|
import { RspackDevServer } from '@rspack/dev-server';
|
|
3
3
|
import type { NormalizedServiceConfig } from '../../common/models';
|
|
4
|
-
export declare function watchClientCompilation(config: NormalizedServiceConfig, onManifestReady: () => void): Promise<WebpackDevServer<import("express").Application, import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>> | RspackDevServer
|
|
4
|
+
export declare function watchClientCompilation(config: NormalizedServiceConfig, onManifestReady: () => void): Promise<WebpackDevServer<import("express").Application, import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>> | RspackDevServer<import("express").Application, import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>>>;
|
|
@@ -50,7 +50,7 @@ async function buildDevServer(config) {
|
|
|
50
50
|
const bundler = config.client.bundler;
|
|
51
51
|
const logger = new logger_1.Logger('client', config.verbose);
|
|
52
52
|
const { publicPath } = config.client;
|
|
53
|
-
const { webSocketPath = path.normalize(`/${publicPath}/sockjs-node`), writeToDisk, ...devServer } = config.client.devServer || {};
|
|
53
|
+
const { webSocketPath = path.normalize(`/${publicPath}/sockjs-node`), webSocketClientPort, writeToDisk, ...devServer } = config.client.devServer || {};
|
|
54
54
|
const normalizedConfig = { ...config.client, devServer: { ...devServer, webSocketPath } };
|
|
55
55
|
const isSsr = Boolean(normalizedConfig.ssr);
|
|
56
56
|
let webpackConfigs = [];
|
|
@@ -130,7 +130,7 @@ async function buildDevServer(config) {
|
|
|
130
130
|
hot: true,
|
|
131
131
|
client: {
|
|
132
132
|
logging: config.verbose ? 'log' : 'error',
|
|
133
|
-
webSocketURL: { pathname: webSocketPath },
|
|
133
|
+
webSocketURL: { pathname: webSocketPath, port: webSocketClientPort },
|
|
134
134
|
overlay: {
|
|
135
135
|
runtimeErrors: config.verbose,
|
|
136
136
|
warnings: config.verbose,
|
package/dist/create-cli.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ export declare function createCli(argv: string[]): {
|
|
|
3
3
|
[x: string]: unknown;
|
|
4
4
|
verbose: boolean | undefined;
|
|
5
5
|
cdn: string | undefined;
|
|
6
|
-
target: "client" | "server" | undefined;
|
|
7
6
|
env: string[] | undefined;
|
|
7
|
+
target: "client" | "server" | undefined;
|
|
8
8
|
c: unknown;
|
|
9
9
|
inspect: number | undefined;
|
|
10
10
|
inspectBrk: number | undefined;
|
|
@@ -33,8 +33,8 @@ export declare function createCli(argv: string[]): {
|
|
|
33
33
|
[x: string]: unknown;
|
|
34
34
|
verbose: boolean | undefined;
|
|
35
35
|
cdn: string | undefined;
|
|
36
|
-
target: "client" | "server" | undefined;
|
|
37
36
|
env: string[] | undefined;
|
|
37
|
+
target: "client" | "server" | undefined;
|
|
38
38
|
c: unknown;
|
|
39
39
|
inspect: number | undefined;
|
|
40
40
|
inspectBrk: number | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravity-ui/app-builder",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.39.0",
|
|
4
4
|
"description": "Develop and build your React client-server projects, powered by typescript and webpack",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
|
|
74
74
|
"@rsdoctor/rspack-plugin": "^1.0.2",
|
|
75
75
|
"@rsdoctor/webpack-plugin": "^1.0.2",
|
|
76
|
-
"@rspack/core": "1.
|
|
77
|
-
"@rspack/dev-server": "^1.1.
|
|
78
|
-
"@rspack/plugin-react-refresh": "^1.
|
|
76
|
+
"@rspack/core": "1.6.8",
|
|
77
|
+
"@rspack/dev-server": "^1.1.5",
|
|
78
|
+
"@rspack/plugin-react-refresh": "^1.6.0",
|
|
79
79
|
"@statoscope/stats": "^5.28.1",
|
|
80
80
|
"@statoscope/stats-extension-compressed": "^5.28.1",
|
|
81
81
|
"@statoscope/webpack-model": "^5.29.0",
|
|
@@ -83,9 +83,9 @@
|
|
|
83
83
|
"@svgr/core": "^8.1.0",
|
|
84
84
|
"@svgr/plugin-jsx": "^8.1.0",
|
|
85
85
|
"@svgr/webpack": "^8.1.0",
|
|
86
|
-
"@swc/cli": "0.7.
|
|
87
|
-
"@swc/core": "1.
|
|
88
|
-
"@swc/plugin-transform-imports": "
|
|
86
|
+
"@swc/cli": "0.7.10",
|
|
87
|
+
"@swc/core": "1.14.0",
|
|
88
|
+
"@swc/plugin-transform-imports": "10.0.0",
|
|
89
89
|
"babel-loader": "^9.2.1",
|
|
90
90
|
"babel-plugin-import": "^1.13.8",
|
|
91
91
|
"babel-plugin-inline-react-svg": "^2.0.2",
|