vona-cli-set-api 1.0.474 → 1.0.478
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/cli/templates/create/project/basic/boilerplate/.vscode/vona.code-snippets +24 -0
- package/cli/templates/create/project/basic/boilerplate/package.original.json +1 -1
- package/dist/index.js +8 -2
- package/dist/lib/bean/cli.tools.deps.d.ts +1 -1
- package/dist/lib/utils.d.ts +1 -1
- package/package.json +7 -7
|
@@ -320,5 +320,29 @@
|
|
|
320
320
|
"}"
|
|
321
321
|
],
|
|
322
322
|
"description": "record.jwtclient"
|
|
323
|
+
},
|
|
324
|
+
"record.socketnamespace": {
|
|
325
|
+
"scope": "typescript,typescriptreact",
|
|
326
|
+
"prefix": "recordsocketnamespace",
|
|
327
|
+
"body": [
|
|
328
|
+
"declare module 'vona-module-a-socket' {",
|
|
329
|
+
" export interface ISocketNamespaceRecord {",
|
|
330
|
+
" $0: never;",
|
|
331
|
+
" }",
|
|
332
|
+
"}"
|
|
333
|
+
],
|
|
334
|
+
"description": "record.socketnamespace"
|
|
335
|
+
},
|
|
336
|
+
"record.socketevent": {
|
|
337
|
+
"scope": "typescript,typescriptreact",
|
|
338
|
+
"prefix": "recordsocketevent",
|
|
339
|
+
"body": [
|
|
340
|
+
"declare module 'vona-module-a-socket' {",
|
|
341
|
+
" export interface ISocketEventRecord {",
|
|
342
|
+
" $0: never;",
|
|
343
|
+
" }",
|
|
344
|
+
"}"
|
|
345
|
+
],
|
|
346
|
+
"description": "record.socketevent"
|
|
323
347
|
}
|
|
324
348
|
}
|
package/dist/index.js
CHANGED
|
@@ -2041,9 +2041,12 @@ class CliToolsDeps extends BeanCliBase {
|
|
|
2041
2041
|
}
|
|
2042
2042
|
async _generate(projectPath) {
|
|
2043
2043
|
// generate zovaRest
|
|
2044
|
-
await this._generateZovaRest(projectPath);
|
|
2044
|
+
const needPnpmInstall = await this._generateZovaRest(projectPath);
|
|
2045
2045
|
// generate package.json
|
|
2046
|
-
await this.common._generatePackageJson(projectPath);
|
|
2046
|
+
const pnpmInstalled = await this.common._generatePackageJson(projectPath);
|
|
2047
|
+
if (needPnpmInstall && !pnpmInstalled) {
|
|
2048
|
+
await this.helper.pnpmInstall();
|
|
2049
|
+
}
|
|
2047
2050
|
// generate type modules file
|
|
2048
2051
|
await this.common._generateTypeModulesFile(projectPath);
|
|
2049
2052
|
// generate type project file
|
|
@@ -2068,6 +2071,7 @@ class CliToolsDeps extends BeanCliBase {
|
|
|
2068
2071
|
}
|
|
2069
2072
|
}
|
|
2070
2073
|
async _generateZovaRest(projectPath) {
|
|
2074
|
+
let needPnpmInstall = false;
|
|
2071
2075
|
const targetDir = path.join(projectPath, 'zovaRest');
|
|
2072
2076
|
for (const module of this.modulesMeta.modulesArray) {
|
|
2073
2077
|
const moduleZovaRest = path.join(module.root, 'zovaRest');
|
|
@@ -2091,8 +2095,10 @@ class CliToolsDeps extends BeanCliBase {
|
|
|
2091
2095
|
await fse.copy(moduleZovaRestSrc, moduleZovaRestDest, {
|
|
2092
2096
|
preserveTimestamps: true
|
|
2093
2097
|
});
|
|
2098
|
+
needPnpmInstall = true;
|
|
2094
2099
|
}
|
|
2095
2100
|
}
|
|
2101
|
+
return needPnpmInstall;
|
|
2096
2102
|
}
|
|
2097
2103
|
}
|
|
2098
2104
|
|
|
@@ -9,5 +9,5 @@ export declare class CliToolsDeps extends BeanCliBase {
|
|
|
9
9
|
_getProjectMode(projectPath: string): "source" | "project";
|
|
10
10
|
_getVonaPath(projectPath: string): string | undefined;
|
|
11
11
|
_generateTypeProjectFile(projectPath: string): Promise<void>;
|
|
12
|
-
_generateZovaRest(projectPath: string): Promise<
|
|
12
|
+
_generateZovaRest(projectPath: string): Promise<boolean>;
|
|
13
13
|
}
|
package/dist/lib/utils.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare function getEnvMeta(configMeta: VonaConfigMeta): {
|
|
|
4
4
|
mode: VonaMetaMode;
|
|
5
5
|
mine: string;
|
|
6
6
|
};
|
|
7
|
-
export declare function getNodeEnv(mode: VonaMetaMode): "
|
|
7
|
+
export declare function getNodeEnv(mode: VonaMetaMode): "development" | "production" | "test";
|
|
8
8
|
export declare function generateConfigDefine(env: any, translates?: string[]): {};
|
|
9
9
|
export declare function getAbsolutePathOfModule(id: string, postfix?: string): string;
|
|
10
10
|
export declare function requireModule(id: string): any;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vona-cli-set-api",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.478",
|
|
5
5
|
"description": "vona cli-set-api",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"@babel/plugin-proposal-decorators": "^7.25.9",
|
|
34
34
|
"@babel/plugin-transform-class-properties": "^7.25.9",
|
|
35
35
|
"@babel/plugin-transform-typescript": "^7.26.8",
|
|
36
|
-
"@cabloy/cli": "^3.0.
|
|
36
|
+
"@cabloy/cli": "^3.0.90",
|
|
37
37
|
"@cabloy/dotenv": "^1.1.12",
|
|
38
38
|
"@cabloy/extend": "^3.1.11",
|
|
39
|
-
"@cabloy/module-glob": "^5.2.
|
|
40
|
-
"@cabloy/module-info": "^1.3.
|
|
41
|
-
"@cabloy/utils": "^2.0.
|
|
39
|
+
"@cabloy/module-glob": "^5.2.49",
|
|
40
|
+
"@cabloy/module-info": "^1.3.35",
|
|
41
|
+
"@cabloy/utils": "^2.0.14",
|
|
42
42
|
"@cabloy/word-utils": "^2.0.2",
|
|
43
43
|
"@lcov-viewer/cli": "^1.3.0",
|
|
44
44
|
"@rollup/plugin-alias": "^5.1.1",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@rollup/plugin-terser": "^0.4.4",
|
|
51
51
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
52
52
|
"babel-plugin-transform-typescript-metadata": "^0.3.2",
|
|
53
|
-
"babel-plugin-vona-bean-module": "^1.0.
|
|
53
|
+
"babel-plugin-vona-bean-module": "^1.0.6",
|
|
54
54
|
"chalk": "^3.0.0",
|
|
55
55
|
"cli-table3": "^0.6.5",
|
|
56
56
|
"compressing": "^1.10.0",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"ts-node-maintained": "^10.9.6",
|
|
66
66
|
"urllib": "^4.6.11",
|
|
67
67
|
"uuid": "^11.1.0",
|
|
68
|
-
"vona-core": "^5.0.
|
|
68
|
+
"vona-core": "^5.0.127",
|
|
69
69
|
"why-is-node-running": "^3.2.2",
|
|
70
70
|
"yargs-parser": "^22.0.0"
|
|
71
71
|
},
|