@eggjs/development 5.0.0-beta.14 → 5.0.0-beta.16
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/dist/config/config.default.d.ts +31 -14
- package/dist/config/config.default.js +0 -10
- package/dist/types.d.ts +13 -33
- package/package.json +5 -5
|
@@ -1,19 +1,36 @@
|
|
|
1
|
-
import { DevelopmentConfig } from "../types.js";
|
|
2
|
-
|
|
3
1
|
//#region src/config/config.default.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
interface DevelopmentConfig {
|
|
3
|
+
/**
|
|
4
|
+
* dirs needed watch, when files under these change, application will reload, use relative path
|
|
5
|
+
*/
|
|
6
|
+
watchDirs: string[];
|
|
7
|
+
/**
|
|
8
|
+
* dirs don't need watch, including subdirectories, use relative path
|
|
9
|
+
*/
|
|
10
|
+
ignoreDirs: string[];
|
|
11
|
+
/**
|
|
12
|
+
* don't wait all plugins ready, default is false.
|
|
13
|
+
*/
|
|
14
|
+
fastReady: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* whether reload on debug, default is true.
|
|
17
|
+
*/
|
|
18
|
+
reloadOnDebug: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* whether override default watchDirs, default is false.
|
|
21
|
+
*/
|
|
22
|
+
overrideDefault: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* whether override default ignoreDirs, default is false.
|
|
25
|
+
*/
|
|
26
|
+
overrideIgnore: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* whether to reload, use https://github.com/sindresorhus/multimatch
|
|
29
|
+
*/
|
|
30
|
+
reloadPattern?: string[] | string;
|
|
31
|
+
}
|
|
15
32
|
declare const _default: {
|
|
16
33
|
development: DevelopmentConfig;
|
|
17
34
|
};
|
|
18
35
|
//#endregion
|
|
19
|
-
export { _default as default };
|
|
36
|
+
export { DevelopmentConfig, _default as default };
|
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
//#region src/config/config.default.ts
|
|
2
|
-
/**
|
|
3
|
-
* @member Config#development
|
|
4
|
-
* @property {Array} watchDirs - dirs needed watch, when files under these change, application will reload, use relative path
|
|
5
|
-
* @property {Array} ignoreDirs - dirs don't need watch, including subdirectories, use relative path
|
|
6
|
-
* @property {Boolean} fastReady - don't wait all plugins ready, default is false.
|
|
7
|
-
* @property {Boolean} reloadOnDebug - whether reload on debug, default is true.
|
|
8
|
-
* @property {Boolean} overrideDefault - whether override default watchDirs, default is false.
|
|
9
|
-
* @property {Boolean} overrideIgnore - whether override default ignoreDirs, default is false.
|
|
10
|
-
* @property {Array|String} reloadPattern - whether to reload, use https://github.com/sindresorhus/multimatch
|
|
11
|
-
*/
|
|
12
2
|
var config_default_default = { development: {
|
|
13
3
|
watchDirs: [],
|
|
14
4
|
ignoreDirs: [],
|
package/dist/types.d.ts
CHANGED
|
@@ -1,38 +1,18 @@
|
|
|
1
|
+
import { DevelopmentConfig } from "./config/config.default.js";
|
|
2
|
+
|
|
1
3
|
//#region src/types.d.ts
|
|
2
|
-
interface DevelopmentConfig {
|
|
3
|
-
/**
|
|
4
|
-
* dirs needed watch, when files under these change, application will reload, use relative path
|
|
5
|
-
*/
|
|
6
|
-
watchDirs: string[];
|
|
7
|
-
/**
|
|
8
|
-
* dirs don't need watch, including subdirectories, use relative path
|
|
9
|
-
*/
|
|
10
|
-
ignoreDirs: string[];
|
|
11
|
-
/**
|
|
12
|
-
* don't wait all plugins ready, default is false.
|
|
13
|
-
*/
|
|
14
|
-
fastReady: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* whether reload on debug, default is true.
|
|
17
|
-
*/
|
|
18
|
-
reloadOnDebug: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* whether override default watchDirs, default is false.
|
|
21
|
-
*/
|
|
22
|
-
overrideDefault: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* whether override default ignoreDirs, default is false.
|
|
25
|
-
*/
|
|
26
|
-
overrideIgnore: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* whether to reload, use https://github.com/sindresorhus/multimatch
|
|
29
|
-
*/
|
|
30
|
-
reloadPattern?: string[] | string;
|
|
31
|
-
}
|
|
32
4
|
declare module 'egg' {
|
|
33
5
|
interface EggAppConfig {
|
|
6
|
+
/**
|
|
7
|
+
* @member Config#development
|
|
8
|
+
* @property {Array} watchDirs - dirs needed watch, when files under these change, application will reload, use relative path
|
|
9
|
+
* @property {Array} ignoreDirs - dirs don't need watch, including subdirectories, use relative path
|
|
10
|
+
* @property {Boolean} fastReady - don't wait all plugins ready, default is false.
|
|
11
|
+
* @property {Boolean} reloadOnDebug - whether reload on debug, default is true.
|
|
12
|
+
* @property {Boolean} overrideDefault - whether override default watchDirs, default is false.
|
|
13
|
+
* @property {Boolean} overrideIgnore - whether override default ignoreDirs, default is false.
|
|
14
|
+
* @property {Array|String} reloadPattern - whether to reload, use https://github.com/sindresorhus/multimatch
|
|
15
|
+
*/
|
|
34
16
|
development: DevelopmentConfig;
|
|
35
17
|
}
|
|
36
|
-
}
|
|
37
|
-
//#endregion
|
|
38
|
-
export { DevelopmentConfig };
|
|
18
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/development",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.16",
|
|
4
4
|
"description": "development tool for egg",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
"utility": "^2.5.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"egg": "4.1.0-beta.
|
|
46
|
+
"egg": "4.1.0-beta.16"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"tsdown": "^0.15.4",
|
|
50
50
|
"typescript": "5.9.2",
|
|
51
|
-
"@eggjs/
|
|
52
|
-
"@eggjs/supertest": "9.0.0-beta.
|
|
53
|
-
"@eggjs/
|
|
51
|
+
"@eggjs/mock": "7.0.0-beta.16",
|
|
52
|
+
"@eggjs/supertest": "9.0.0-beta.16",
|
|
53
|
+
"@eggjs/tsconfig": "3.1.0-beta.16"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|
|
56
56
|
"node": ">=22.18.0"
|