vona-cli-set-api 1.0.8 → 1.0.11
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/module/boilerplate/_package.json +27 -7
- package/cli/templates/create/module/boilerplate/_tsconfig.build.json +8 -0
- package/cli/templates/create/module/boilerplate/_tsconfig.json +2 -3
- package/cli/templates/create/module/snippets/package.json.ts +17 -0
- package/cli/templates/create/module/snippets/tsconfig.json.ts +19 -0
- package/cli/templates/create/project/basic/boilerplate/.editorconfig +9 -0
- package/cli/templates/create/project/basic/boilerplate/.gitattributes +2 -0
- package/cli/templates/create/project/basic/boilerplate/.vscode/extensions.json +4 -0
- package/cli/templates/create/project/basic/boilerplate/.vscode/settings.json +45 -0
- package/cli/templates/create/project/basic/boilerplate/.vscode/vona.code-snippets +51 -0
- package/cli/templates/create/project/basic/boilerplate/env/.env +59 -0
- package/cli/templates/create/project/basic/boilerplate/env/.env.local +0 -0
- package/cli/templates/create/project/basic/boilerplate/env/.env.prod +26 -0
- package/cli/templates/create/project/basic/boilerplate/env/.env.test +0 -0
- package/cli/templates/create/project/basic/boilerplate/eslint.config.mjs +16 -0
- package/cli/templates/create/project/basic/boilerplate/package.original.json +45 -0
- package/cli/templates/create/project/basic/boilerplate/pnpm-workspace.yaml +7 -0
- package/cli/templates/create/project/basic/boilerplate/scripts/app-init.sh +4 -0
- package/cli/templates/create/project/basic/boilerplate/scripts/wait-for-it.sh +156 -0
- package/cli/templates/create/project/basic/boilerplate/src/backend/config/config/config.local.ts +10 -0
- package/cli/templates/create/project/basic/boilerplate/src/backend/config/config/config.prod.ts +21 -0
- package/cli/templates/create/project/basic/boilerplate/src/backend/config/config/config.test.ts +10 -0
- package/cli/templates/create/project/basic/boilerplate/src/backend/config/config/config.ts +10 -0
- package/cli/templates/create/project/basic/boilerplate/src/backend/config/locale/en-us.ts +5 -0
- package/cli/templates/create/project/basic/boilerplate/src/backend/config/locale/zh-cn.ts +5 -0
- package/cli/templates/create/project/basic/boilerplate/src/backend/config/locales.ts +7 -0
- package/cli/templates/create/project/basic/boilerplate/src/backend/typing/env.d.ts +5 -0
- package/cli/templates/create/project/basic/boilerplate/src/module/.gitkeep +0 -0
- package/cli/templates/create/project/basic/boilerplate/src/module-vendor/.gitkeep +0 -0
- package/cli/templates/create/project/basic/boilerplate/src/suite/.gitkeep +0 -0
- package/cli/templates/create/project/basic/boilerplate/src/suite-vendor/.gitkeep +0 -0
- package/cli/templates/create/project/basic/boilerplate/tsconfig.base.esm.json +10 -0
- package/cli/templates/create/project/basic/boilerplate/tsconfig.base.json +3 -0
- package/cli/templates/create/project/basic/boilerplate/tsconfig.json +12 -0
- package/cli/templates/create/suite/_package.json +2 -2
- package/cli/templates/create/suite/_tsconfig.json +2 -2
- package/cli/templates/create/test/boilerplate/{{name}}.test.ts +11 -0
- package/cli/templates/init/config/boilerplate/config/config.ts +5 -0
- package/cli/templates/init/constant/boilerplate/config/constants.ts +1 -0
- package/cli/templates/init/error/boilerplate/config/errors.ts +1 -0
- package/cli/templates/init/locale/boilerplate/config/locale/en-us.ts +1 -0
- package/cli/templates/init/locale/boilerplate/config/locale/zh-cn.ts +1 -0
- package/cli/templates/init/main/boilerplate/main.ts +2 -1
- package/cli/templates/init/monkey/boilerplate/monkey.ts +3 -1
- package/cli/templates/init/static/boilerplate/static/img/vona.png +0 -0
- package/cli/templates/tools/crud/boilerplate/src/controller/{{resourceName}}.ts_ +43 -0
- package/cli/templates/tools/crud/boilerplate/src/dto/{{resourceName}}Create.ts_ +9 -0
- package/cli/templates/tools/crud/boilerplate/src/dto/{{resourceName}}Update.ts_ +9 -0
- package/cli/templates/tools/crud/boilerplate/src/entity/{{resourceName}}.ts_ +15 -0
- package/cli/templates/tools/crud/boilerplate/src/model/{{resourceName}}.ts_ +5 -0
- package/cli/templates/tools/crud/boilerplate/src/service/{{resourceName}}.ts_ +32 -0
- package/cli/templates/tools/crud/boilerplate/test/{{resourceName}}.test.ts_ +46 -0
- package/cli/templates/tools/crud/snippets/1-package.json.ts +16 -0
- package/cli/templates/tools/crud/snippets/2-meta.version.ts +42 -0
- package/cli/templates/tools/crud/snippets/3-en-us.ts +27 -0
- package/cli/templates/tools/crud/snippets/4-zh-cn.ts +10 -0
- package/cli/templates/tools/crud/utils.ts +20 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/lib/bean/cli.bin.build.d.ts +15 -0
- package/dist/lib/bean/cli.bin.build.js +139 -0
- package/dist/lib/bean/cli.bin.dbReset.d.ts +13 -0
- package/dist/lib/bean/cli.bin.dbReset.js +46 -0
- package/dist/lib/bean/cli.bin.demo.d.ts +12 -0
- package/dist/lib/bean/cli.bin.demo.js +50 -0
- package/dist/lib/bean/cli.bin.dev.d.ts +14 -0
- package/dist/lib/bean/cli.bin.dev.js +53 -0
- package/dist/lib/bean/cli.bin.test.d.ts +15 -0
- package/dist/lib/bean/cli.bin.test.js +67 -0
- package/dist/lib/bean/{cli.tools.build.d.ts → cli.bin.tsc.d.ts} +2 -3
- package/dist/lib/bean/{cli.tools.build.js → cli.bin.tsc.js} +13 -5
- package/dist/lib/bean/cli.create.bean.d.ts +3 -4
- package/dist/lib/bean/cli.create.bean.js +42 -28
- package/dist/lib/bean/cli.create.module.d.ts +1 -2
- package/dist/lib/bean/cli.create.module.js +3 -4
- package/dist/lib/bean/cli.create.project.d.ts +26 -0
- package/dist/lib/bean/cli.create.project.js +115 -0
- package/dist/lib/bean/cli.create.suite.d.ts +1 -2
- package/dist/lib/bean/cli.create.suite.js +5 -9
- package/dist/lib/bean/cli.create.test.d.ts +15 -0
- package/dist/lib/bean/cli.create.test.js +39 -0
- package/dist/lib/bean/cli.default.list.d.ts +0 -1
- package/dist/lib/bean/cli.default.list.js +0 -1
- package/dist/lib/bean/cli.init.config.d.ts +8 -0
- package/dist/lib/bean/cli.init.config.js +36 -0
- package/dist/lib/bean/cli.init.constant.d.ts +8 -0
- package/dist/lib/bean/cli.init.constant.js +36 -0
- package/dist/lib/bean/cli.init.error.d.ts +8 -0
- package/dist/lib/bean/cli.init.error.js +47 -0
- package/dist/lib/bean/cli.init.locale.d.ts +8 -0
- package/dist/lib/bean/cli.init.locale.js +36 -0
- package/dist/lib/bean/cli.init.main.d.ts +0 -1
- package/dist/lib/bean/cli.init.main.js +2 -3
- package/dist/lib/bean/cli.init.monkey.d.ts +0 -1
- package/dist/lib/bean/cli.init.monkey.js +8 -10
- package/dist/lib/bean/cli.init.static.d.ts +8 -0
- package/dist/lib/bean/cli.init.static.js +36 -0
- package/dist/lib/bean/cli.tools.crud.d.ts +15 -0
- package/dist/lib/bean/cli.tools.crud.js +42 -0
- package/dist/lib/bean/cli.tools.deps.d.ts +2 -10
- package/dist/lib/bean/cli.tools.deps.js +16 -123
- package/dist/lib/bean/cli.tools.metadata.d.ts +1 -1
- package/dist/lib/bean/cli.tools.metadata.js +71 -32
- package/dist/lib/bean/toolsBin/configUtils.d.ts +7 -0
- package/dist/lib/bean/toolsBin/configUtils.js +56 -0
- package/dist/lib/bean/toolsBin/dbReset.d.ts +1 -0
- package/dist/lib/bean/toolsBin/dbReset.js +8 -0
- package/dist/lib/bean/toolsBin/demo.d.ts +1 -0
- package/dist/lib/bean/toolsBin/demo.js +41 -0
- package/dist/lib/bean/toolsBin/generateEntryFiles.d.ts +4 -0
- package/dist/lib/bean/toolsBin/generateEntryFiles.js +75 -0
- package/dist/lib/bean/toolsBin/generateVonaMeta.d.ts +10 -0
- package/dist/lib/bean/toolsBin/generateVonaMeta.js +17 -0
- package/dist/lib/bean/toolsBin/test.d.ts +1 -0
- package/dist/lib/bean/toolsBin/test.js +121 -0
- package/dist/lib/bean/toolsBin/types.d.ts +5 -0
- package/dist/lib/bean/toolsBin/types.js +1 -0
- package/dist/lib/bean/toolsMetadata/generateBeanGenerals.d.ts +2 -0
- package/dist/lib/bean/toolsMetadata/generateBeanGenerals.js +33 -0
- package/dist/lib/bean/toolsMetadata/generateBeans.d.ts +2 -2
- package/dist/lib/bean/toolsMetadata/generateBeans.js +33 -21
- package/dist/lib/bean/toolsMetadata/generateConfig.d.ts +3 -4
- package/dist/lib/bean/toolsMetadata/generateConfig.js +12 -14
- package/dist/lib/bean/toolsMetadata/generateMetadataCustom.d.ts +3 -0
- package/dist/lib/bean/toolsMetadata/generateMetadataCustom.js +23 -0
- package/dist/lib/bean/toolsMetadata/generateMonkey.d.ts +2 -3
- package/dist/lib/bean/toolsMetadata/generateMonkey.js +3 -4
- package/dist/lib/bean/toolsMetadata/generateOnions.d.ts +2 -0
- package/dist/lib/bean/toolsMetadata/generateOnions.js +90 -0
- package/dist/lib/bean/toolsMetadata/generateScope.d.ts +1 -4
- package/dist/lib/bean/toolsMetadata/generateScope.js +43 -16
- package/dist/lib/bean/toolsMetadata/generateScopeResources.d.ts +2 -0
- package/dist/lib/bean/toolsMetadata/generateScopeResources.js +29 -0
- package/dist/lib/bean/toolsMetadata/generateScopeResourcesMeta.d.ts +2 -0
- package/dist/lib/bean/toolsMetadata/generateScopeResourcesMeta.js +13 -0
- package/dist/lib/bean/toolsMetadata/utils.d.ts +9 -0
- package/dist/lib/bean/toolsMetadata/utils.js +82 -0
- package/dist/lib/beans.d.ts +36 -11
- package/dist/lib/beans.js +36 -11
- package/dist/lib/command/bin.build.d.ts +19 -0
- package/dist/lib/command/bin.build.js +18 -0
- package/dist/lib/command/bin.dbReset.d.ts +15 -0
- package/dist/lib/command/bin.dbReset.js +14 -0
- package/dist/lib/command/bin.demo.d.ts +15 -0
- package/dist/lib/command/bin.demo.js +14 -0
- package/dist/lib/command/bin.dev.d.ts +19 -0
- package/dist/lib/command/bin.dev.js +18 -0
- package/dist/lib/command/bin.test.d.ts +19 -0
- package/dist/lib/command/bin.test.js +18 -0
- package/dist/lib/command/{tools.build.d.ts → bin.tsc.d.ts} +0 -1
- package/dist/lib/command/{tools.build.js → bin.tsc.js} +3 -4
- package/dist/lib/command/create.bean.d.ts +0 -1
- package/dist/lib/command/create.bean.js +0 -1
- package/dist/lib/command/create.module.d.ts +0 -1
- package/dist/lib/command/create.module.js +0 -1
- package/dist/lib/command/create.project.d.ts +45 -0
- package/dist/lib/command/create.project.js +43 -0
- package/dist/lib/command/create.suite.d.ts +0 -1
- package/dist/lib/command/create.suite.js +0 -1
- package/dist/lib/command/create.test.d.ts +34 -0
- package/dist/lib/command/create.test.js +33 -0
- package/dist/lib/command/default.list.d.ts +0 -1
- package/dist/lib/command/default.list.js +0 -1
- package/dist/lib/command/init.config.d.ts +9 -0
- package/dist/lib/command/init.config.js +10 -0
- package/dist/lib/command/init.constant.d.ts +9 -0
- package/dist/lib/command/init.constant.js +10 -0
- package/dist/lib/command/init.error.d.ts +9 -0
- package/dist/lib/command/init.error.js +10 -0
- package/dist/lib/command/init.locale.d.ts +9 -0
- package/dist/lib/command/init.locale.js +10 -0
- package/dist/lib/command/init.main.d.ts +0 -1
- package/dist/lib/command/init.main.js +0 -1
- package/dist/lib/command/init.monkey.d.ts +0 -1
- package/dist/lib/command/init.monkey.js +0 -1
- package/dist/lib/command/init.static.d.ts +9 -0
- package/dist/lib/command/init.static.js +10 -0
- package/dist/lib/command/tools.crud.d.ts +34 -0
- package/dist/lib/command/tools.crud.js +33 -0
- package/dist/lib/command/tools.deps.d.ts +1 -11
- package/dist/lib/command/tools.deps.js +2 -12
- package/dist/lib/command/tools.metadata.d.ts +0 -1
- package/dist/lib/command/tools.metadata.js +0 -1
- package/dist/lib/commands.d.ts +237 -13
- package/dist/lib/commands.js +38 -11
- package/dist/lib/this.d.ts +0 -1
- package/dist/lib/this.js +0 -1
- package/dist/lib/utils.d.ts +15 -0
- package/dist/lib/utils.js +63 -0
- package/dist/typings.d.ts +0 -1
- package/dist/typings.js +0 -1
- package/package.json +50 -26
- package/templates/app/app.ejs +15 -0
- package/templates/app/bootstrap.ejs +13 -0
- package/templates/app/vona-modules-meta.ejs +49 -0
- package/templates/config/_tsconfig_project.json +12 -0
- package/templates/config/_tsconfig_source.json +40 -0
- package/templates/test/done-only.test.ts +3 -0
- package/templates/test/done.test.ts +3 -0
- package/cli/templates/create/bean/boilerplate/{{sceneName}}.{{beanName}}.ts_ +0 -4
- package/cli/templates/create/module/snippets/package.json.cjs +0 -11
- package/cli/templates/create/module/snippets/tsconfig.json.cjs +0 -13
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lib/bean/cli.create.bean.d.ts.map +0 -1
- package/dist/lib/bean/cli.create.bean.js.map +0 -1
- package/dist/lib/bean/cli.create.module.d.ts.map +0 -1
- package/dist/lib/bean/cli.create.module.js.map +0 -1
- package/dist/lib/bean/cli.create.suite.d.ts.map +0 -1
- package/dist/lib/bean/cli.create.suite.js.map +0 -1
- package/dist/lib/bean/cli.default.list.d.ts.map +0 -1
- package/dist/lib/bean/cli.default.list.js.map +0 -1
- package/dist/lib/bean/cli.init.main.d.ts.map +0 -1
- package/dist/lib/bean/cli.init.main.js.map +0 -1
- package/dist/lib/bean/cli.init.monkey.d.ts.map +0 -1
- package/dist/lib/bean/cli.init.monkey.js.map +0 -1
- package/dist/lib/bean/cli.tools.build.d.ts.map +0 -1
- package/dist/lib/bean/cli.tools.build.js.map +0 -1
- package/dist/lib/bean/cli.tools.deps.d.ts.map +0 -1
- package/dist/lib/bean/cli.tools.deps.js.map +0 -1
- package/dist/lib/bean/cli.tools.metadata.d.ts.map +0 -1
- package/dist/lib/bean/cli.tools.metadata.js.map +0 -1
- package/dist/lib/bean/toolsMetadata/generateAtoms.d.ts +0 -2
- package/dist/lib/bean/toolsMetadata/generateAtoms.d.ts.map +0 -1
- package/dist/lib/bean/toolsMetadata/generateAtoms.js +0 -24
- package/dist/lib/bean/toolsMetadata/generateAtoms.js.map +0 -1
- package/dist/lib/bean/toolsMetadata/generateBeans.d.ts.map +0 -1
- package/dist/lib/bean/toolsMetadata/generateBeans.js.map +0 -1
- package/dist/lib/bean/toolsMetadata/generateConfig.d.ts.map +0 -1
- package/dist/lib/bean/toolsMetadata/generateConfig.js.map +0 -1
- package/dist/lib/bean/toolsMetadata/generateControllers.d.ts +0 -2
- package/dist/lib/bean/toolsMetadata/generateControllers.d.ts.map +0 -1
- package/dist/lib/bean/toolsMetadata/generateControllers.js +0 -24
- package/dist/lib/bean/toolsMetadata/generateControllers.js.map +0 -1
- package/dist/lib/bean/toolsMetadata/generateEntities.d.ts +0 -2
- package/dist/lib/bean/toolsMetadata/generateEntities.d.ts.map +0 -1
- package/dist/lib/bean/toolsMetadata/generateEntities.js +0 -24
- package/dist/lib/bean/toolsMetadata/generateEntities.js.map +0 -1
- package/dist/lib/bean/toolsMetadata/generateModels.d.ts +0 -2
- package/dist/lib/bean/toolsMetadata/generateModels.d.ts.map +0 -1
- package/dist/lib/bean/toolsMetadata/generateModels.js +0 -34
- package/dist/lib/bean/toolsMetadata/generateModels.js.map +0 -1
- package/dist/lib/bean/toolsMetadata/generateMonkey.d.ts.map +0 -1
- package/dist/lib/bean/toolsMetadata/generateMonkey.js.map +0 -1
- package/dist/lib/bean/toolsMetadata/generateScope.d.ts.map +0 -1
- package/dist/lib/bean/toolsMetadata/generateScope.js.map +0 -1
- package/dist/lib/bean/toolsMetadata/generateServices.d.ts +0 -2
- package/dist/lib/bean/toolsMetadata/generateServices.d.ts.map +0 -1
- package/dist/lib/bean/toolsMetadata/generateServices.js +0 -54
- package/dist/lib/bean/toolsMetadata/generateServices.js.map +0 -1
- package/dist/lib/beans.d.ts.map +0 -1
- package/dist/lib/beans.js.map +0 -1
- package/dist/lib/command/create.bean.d.ts.map +0 -1
- package/dist/lib/command/create.bean.js.map +0 -1
- package/dist/lib/command/create.module.d.ts.map +0 -1
- package/dist/lib/command/create.module.js.map +0 -1
- package/dist/lib/command/create.suite.d.ts.map +0 -1
- package/dist/lib/command/create.suite.js.map +0 -1
- package/dist/lib/command/default.list.d.ts.map +0 -1
- package/dist/lib/command/default.list.js.map +0 -1
- package/dist/lib/command/init.main.d.ts.map +0 -1
- package/dist/lib/command/init.main.js.map +0 -1
- package/dist/lib/command/init.monkey.d.ts.map +0 -1
- package/dist/lib/command/init.monkey.js.map +0 -1
- package/dist/lib/command/tools.build.d.ts.map +0 -1
- package/dist/lib/command/tools.build.js.map +0 -1
- package/dist/lib/command/tools.deps.d.ts.map +0 -1
- package/dist/lib/command/tools.deps.js.map +0 -1
- package/dist/lib/command/tools.metadata.d.ts.map +0 -1
- package/dist/lib/command/tools.metadata.js.map +0 -1
- package/dist/lib/commands.d.ts.map +0 -1
- package/dist/lib/commands.js.map +0 -1
- package/dist/lib/this.d.ts.map +0 -1
- package/dist/lib/this.js.map +0 -1
- package/dist/typings.d.ts.map +0 -1
- package/dist/typings.js.map +0 -1
package/dist/lib/commands.d.ts
CHANGED
|
@@ -19,6 +19,104 @@ export declare const commands: {
|
|
|
19
19
|
groups: null;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
+
bin: {
|
|
23
|
+
build: {
|
|
24
|
+
bean: string;
|
|
25
|
+
info: {
|
|
26
|
+
version: string;
|
|
27
|
+
title: string;
|
|
28
|
+
usage: string;
|
|
29
|
+
};
|
|
30
|
+
options: {
|
|
31
|
+
workers: {
|
|
32
|
+
description: string;
|
|
33
|
+
type: string;
|
|
34
|
+
};
|
|
35
|
+
flavor: {
|
|
36
|
+
description: string;
|
|
37
|
+
type: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
dbReset: {
|
|
42
|
+
bean: string;
|
|
43
|
+
info: {
|
|
44
|
+
version: string;
|
|
45
|
+
title: string;
|
|
46
|
+
usage: string;
|
|
47
|
+
};
|
|
48
|
+
options: {
|
|
49
|
+
flavor: {
|
|
50
|
+
description: string;
|
|
51
|
+
type: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
demo: {
|
|
56
|
+
bean: string;
|
|
57
|
+
info: {
|
|
58
|
+
version: string;
|
|
59
|
+
title: string;
|
|
60
|
+
usage: string;
|
|
61
|
+
};
|
|
62
|
+
options: {
|
|
63
|
+
flavor: {
|
|
64
|
+
description: string;
|
|
65
|
+
type: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
dev: {
|
|
70
|
+
bean: string;
|
|
71
|
+
info: {
|
|
72
|
+
version: string;
|
|
73
|
+
title: string;
|
|
74
|
+
usage: string;
|
|
75
|
+
};
|
|
76
|
+
options: {
|
|
77
|
+
workers: {
|
|
78
|
+
description: string;
|
|
79
|
+
type: string;
|
|
80
|
+
};
|
|
81
|
+
flavor: {
|
|
82
|
+
description: string;
|
|
83
|
+
type: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
test: {
|
|
88
|
+
bean: string;
|
|
89
|
+
info: {
|
|
90
|
+
version: string;
|
|
91
|
+
title: string;
|
|
92
|
+
usage: string;
|
|
93
|
+
};
|
|
94
|
+
options: {
|
|
95
|
+
coverage: {
|
|
96
|
+
description: string;
|
|
97
|
+
type: string;
|
|
98
|
+
};
|
|
99
|
+
flavor: {
|
|
100
|
+
description: string;
|
|
101
|
+
type: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
tsc: {
|
|
106
|
+
bean: string;
|
|
107
|
+
info: {
|
|
108
|
+
version: string;
|
|
109
|
+
title: string;
|
|
110
|
+
usage: string;
|
|
111
|
+
};
|
|
112
|
+
options: {
|
|
113
|
+
force: {
|
|
114
|
+
description: string;
|
|
115
|
+
type: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
};
|
|
22
120
|
create: {
|
|
23
121
|
suite: {
|
|
24
122
|
bean: string;
|
|
@@ -95,6 +193,50 @@ export declare const commands: {
|
|
|
95
193
|
};
|
|
96
194
|
};
|
|
97
195
|
};
|
|
196
|
+
project: {
|
|
197
|
+
bean: string;
|
|
198
|
+
info: {
|
|
199
|
+
version: string;
|
|
200
|
+
title: string;
|
|
201
|
+
usage: string;
|
|
202
|
+
};
|
|
203
|
+
options: {
|
|
204
|
+
template: {
|
|
205
|
+
description: string;
|
|
206
|
+
type: string;
|
|
207
|
+
};
|
|
208
|
+
force: {
|
|
209
|
+
description: string;
|
|
210
|
+
type: string;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
groups: {
|
|
214
|
+
default: {
|
|
215
|
+
questions: {
|
|
216
|
+
template: {
|
|
217
|
+
type: string;
|
|
218
|
+
message: string;
|
|
219
|
+
choices: {
|
|
220
|
+
name: string;
|
|
221
|
+
message: string;
|
|
222
|
+
}[];
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
moduleInfo: {
|
|
227
|
+
questions: {
|
|
228
|
+
name: {
|
|
229
|
+
type: string;
|
|
230
|
+
message: string;
|
|
231
|
+
initial: {
|
|
232
|
+
expression: string;
|
|
233
|
+
};
|
|
234
|
+
required: boolean;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
};
|
|
98
240
|
bean: {
|
|
99
241
|
bean: string;
|
|
100
242
|
info: {
|
|
@@ -136,8 +278,73 @@ export declare const commands: {
|
|
|
136
278
|
};
|
|
137
279
|
};
|
|
138
280
|
};
|
|
281
|
+
test: {
|
|
282
|
+
bean: string;
|
|
283
|
+
info: {
|
|
284
|
+
version: string;
|
|
285
|
+
title: string;
|
|
286
|
+
usage: string;
|
|
287
|
+
};
|
|
288
|
+
options: {
|
|
289
|
+
module: {
|
|
290
|
+
description: string;
|
|
291
|
+
type: string;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
groups: {
|
|
295
|
+
default: {
|
|
296
|
+
questions: {
|
|
297
|
+
name: {
|
|
298
|
+
type: string;
|
|
299
|
+
message: string;
|
|
300
|
+
initial: {
|
|
301
|
+
expression: string;
|
|
302
|
+
};
|
|
303
|
+
required: boolean;
|
|
304
|
+
};
|
|
305
|
+
module: {
|
|
306
|
+
type: string;
|
|
307
|
+
message: string;
|
|
308
|
+
required: boolean;
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
};
|
|
139
314
|
};
|
|
140
315
|
init: {
|
|
316
|
+
config: {
|
|
317
|
+
bean: string;
|
|
318
|
+
info: {
|
|
319
|
+
version: string;
|
|
320
|
+
title: string;
|
|
321
|
+
usage: string;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
locale: {
|
|
325
|
+
bean: string;
|
|
326
|
+
info: {
|
|
327
|
+
version: string;
|
|
328
|
+
title: string;
|
|
329
|
+
usage: string;
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
constant: {
|
|
333
|
+
bean: string;
|
|
334
|
+
info: {
|
|
335
|
+
version: string;
|
|
336
|
+
title: string;
|
|
337
|
+
usage: string;
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
error: {
|
|
341
|
+
bean: string;
|
|
342
|
+
info: {
|
|
343
|
+
version: string;
|
|
344
|
+
title: string;
|
|
345
|
+
usage: string;
|
|
346
|
+
};
|
|
347
|
+
};
|
|
141
348
|
monkey: {
|
|
142
349
|
bean: string;
|
|
143
350
|
info: {
|
|
@@ -154,6 +361,14 @@ export declare const commands: {
|
|
|
154
361
|
usage: string;
|
|
155
362
|
};
|
|
156
363
|
};
|
|
364
|
+
static: {
|
|
365
|
+
bean: string;
|
|
366
|
+
info: {
|
|
367
|
+
version: string;
|
|
368
|
+
title: string;
|
|
369
|
+
usage: string;
|
|
370
|
+
};
|
|
371
|
+
};
|
|
157
372
|
};
|
|
158
373
|
refactor: {};
|
|
159
374
|
tools: {
|
|
@@ -164,16 +379,7 @@ export declare const commands: {
|
|
|
164
379
|
title: string;
|
|
165
380
|
usage: string;
|
|
166
381
|
};
|
|
167
|
-
options: {
|
|
168
|
-
tsc: {
|
|
169
|
-
description: string;
|
|
170
|
-
type: string;
|
|
171
|
-
};
|
|
172
|
-
force: {
|
|
173
|
-
description: string;
|
|
174
|
-
type: string;
|
|
175
|
-
};
|
|
176
|
-
};
|
|
382
|
+
options: {};
|
|
177
383
|
};
|
|
178
384
|
metadata: {
|
|
179
385
|
bean: string;
|
|
@@ -189,7 +395,7 @@ export declare const commands: {
|
|
|
189
395
|
};
|
|
190
396
|
};
|
|
191
397
|
};
|
|
192
|
-
|
|
398
|
+
crud: {
|
|
193
399
|
bean: string;
|
|
194
400
|
info: {
|
|
195
401
|
version: string;
|
|
@@ -197,12 +403,30 @@ export declare const commands: {
|
|
|
197
403
|
usage: string;
|
|
198
404
|
};
|
|
199
405
|
options: {
|
|
200
|
-
|
|
406
|
+
module: {
|
|
201
407
|
description: string;
|
|
202
408
|
type: string;
|
|
203
409
|
};
|
|
204
410
|
};
|
|
411
|
+
groups: {
|
|
412
|
+
default: {
|
|
413
|
+
questions: {
|
|
414
|
+
resourceName: {
|
|
415
|
+
type: string;
|
|
416
|
+
message: string;
|
|
417
|
+
initial: {
|
|
418
|
+
expression: string;
|
|
419
|
+
};
|
|
420
|
+
required: boolean;
|
|
421
|
+
};
|
|
422
|
+
module: {
|
|
423
|
+
type: string;
|
|
424
|
+
message: string;
|
|
425
|
+
required: boolean;
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
};
|
|
205
430
|
};
|
|
206
431
|
};
|
|
207
432
|
};
|
|
208
|
-
//# sourceMappingURL=commands.d.ts.map
|
package/dist/lib/commands.js
CHANGED
|
@@ -1,30 +1,57 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
1
|
+
import binBuild from "./command/bin.build.js";
|
|
2
|
+
import binDbReset from "./command/bin.dbReset.js";
|
|
3
|
+
import binDemo from "./command/bin.demo.js";
|
|
4
|
+
import binDev from "./command/bin.dev.js";
|
|
5
|
+
import binTest from "./command/bin.test.js";
|
|
6
|
+
import binTsc from "./command/bin.tsc.js";
|
|
7
|
+
import createBean from "./command/create.bean.js";
|
|
8
|
+
import createModule from "./command/create.module.js";
|
|
9
|
+
import createProject from "./command/create.project.js";
|
|
10
|
+
import createSuite from "./command/create.suite.js";
|
|
11
|
+
import createTest from "./command/create.test.js";
|
|
12
|
+
import defaultList from "./command/default.list.js";
|
|
13
|
+
import initConfig from "./command/init.config.js";
|
|
14
|
+
import initConstant from "./command/init.constant.js";
|
|
15
|
+
import initError from "./command/init.error.js";
|
|
16
|
+
import initLocale from "./command/init.locale.js";
|
|
17
|
+
import initMain from "./command/init.main.js";
|
|
18
|
+
import initMonkey from "./command/init.monkey.js";
|
|
19
|
+
import initStatic from "./command/init.static.js";
|
|
20
|
+
import toolsCrud from "./command/tools.crud.js";
|
|
21
|
+
import toolsDeps from "./command/tools.deps.js";
|
|
22
|
+
import toolsMetadata from "./command/tools.metadata.js";
|
|
10
23
|
export const commands = {
|
|
11
24
|
default: {
|
|
12
25
|
list: defaultList,
|
|
13
26
|
},
|
|
27
|
+
bin: {
|
|
28
|
+
build: binBuild,
|
|
29
|
+
dbReset: binDbReset,
|
|
30
|
+
demo: binDemo,
|
|
31
|
+
dev: binDev,
|
|
32
|
+
test: binTest,
|
|
33
|
+
tsc: binTsc,
|
|
34
|
+
},
|
|
14
35
|
create: {
|
|
15
36
|
suite: createSuite,
|
|
16
37
|
module: createModule,
|
|
38
|
+
project: createProject,
|
|
17
39
|
bean: createBean,
|
|
40
|
+
test: createTest,
|
|
18
41
|
},
|
|
19
42
|
init: {
|
|
43
|
+
config: initConfig,
|
|
44
|
+
locale: initLocale,
|
|
45
|
+
constant: initConstant,
|
|
46
|
+
error: initError,
|
|
20
47
|
monkey: initMonkey,
|
|
21
48
|
main: initMain,
|
|
49
|
+
static: initStatic,
|
|
22
50
|
},
|
|
23
51
|
refactor: {},
|
|
24
52
|
tools: {
|
|
25
53
|
deps: toolsDeps,
|
|
26
54
|
metadata: toolsMetadata,
|
|
27
|
-
|
|
55
|
+
crud: toolsCrud,
|
|
28
56
|
},
|
|
29
57
|
};
|
|
30
|
-
//# sourceMappingURL=commands.js.map
|
package/dist/lib/this.d.ts
CHANGED
package/dist/lib/this.js
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { VonaConfigMeta, VonaMetaMode } from '@cabloy/module-info';
|
|
2
|
+
export declare function getEnvMeta(configMeta: VonaConfigMeta): {
|
|
3
|
+
flavor: "normal";
|
|
4
|
+
mode: VonaMetaMode;
|
|
5
|
+
mine: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function getNodeEnv(mode: VonaMetaMode): "test" | "development" | "production";
|
|
8
|
+
export declare function resolveTemplatePath(file: string): string;
|
|
9
|
+
export declare function generateConfigDefine(env: any, translates?: string[]): {};
|
|
10
|
+
export declare function getAbsolutePathOfModule(id: string, postfix?: string): string;
|
|
11
|
+
export declare function requireModule(id: string): any;
|
|
12
|
+
export declare function copyTemplateFile(fileSrc: URL | string, fileDest: string, variables?: any): Promise<void>;
|
|
13
|
+
export declare function loadJSONFile(fileName: string): Promise<any>;
|
|
14
|
+
export declare function saveJSONFile(fileName: string, json: object): Promise<void>;
|
|
15
|
+
export declare function pathToHref(fileName: string): string;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
import { pathToFileURL } from 'node:url';
|
|
5
|
+
import fse from 'fs-extra';
|
|
6
|
+
import compileTemplate from 'lodash/template.js';
|
|
7
|
+
export function getEnvMeta(configMeta) {
|
|
8
|
+
return { flavor: configMeta.flavor, mode: configMeta.mode, mine: 'mine' };
|
|
9
|
+
}
|
|
10
|
+
export function getNodeEnv(mode) {
|
|
11
|
+
return mode === 'test' ? 'test' : mode === 'local' ? 'development' : 'production';
|
|
12
|
+
}
|
|
13
|
+
export function resolveTemplatePath(file) {
|
|
14
|
+
const url = (new URL(path.join('../../templates', file), import.meta.url));
|
|
15
|
+
return fileURLToPath(url);
|
|
16
|
+
}
|
|
17
|
+
export function generateConfigDefine(env, translates) {
|
|
18
|
+
const acc = {};
|
|
19
|
+
for (const key in env) {
|
|
20
|
+
if (!translates || translates.includes(key)) {
|
|
21
|
+
acc[`process.env.${key}`] = JSON.stringify(env[key]);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
acc[`process.env.${key}`] = `'process.env.${key}->app.meta.env.${key}'`;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return acc;
|
|
28
|
+
}
|
|
29
|
+
export function getAbsolutePathOfModule(id, postfix = 'index.js') {
|
|
30
|
+
const require = createRequire(import.meta.url);
|
|
31
|
+
let modulePath = require.resolve(id);
|
|
32
|
+
const pos = modulePath.lastIndexOf(postfix);
|
|
33
|
+
if (pos > -1) {
|
|
34
|
+
modulePath = modulePath.substring(0, modulePath.length - postfix.length - 1);
|
|
35
|
+
}
|
|
36
|
+
return modulePath;
|
|
37
|
+
}
|
|
38
|
+
export function requireModule(id) {
|
|
39
|
+
const require = createRequire(import.meta.url);
|
|
40
|
+
return require(id);
|
|
41
|
+
}
|
|
42
|
+
export async function copyTemplateFile(fileSrc, fileDest, variables) {
|
|
43
|
+
if (!variables) {
|
|
44
|
+
await fse.copyFile(fileSrc, fileDest);
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
// src
|
|
48
|
+
const contentSrc = (await fse.readFile(fileSrc, 'utf-8')).toString();
|
|
49
|
+
const template = compileTemplate(contentSrc);
|
|
50
|
+
// dest
|
|
51
|
+
const contentDest = template(variables);
|
|
52
|
+
await fse.writeFile(fileDest, contentDest, 'utf-8');
|
|
53
|
+
}
|
|
54
|
+
export async function loadJSONFile(fileName) {
|
|
55
|
+
const pkgContent = (await fse.readFile(fileName)).toString();
|
|
56
|
+
return JSON.parse(pkgContent);
|
|
57
|
+
}
|
|
58
|
+
export async function saveJSONFile(fileName, json) {
|
|
59
|
+
await fse.writeFile(fileName, `${JSON.stringify(json, null, 2)}\n`);
|
|
60
|
+
}
|
|
61
|
+
export function pathToHref(fileName) {
|
|
62
|
+
return pathToFileURL(fileName).href;
|
|
63
|
+
}
|
package/dist/typings.d.ts
CHANGED
package/dist/typings.js
CHANGED
package/package.json
CHANGED
|
@@ -1,51 +1,75 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vona-cli-set-api",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "1.0.11",
|
|
4
5
|
"description": "vona cli-set-api",
|
|
5
6
|
"publishConfig": {
|
|
6
7
|
"access": "public"
|
|
7
8
|
},
|
|
8
|
-
"
|
|
9
|
+
"author": "zhennann",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"framework",
|
|
13
|
+
"vona"
|
|
14
|
+
],
|
|
9
15
|
"exports": {
|
|
10
16
|
".": {
|
|
11
17
|
"types": [
|
|
12
|
-
"./
|
|
13
|
-
"./
|
|
18
|
+
"./src/index.ts",
|
|
19
|
+
"./dist/index.d.ts"
|
|
14
20
|
],
|
|
15
|
-
"
|
|
16
|
-
"require": "./dist/index.js",
|
|
17
|
-
"default": "./src/index.ts"
|
|
21
|
+
"default": "./dist/index.js"
|
|
18
22
|
},
|
|
19
23
|
"./package.json": "./package.json"
|
|
20
24
|
},
|
|
21
25
|
"files": [
|
|
22
26
|
"cli",
|
|
23
|
-
"dist"
|
|
27
|
+
"dist",
|
|
28
|
+
"templates"
|
|
24
29
|
],
|
|
25
30
|
"scripts": {
|
|
26
31
|
"lint": "eslint .",
|
|
27
|
-
"clean": "
|
|
28
|
-
"tsc:publish": "npm run clean && tsc
|
|
29
|
-
"prepublishOnly": "npm run tsc:publish"
|
|
32
|
+
"clean": "rimraf dist tsconfig.tsbuildinfo",
|
|
33
|
+
"tsc:publish": "npm run clean && tsc",
|
|
34
|
+
"prepublishOnly": "npm run tsc:publish",
|
|
35
|
+
"prepack": "clean-package",
|
|
36
|
+
"postpack": "clean-package restore"
|
|
30
37
|
},
|
|
31
|
-
"keywords": [
|
|
32
|
-
"egg",
|
|
33
|
-
"egg-born",
|
|
34
|
-
"framework",
|
|
35
|
-
"vona"
|
|
36
|
-
],
|
|
37
|
-
"author": "zhennann",
|
|
38
|
-
"license": "MIT",
|
|
39
38
|
"dependencies": {
|
|
40
|
-
"@
|
|
41
|
-
"@
|
|
39
|
+
"@babel/plugin-proposal-decorators": "^7.25.9",
|
|
40
|
+
"@babel/plugin-transform-class-properties": "^7.25.9",
|
|
41
|
+
"@babel/plugin-transform-typescript": "^7.26.8",
|
|
42
|
+
"@cabloy/cli": "^3.0.15",
|
|
43
|
+
"@cabloy/dotenv": "^1.1.2",
|
|
44
|
+
"@cabloy/extend": "^3.1.2",
|
|
45
|
+
"@cabloy/module-glob": "^5.2.3",
|
|
46
|
+
"@cabloy/module-info": "^1.3.10",
|
|
47
|
+
"@cabloy/word-utils": "^2.0.1",
|
|
48
|
+
"@rollup/plugin-alias": "^5.1.1",
|
|
49
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
50
|
+
"@rollup/plugin-commonjs": "^28.0.2",
|
|
51
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
52
|
+
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
53
|
+
"@rollup/plugin-replace": "^6.0.2",
|
|
54
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
55
|
+
"babel-plugin-transform-typescript-metadata": "^0.3.2",
|
|
56
|
+
"babel-plugin-zova-bean-module": "^1.1.1",
|
|
57
|
+
"chalk": "^3.0.0",
|
|
58
|
+
"cli-table3": "^0.6.5",
|
|
42
59
|
"compressing": "^1.10.0",
|
|
43
|
-
"egg-born-utils": "^1.2.1",
|
|
44
60
|
"fs-extra": "^11.2.0",
|
|
61
|
+
"globby": "^14.1.0",
|
|
45
62
|
"gogocode": "^1.0.53",
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
63
|
+
"lodash": "^4.17.21",
|
|
64
|
+
"nodemon": "^3.1.9",
|
|
65
|
+
"randomatic": "^3.1.1",
|
|
66
|
+
"rimraf": "^6.0.1",
|
|
67
|
+
"rollup": "^4.34.8",
|
|
68
|
+
"ts-node": "^10.9.2",
|
|
69
|
+
"urllib": "^4.6.11",
|
|
70
|
+
"uuid": "^11.1.0",
|
|
71
|
+
"why-is-node-running": "^3.2.2",
|
|
72
|
+
"yargs-parser": "^21.1.1"
|
|
49
73
|
},
|
|
50
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "0eab9dc4a5622caffe89e7b1b3f02c08ccbc4c4b"
|
|
51
75
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createApp } from 'vona';
|
|
2
|
+
import { locales } from '../src/backend/config/locales.ts';
|
|
3
|
+
import config from './config.ts';
|
|
4
|
+
import env from './env.ts';
|
|
5
|
+
<%=appMonkey?"import { AppMonkey } from '../src/backend/config/monkey.ts';":''%>
|
|
6
|
+
|
|
7
|
+
export async function createSingleApp(envRuntime?: NodeJS.ProcessEnv) {
|
|
8
|
+
return await createApp({
|
|
9
|
+
modulesMeta: () => import('./modules-meta.ts'),
|
|
10
|
+
locales,
|
|
11
|
+
config,
|
|
12
|
+
env: envRuntime ? Object.assign({}, env, envRuntime) : env,
|
|
13
|
+
<%=appMonkey?'AppMonkey,':''%>
|
|
14
|
+
});
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { bootstrap } from 'vona';
|
|
2
|
+
import { locales } from '../src/backend/config/locales.ts';
|
|
3
|
+
import config from './config.ts';
|
|
4
|
+
import env from './env.ts';
|
|
5
|
+
<%=appMonkey?"import { AppMonkey } from '../src/backend/config/monkey.ts';":''%>
|
|
6
|
+
|
|
7
|
+
bootstrap({
|
|
8
|
+
modulesMeta: () => import('./modules-meta.ts'),
|
|
9
|
+
locales,
|
|
10
|
+
config,
|
|
11
|
+
env,
|
|
12
|
+
<%=appMonkey?'AppMonkey,':''%>
|
|
13
|
+
});
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { VonaModulesMeta } from 'vona';
|
|
2
|
+
<%
|
|
3
|
+
function capitalizeFirstLetter(string) {
|
|
4
|
+
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function getPascalFromSnake(input){
|
|
8
|
+
return input.split("-").map(capitalizeFirstLetter).join("")
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function getCamelFromSnake(input){
|
|
12
|
+
const toReturn = getPascalFromSnake(input);
|
|
13
|
+
return toReturn.charAt(0).toLowerCase() + toReturn.slice(1);
|
|
14
|
+
}
|
|
15
|
+
%>
|
|
16
|
+
<% for (const relativeName of moduleNames) {
|
|
17
|
+
const module=modules[relativeName];
|
|
18
|
+
const importName=getCamelFromSnake(relativeName);
|
|
19
|
+
const importClause=`import * as ${importName} from '${module.info.fullName}';\n`;
|
|
20
|
+
print(importClause);
|
|
21
|
+
}%>
|
|
22
|
+
const modules = {};
|
|
23
|
+
|
|
24
|
+
<% for (const relativeName in modules) {
|
|
25
|
+
const module=modules[relativeName];
|
|
26
|
+
const _package={
|
|
27
|
+
version: module.package.version,
|
|
28
|
+
title: module.package.title,
|
|
29
|
+
description: module.package.description,
|
|
30
|
+
author: module.package.author,
|
|
31
|
+
vonaModule: {
|
|
32
|
+
capabilities: module.package.vonaModule?.capabilities,
|
|
33
|
+
fileVersion: module.package.vonaModule?.fileVersion,
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
const importName=getCamelFromSnake(relativeName);
|
|
37
|
+
const importClause=`modules['${module.info.relativeName}'] = {
|
|
38
|
+
resource: ${importName},
|
|
39
|
+
name: '${module.info.relativeName}',
|
|
40
|
+
info: ${JSON.stringify(module.info,null,2)},
|
|
41
|
+
root: '${process.env.META_MODE==='prod'?'':module.root.replaceAll('\\','\\\\')}',
|
|
42
|
+
package: ${JSON.stringify(_package,null,2)},
|
|
43
|
+
};`;
|
|
44
|
+
print(importClause);
|
|
45
|
+
}%>
|
|
46
|
+
<%
|
|
47
|
+
const clause=`export const modulesMeta = { modules, moduleNames: ${JSON.stringify(moduleNames)} } as VonaModulesMeta;`;
|
|
48
|
+
%>
|
|
49
|
+
<%=clause%>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"noEmit": true
|
|
5
|
+
},
|
|
6
|
+
"include": [".vona/**/*.ts", "src/backend/package.json", "src/backend/config", "src/backend/demo", "src/backend/typing"],
|
|
7
|
+
"exclude": [],
|
|
8
|
+
"ts-node": {
|
|
9
|
+
"swc": true
|
|
10
|
+
},
|
|
11
|
+
"references": []
|
|
12
|
+
}
|