@empjs/cli 3.0.0-beta.8 → 3.0.0-rc.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/client.d.ts +15 -22
- package/dist/helper/hmr/client.d.ts +0 -2
- package/dist/helper/hmr/config.d.ts +0 -14
- package/dist/helper/hmr/index.d.ts +0 -6
- package/dist/helper/hmr/overlay.d.ts +0 -6
- package/dist/helper/ipAddress.d.ts +27 -0
- package/dist/helper/logger.d.ts +0 -22
- package/dist/helper/utils.d.ts +3 -0
- package/dist/index.js +2476 -15
- package/dist/index.js.map +7 -0
- package/dist/script/base.d.ts +19 -4
- package/dist/script/dev.d.ts +3 -0
- package/dist/script/devServer.d.ts +0 -7
- package/dist/store/cycle/autoDevBase.d.ts +8 -0
- package/dist/store/empConfig.d.ts +12 -8
- package/dist/store/empShareLib.d.ts +19 -2
- package/dist/store/index.d.ts +9 -1
- package/dist/store/lifeCycle.d.ts +13 -5
- package/dist/store/rspack/css.d.ts +0 -8
- package/dist/store/rspack/hook.d.ts +22 -0
- package/dist/store/rspack/module.d.ts +11 -1
- package/dist/store/rspack/plugin.d.ts +1 -2
- package/dist/types/config.d.ts +66 -18
- package/package.json +111 -114
- package/template/index.html +12 -18
- package/dist/helper/prepareURLs.d.ts +0 -6
- package/dist/store/rspack/runtimePlugins.d.ts +0 -12
- package/dist/store/rspack/script.d.ts +0 -6
package/client.d.ts
CHANGED
|
@@ -41,13 +41,26 @@ declare module '*.webp' {
|
|
|
41
41
|
const src: string
|
|
42
42
|
export default src
|
|
43
43
|
}
|
|
44
|
-
|
|
45
44
|
declare module '*.svg' {
|
|
45
|
+
const src: string
|
|
46
|
+
export default src
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* declare module '*.svg' {
|
|
46
50
|
const ReactComponent: React.FC<React.SVGProps<SVGSVGElement>>
|
|
47
51
|
const content: string
|
|
48
|
-
|
|
49
52
|
export {ReactComponent}
|
|
50
53
|
export default content
|
|
54
|
+
} */
|
|
55
|
+
// declare module '*.svg?react' {
|
|
56
|
+
// const ReactComponent: React.FC<React.SVGProps<SVGSVGElement>>
|
|
57
|
+
// const content: string
|
|
58
|
+
// export {ReactComponent}
|
|
59
|
+
// export default content
|
|
60
|
+
// }
|
|
61
|
+
declare module '*.svg?react' {
|
|
62
|
+
const ReactComponent: React.FC<React.SVGProps<SVGSVGElement>>
|
|
63
|
+
export default ReactComponent
|
|
51
64
|
}
|
|
52
65
|
// styles
|
|
53
66
|
|
|
@@ -98,23 +111,3 @@ interface ImportMetaEnv {
|
|
|
98
111
|
interface ImportMeta {
|
|
99
112
|
readonly env: ImportMetaEnv
|
|
100
113
|
}
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* polyfill all `core-js` features, including early-stage proposals:
|
|
104
|
-
*/
|
|
105
|
-
// declare module 'core-js/full'
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* polyfill all actual features - stable ES, web standards and stage 3 ES proposals:
|
|
109
|
-
*/
|
|
110
|
-
// declare module 'core-js/actual'
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* polyfill only stable features - ES and web standards:
|
|
114
|
-
*/
|
|
115
|
-
// declare module 'core-js/stable'
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* polyfill only stable ES features:
|
|
119
|
-
*/
|
|
120
|
-
// declare module 'core-js/es'
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
path: string;
|
|
3
|
-
timeout: number;
|
|
4
|
-
overlay: boolean;
|
|
5
|
-
reload: boolean;
|
|
6
|
-
log: boolean;
|
|
7
|
-
warn: boolean;
|
|
8
|
-
name: string;
|
|
9
|
-
autoConnect: boolean;
|
|
10
|
-
overlayStyles: {};
|
|
11
|
-
overlayWarnings: boolean;
|
|
12
|
-
ansiColors: {};
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type IpAdressOpt = {
|
|
2
|
+
protocol?: string;
|
|
3
|
+
port?: number;
|
|
4
|
+
pathname?: string;
|
|
5
|
+
host?: string;
|
|
6
|
+
};
|
|
7
|
+
declare class IpAdress {
|
|
8
|
+
imf: {
|
|
9
|
+
protocol: string;
|
|
10
|
+
port: number;
|
|
11
|
+
pathname: string;
|
|
12
|
+
};
|
|
13
|
+
host: string;
|
|
14
|
+
urls: {
|
|
15
|
+
lanUrlForConfig: string;
|
|
16
|
+
lanUrlForTerminal: string;
|
|
17
|
+
localUrlForTerminal: string;
|
|
18
|
+
localUrlForBrowser: string;
|
|
19
|
+
};
|
|
20
|
+
setup(o: IpAdressOpt): void;
|
|
21
|
+
private setupUrls;
|
|
22
|
+
getLanIp: () => string;
|
|
23
|
+
formatUrl(hostname: string): string;
|
|
24
|
+
prettyPrintUrl(hostname: string): string;
|
|
25
|
+
}
|
|
26
|
+
declare const _default: IpAdress;
|
|
27
|
+
export default _default;
|
package/dist/helper/logger.d.ts
CHANGED
|
@@ -16,28 +16,6 @@ declare class Logger {
|
|
|
16
16
|
sysError: (msg: string) => void;
|
|
17
17
|
link: (msg: string) => string;
|
|
18
18
|
title: (msg: string) => void;
|
|
19
|
-
tableData: any;
|
|
20
|
-
tableConfig: {
|
|
21
|
-
border: {
|
|
22
|
-
topBody: string;
|
|
23
|
-
topJoin: string;
|
|
24
|
-
topLeft: string;
|
|
25
|
-
topRight: string;
|
|
26
|
-
bottomBody: string;
|
|
27
|
-
bottomJoin: string;
|
|
28
|
-
bottomLeft: string;
|
|
29
|
-
bottomRight: string;
|
|
30
|
-
bodyLeft: string;
|
|
31
|
-
bodyRight: string;
|
|
32
|
-
bodyJoin: string;
|
|
33
|
-
joinBody: string;
|
|
34
|
-
joinLeft: string;
|
|
35
|
-
joinRight: string;
|
|
36
|
-
joinJoin: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
tableInput(d: any): void;
|
|
40
|
-
tableOutput(): void;
|
|
41
19
|
}
|
|
42
20
|
declare const _default: Logger;
|
|
43
21
|
export default _default;
|
package/dist/helper/utils.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export declare const getLanIp: () => string;
|
|
2
|
+
export declare const getPkgVersion: (pkgPath: string) => any;
|
|
1
3
|
export declare function clearConsole(): void;
|
|
2
4
|
export declare function deepAssign<T>(target: any, ...sources: any): T;
|
|
3
5
|
export declare const ensureArray: <T>(params: T | T[]) => T[];
|
|
@@ -10,3 +12,4 @@ export declare const ensureArray: <T>(params: T | T[]) => T[];
|
|
|
10
12
|
export declare const jsonFilter: (d?: any, notIncludeKeys?: string[]) => any;
|
|
11
13
|
export declare const vCompare: (preVersion?: string, lastVersion?: string) => number;
|
|
12
14
|
export declare const timeFormat: (seconds: number) => string;
|
|
15
|
+
export declare const importJsVm: (content: string) => string;
|