zova-cli-set-front 1.2.11 → 1.2.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/cli/templates/create/module/boilerplate/_package.json +4 -1
- package/cli/templates/create/module/boilerplate/_tsconfig.json +2 -10
- package/dist/index.js +2 -35
- package/dist/lib/beans.d.ts +0 -2
- package/dist/lib/commands.d.ts +0 -8
- package/package.json +10 -13
- package/cli/templates/init/legacy/boilerplate/components/counter.vue +0 -13
- package/cli/templates/init/legacy/boilerplate/composables/counter.ts +0 -15
- package/cli/templates/init/legacy/boilerplate/pages/counter.vue +0 -10
- package/cli/templates/init/legacy/boilerplate/routes.ts +0 -3
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"files": ["mock", "dist", "src", "icons", "assets", "rest"],
|
|
18
18
|
"scripts": {
|
|
19
19
|
"clean": "rimraf dist tsconfig.build.tsbuildinfo",
|
|
20
|
-
"tsc:publish": "npm run clean && zova :bin:buildModule --sourcemap",
|
|
20
|
+
"tsc:publish": "npm run clean && zova :bin:buildModule --sourcemap && tsc -p tsconfig.build.json",
|
|
21
21
|
"prepublishOnly": "npm run tsc:publish",
|
|
22
22
|
"prepack": "clean-package",
|
|
23
23
|
"postpack": "clean-package restore && npm run clean"
|
|
@@ -29,6 +29,9 @@
|
|
|
29
29
|
},
|
|
30
30
|
"clean-package": {
|
|
31
31
|
"indent": 2,
|
|
32
|
+
"replace": {
|
|
33
|
+
"exports.\\..types": "./dist/index.d.ts"
|
|
34
|
+
},
|
|
32
35
|
"remove": ["clean-package", "devDependencies", "exports.\\..import"]
|
|
33
36
|
}
|
|
34
37
|
}
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extends": "<%=argv.suite?'':'../'%>../../tsconfig.base",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
|
|
5
|
-
"@/*": ["<%=argv.suite?'../../':''%>../../../src/legacy/*"]
|
|
6
|
-
}
|
|
7
|
-
},
|
|
8
|
-
"include": [
|
|
9
|
-
"src",
|
|
10
|
-
"src/.metadata/**/*",
|
|
11
|
-
"<%=argv.suite?'../../':''%>../../../src/legacy"
|
|
12
|
-
]
|
|
3
|
+
"compilerOptions": {},
|
|
4
|
+
"include": ["src", "src/.metadata/**/*"]
|
|
13
5
|
}
|
package/dist/index.js
CHANGED
|
@@ -1193,28 +1193,6 @@ class CliInitIcon extends BeanCliBase {
|
|
|
1193
1193
|
}
|
|
1194
1194
|
}
|
|
1195
1195
|
|
|
1196
|
-
class CliInitLegacy extends BeanCliBase {
|
|
1197
|
-
async execute() {
|
|
1198
|
-
const {
|
|
1199
|
-
argv
|
|
1200
|
-
} = this.context;
|
|
1201
|
-
// super
|
|
1202
|
-
await super.execute();
|
|
1203
|
-
// target dir
|
|
1204
|
-
const legacyDir = path.join(argv.projectPath, 'src/legacy');
|
|
1205
|
-
if (fse.existsSync(legacyDir)) {
|
|
1206
|
-
throw new Error(`legacy exists: ${legacyDir}`);
|
|
1207
|
-
}
|
|
1208
|
-
// render boilerplate
|
|
1209
|
-
await this.template.renderBoilerplateAndSnippets({
|
|
1210
|
-
targetDir: legacyDir,
|
|
1211
|
-
setName: __ThisSetName__,
|
|
1212
|
-
snippetsPath: null,
|
|
1213
|
-
boilerplatePath: 'init/legacy/boilerplate'
|
|
1214
|
-
});
|
|
1215
|
-
}
|
|
1216
|
-
}
|
|
1217
|
-
|
|
1218
1196
|
class CliInitLib extends BeanCliBase {
|
|
1219
1197
|
async execute() {
|
|
1220
1198
|
const {
|
|
@@ -3700,7 +3678,7 @@ const beans = {
|
|
|
3700
3678
|
'init.constant': CliInitConstant,
|
|
3701
3679
|
'init.locale': CliInitLocale,
|
|
3702
3680
|
'init.error': CliInitError,
|
|
3703
|
-
'init.legacy': CliInitLegacy,
|
|
3681
|
+
// 'init.legacy': CliInitLegacy,
|
|
3704
3682
|
'init.appMonkey': CliInitAppMonkey,
|
|
3705
3683
|
'init.sysMonkey': CliInitSysMonkey,
|
|
3706
3684
|
'init.monkey': CliInitMonkey,
|
|
@@ -4134,17 +4112,6 @@ var initIcon = {
|
|
|
4134
4112
|
// groups: null,
|
|
4135
4113
|
};
|
|
4136
4114
|
|
|
4137
|
-
var initLegacy = {
|
|
4138
|
-
bean: 'init.legacy',
|
|
4139
|
-
info: {
|
|
4140
|
-
version: '5.0.0',
|
|
4141
|
-
title: 'Cli: Init: Legacy',
|
|
4142
|
-
usage: 'zova :init:legacy'
|
|
4143
|
-
}
|
|
4144
|
-
// options: null,
|
|
4145
|
-
// groups: null,
|
|
4146
|
-
};
|
|
4147
|
-
|
|
4148
4115
|
var initLib = {
|
|
4149
4116
|
bean: 'init.lib',
|
|
4150
4117
|
info: {
|
|
@@ -4680,7 +4647,7 @@ const commands = {
|
|
|
4680
4647
|
constant: initConstant,
|
|
4681
4648
|
locale: initLocale,
|
|
4682
4649
|
error: initError,
|
|
4683
|
-
legacy: initLegacy,
|
|
4650
|
+
// legacy: initLegacy,
|
|
4684
4651
|
appMonkey: initAppMonkey,
|
|
4685
4652
|
sysMonkey: initSysMonkey,
|
|
4686
4653
|
monkey: initMonkey,
|
package/dist/lib/beans.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ import { CliInitConfig } from './bean/cli.init.config.ts';
|
|
|
14
14
|
import { CliInitConstant } from './bean/cli.init.constant.ts';
|
|
15
15
|
import { CliInitError } from './bean/cli.init.error.ts';
|
|
16
16
|
import { CliInitIcon } from './bean/cli.init.icon.ts';
|
|
17
|
-
import { CliInitLegacy } from './bean/cli.init.legacy.ts';
|
|
18
17
|
import { CliInitLib } from './bean/cli.init.lib.ts';
|
|
19
18
|
import { CliInitLocale } from './bean/cli.init.locale.ts';
|
|
20
19
|
import { CliInitMain } from './bean/cli.init.main.ts';
|
|
@@ -55,7 +54,6 @@ export declare const beans: {
|
|
|
55
54
|
'init.constant': typeof CliInitConstant;
|
|
56
55
|
'init.locale': typeof CliInitLocale;
|
|
57
56
|
'init.error': typeof CliInitError;
|
|
58
|
-
'init.legacy': typeof CliInitLegacy;
|
|
59
57
|
'init.appMonkey': typeof CliInitAppMonkey;
|
|
60
58
|
'init.sysMonkey': typeof CliInitSysMonkey;
|
|
61
59
|
'init.monkey': typeof CliInitMonkey;
|
package/dist/lib/commands.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-cli-set-front",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "1.2.16",
|
|
4
|
+
"gitHead": "761a9baced655ccf3197e756c1d046ed651fafd5",
|
|
5
5
|
"description": "zova cli-set-front",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"framework",
|
|
@@ -17,10 +17,7 @@
|
|
|
17
17
|
"type": "module",
|
|
18
18
|
"exports": {
|
|
19
19
|
".": {
|
|
20
|
-
"types":
|
|
21
|
-
"./src/index.ts",
|
|
22
|
-
"./dist/index.d.ts"
|
|
23
|
-
],
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
24
21
|
"default": "./dist/index.js"
|
|
25
22
|
},
|
|
26
23
|
"./package.json": "./package.json"
|
|
@@ -46,14 +43,14 @@
|
|
|
46
43
|
"@cabloy/utils": "^2.0.21",
|
|
47
44
|
"@cabloy/vite-plugin-babel": "^1.3.3",
|
|
48
45
|
"@cabloy/vue-babel-plugin-jsx": "^2.0.1",
|
|
49
|
-
"@cabloy/word-utils": "^2.1.
|
|
46
|
+
"@cabloy/word-utils": "^2.1.7",
|
|
50
47
|
"@typescript/native-preview": "^7.0.0-dev.20260320.1",
|
|
51
48
|
"@vitejs/plugin-vue-jsx": "^5.1.5",
|
|
52
49
|
"babel-plugin-transform-typescript-metadata": "^0.4.0",
|
|
53
|
-
"babel-plugin-zova-bean-module": "^1.2.
|
|
54
|
-
"babel-plugin-zova-bean-use": "^1.1.
|
|
55
|
-
"babel-plugin-zova-behavior": "^1.1.
|
|
56
|
-
"babel-plugin-zova-component": "^1.1.
|
|
50
|
+
"babel-plugin-zova-bean-module": "^1.2.7",
|
|
51
|
+
"babel-plugin-zova-bean-use": "^1.1.7",
|
|
52
|
+
"babel-plugin-zova-behavior": "^1.1.7",
|
|
53
|
+
"babel-plugin-zova-component": "^1.1.7",
|
|
57
54
|
"compressing": "^1.10.0",
|
|
58
55
|
"fs-extra": "^11.2.0",
|
|
59
56
|
"globby": "^14.1.0",
|
|
@@ -66,7 +63,7 @@
|
|
|
66
63
|
"typescript": "^5.9.3",
|
|
67
64
|
"urllib": "^4.6.11",
|
|
68
65
|
"vite": "^8.0.2",
|
|
69
|
-
"zova-openapi": "^1.1.
|
|
70
|
-
"zova-vite": "^1.1.
|
|
66
|
+
"zova-openapi": "^1.1.7",
|
|
67
|
+
"zova-vite": "^1.1.12"
|
|
71
68
|
}
|
|
72
69
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { useCounter } from '@/composables/counter';
|
|
3
|
-
|
|
4
|
-
const { count, increment, decrement } = useCounter();
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<template>
|
|
8
|
-
<div>
|
|
9
|
-
<div>{{ `count: ${count}` }}</div>
|
|
10
|
-
<button class="btn btn-primary" @click="increment">Increment</button>
|
|
11
|
-
<button class="btn btn-secondary" @click="decrement">Decrement</button>
|
|
12
|
-
</div>
|
|
13
|
-
</template>
|