@xarc/app-dev 11.0.1 → 11.0.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/config/opt2/add-on-features.d.ts +1 -1
- package/config/opt2/babel-options.d.ts +1 -1
- package/config/opt2/karma-options.d.ts +1 -1
- package/config/opt2/remote-federation.d.ts +2 -2
- package/config/opt2/webpack-options.d.ts +2 -2
- package/config/opt2/xarc-options.d.ts +2 -2
- package/lib/dev-admin/admin-http.d.ts +3 -3
- package/lib/dev-admin/admin-server.d.ts +1 -1
- package/lib/dev-admin/dev-http.d.ts +2 -2
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* See docs at https://webpack.js.org/concepts/module-federation/
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export type ModuleShareOptions = {
|
|
7
7
|
requiredVersion?: string;
|
|
8
8
|
import?: string;
|
|
9
9
|
shareKey?: string;
|
|
@@ -16,7 +16,7 @@ export declare type ModuleShareOptions = {
|
|
|
16
16
|
*
|
|
17
17
|
* See docs at https://webpack.js.org/concepts/module-federation/
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
19
|
+
export type RemoteSubAppOptions = {
|
|
20
20
|
/**
|
|
21
21
|
* Name of the remote entry.
|
|
22
22
|
*
|
|
@@ -3,7 +3,7 @@ import { RemoteSubAppOptions } from "./remote-federation";
|
|
|
3
3
|
* Options for CDN server.
|
|
4
4
|
*
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export type WebpackCdnOptions = {
|
|
7
7
|
/**
|
|
8
8
|
* Enable the use of a CDN server for serving assets.
|
|
9
9
|
*
|
|
@@ -29,7 +29,7 @@ export declare type WebpackCdnOptions = {
|
|
|
29
29
|
/**
|
|
30
30
|
* User configurable options that are related to Webpack
|
|
31
31
|
*/
|
|
32
|
-
export
|
|
32
|
+
export type WebpackOptions = {
|
|
33
33
|
/**
|
|
34
34
|
* Enable webpack dev mode. **Default: `false`**
|
|
35
35
|
* - If not set, then will check env `WEBPACK_DEV`
|
|
@@ -4,7 +4,7 @@ import { BabelOptions } from "./babel-options";
|
|
|
4
4
|
/**
|
|
5
5
|
* User facing options for configuring features
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export type XarcOptions = {
|
|
8
8
|
/**
|
|
9
9
|
* hostname to listen on for serving your application
|
|
10
10
|
*
|
|
@@ -110,7 +110,7 @@ export declare type XarcOptions = {
|
|
|
110
110
|
/**
|
|
111
111
|
* Internal options for configuring features base on user options
|
|
112
112
|
*/
|
|
113
|
-
export
|
|
113
|
+
export type XarcInternalOptions = XarcOptions & {
|
|
114
114
|
options: any;
|
|
115
115
|
webpack: any;
|
|
116
116
|
babel: any;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import http from "http";
|
|
5
5
|
import Url from "url";
|
|
6
6
|
import { Defer } from "xaa";
|
|
7
|
-
export
|
|
7
|
+
export type AdminHttpOptions = {
|
|
8
8
|
port?: number;
|
|
9
9
|
getLogs?: (name: string) => any;
|
|
10
10
|
};
|
|
@@ -17,11 +17,11 @@ export declare type AdminHttpOptions = {
|
|
|
17
17
|
* When client request logs, it's expected to send a query param `entryId` that's
|
|
18
18
|
* the stringified version in the format of "<tx>,<ts>"
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
type LogEntryId = {
|
|
21
21
|
ts: number;
|
|
22
22
|
tx?: number;
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
type EventClient = {
|
|
25
25
|
lastEntryId: LogEntryId;
|
|
26
26
|
res: http.ServerResponse;
|
|
27
27
|
};
|
|
@@ -5,8 +5,8 @@ export interface DevHttpServerOptions {
|
|
|
5
5
|
host: string;
|
|
6
6
|
protocol?: string;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
9
|
-
export
|
|
8
|
+
export type HttpRequestEvent = "connect" | "response" | "timeout" | "close" | "finish";
|
|
9
|
+
export type HttpServerEvent = "open" | "close" | "listening" | "error";
|
|
10
10
|
export interface DevHttpServer {
|
|
11
11
|
start: () => void;
|
|
12
12
|
stop: () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xarc/app-dev",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.2",
|
|
4
4
|
"description": "Electrode X application development support",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"homepage": "http://www.electrode.io",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@xarc/dev-base": "^0.1.0",
|
|
59
59
|
"@xarc/run": "^1.0.5",
|
|
60
60
|
"@xarc/subapp": "^0.3.4",
|
|
61
|
-
"@xarc/webpack": "^11.1.
|
|
61
|
+
"@xarc/webpack": "^11.1.4",
|
|
62
62
|
"ansi-to-html": "^0.7.2",
|
|
63
63
|
"babel-plugin-lodash": "^3.3.4",
|
|
64
64
|
"babel-plugin-minify-dead-code-elimination": "^0.5.2",
|