create-weapp-vite 2.0.52 → 2.0.55
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/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-DFc325BF.js → src-nL81L3Ai.js} +11 -9
- package/package.json +1 -1
- package/templates/default/package.json +3 -2
- package/templates/default/project.private.config.json +1 -1
- package/templates/default/src/app.json +2 -1
- package/templates/default/src/layouts/admin/index.json +3 -0
- package/templates/default/src/layouts/admin/index.scss +40 -0
- package/templates/default/src/layouts/admin/index.ts +1 -0
- package/templates/default/src/layouts/admin/index.wxml +10 -0
- package/templates/default/src/layouts/default/index.json +3 -0
- package/templates/default/src/layouts/default/index.scss +3 -0
- package/templates/default/src/layouts/default/index.ts +1 -0
- package/templates/default/src/layouts/default/index.wxml +3 -0
- package/templates/default/src/pages/index/index.ts +5 -0
- package/templates/default/src/pages/index/index.wxml +3 -0
- package/templates/default/src/pages/layouts/index.json +4 -0
- package/templates/default/src/pages/layouts/index.scss +68 -0
- package/templates/default/src/pages/layouts/index.ts +42 -0
- package/templates/default/src/pages/layouts/index.wxml +19 -0
- package/templates/default/tsconfig.json +8 -2
- package/templates/lib/package.json +6 -2
- package/templates/lib/project.private.config.json +1 -1
- package/templates/lib/src/app.json +2 -1
- package/templates/lib/src/layouts/admin/index.json +3 -0
- package/templates/lib/src/layouts/admin/index.scss +41 -0
- package/templates/lib/src/layouts/admin/index.ts +1 -0
- package/templates/lib/src/layouts/admin/index.wxml +10 -0
- package/templates/lib/src/layouts/default/index.json +3 -0
- package/templates/lib/src/layouts/default/index.scss +3 -0
- package/templates/lib/src/layouts/default/index.ts +1 -0
- package/templates/lib/src/layouts/default/index.wxml +3 -0
- package/templates/lib/src/pages/index/index.scss +14 -3
- package/templates/lib/src/pages/index/index.ts +5 -0
- package/templates/lib/src/pages/index/index.wxml +6 -0
- package/templates/lib/src/pages/layouts/index.json +4 -0
- package/templates/lib/src/pages/layouts/index.scss +70 -0
- package/templates/lib/src/pages/layouts/index.ts +44 -0
- package/templates/lib/src/pages/layouts/index.wxml +19 -0
- package/templates/lib/tsconfig.json +8 -2
- package/templates/lib/weapp-vite.lib.config.ts +5 -0
- package/templates/tailwindcss/package.json +3 -3
- package/templates/tailwindcss/project.private.config.json +1 -1
- package/templates/tailwindcss/src/app.json +2 -1
- package/templates/tailwindcss/src/layouts/admin/index.json +3 -0
- package/templates/tailwindcss/src/layouts/admin/index.scss +40 -0
- package/templates/tailwindcss/src/layouts/admin/index.ts +1 -0
- package/templates/tailwindcss/src/layouts/admin/index.wxml +10 -0
- package/templates/tailwindcss/src/layouts/default/index.json +3 -0
- package/templates/tailwindcss/src/layouts/default/index.scss +3 -0
- package/templates/tailwindcss/src/layouts/default/index.ts +1 -0
- package/templates/tailwindcss/src/layouts/default/index.wxml +3 -0
- package/templates/tailwindcss/src/pages/index/index.ts +5 -0
- package/templates/tailwindcss/src/pages/index/index.wxml +3 -0
- package/templates/tailwindcss/src/pages/layouts/index.json +4 -0
- package/templates/tailwindcss/src/pages/layouts/index.scss +1 -0
- package/templates/tailwindcss/src/pages/layouts/index.ts +33 -0
- package/templates/tailwindcss/src/pages/layouts/index.wxml +19 -0
- package/templates/tailwindcss/tsconfig.json +8 -2
- package/templates/tdesign/package.json +3 -3
- package/templates/tdesign/project.private.config.json +2 -2
- package/templates/tdesign/src/app.json +2 -1
- package/templates/tdesign/src/layouts/admin/index.json +3 -0
- package/templates/tdesign/src/layouts/admin/index.scss +40 -0
- package/templates/tdesign/src/layouts/admin/index.ts +1 -0
- package/templates/tdesign/src/layouts/admin/index.wxml +10 -0
- package/templates/tdesign/src/layouts/default/index.json +3 -0
- package/templates/tdesign/src/layouts/default/index.scss +3 -0
- package/templates/tdesign/src/layouts/default/index.ts +1 -0
- package/templates/tdesign/src/layouts/default/index.wxml +3 -0
- package/templates/tdesign/src/pages/index/index.ts +5 -0
- package/templates/tdesign/src/pages/index/index.wxml +3 -0
- package/templates/tdesign/src/pages/layouts/index.json +4 -0
- package/templates/tdesign/src/pages/layouts/index.scss +1 -0
- package/templates/tdesign/src/pages/layouts/index.ts +32 -0
- package/templates/tdesign/src/pages/layouts/index.wxml +16 -0
- package/templates/tdesign/tsconfig.json +8 -2
- package/templates/tdesign/vite.config.ts +9 -0
- package/templates/vant/package.json +3 -3
- package/templates/vant/project.private.config.json +1 -1
- package/templates/vant/src/app.json +2 -1
- package/templates/vant/src/layouts/admin/index.json +3 -0
- package/templates/vant/src/layouts/admin/index.scss +40 -0
- package/templates/vant/src/layouts/admin/index.ts +1 -0
- package/templates/vant/src/layouts/admin/index.wxml +10 -0
- package/templates/vant/src/layouts/default/index.json +3 -0
- package/templates/vant/src/layouts/default/index.scss +3 -0
- package/templates/vant/src/layouts/default/index.ts +1 -0
- package/templates/vant/src/layouts/default/index.wxml +3 -0
- package/templates/vant/src/pages/index/index.ts +5 -0
- package/templates/vant/src/pages/index/index.wxml +3 -0
- package/templates/vant/src/pages/layouts/index.json +4 -0
- package/templates/vant/src/pages/layouts/index.scss +3 -0
- package/templates/vant/src/pages/layouts/index.ts +35 -0
- package/templates/vant/src/pages/layouts/index.wxml +17 -0
- package/templates/vant/tsconfig.json +8 -2
- package/templates/vant/vite.config.ts +9 -0
- package/templates/wevu/package.json +4 -3
- package/templates/wevu/project.private.config.json +2 -2
- package/templates/wevu/src/layouts/admin.vue +75 -0
- package/templates/wevu/src/layouts/default.vue +17 -0
- package/templates/wevu/src/pages/index/index.vue +7 -0
- package/templates/wevu/src/pages/layouts/index.vue +171 -0
- package/templates/wevu/tsconfig.json +8 -2
- package/templates/wevu-tdesign/package.json +4 -4
- package/templates/wevu-tdesign/project.private.config.json +1 -1
- package/templates/wevu-tdesign/src/app.vue +1 -0
- package/templates/wevu-tdesign/src/components/KpiBoard/index.vue +4 -6
- package/templates/wevu-tdesign/src/hooks/useToast.ts +1 -1
- package/templates/wevu-tdesign/src/layouts/admin.vue +37 -0
- package/templates/wevu-tdesign/src/layouts/default.vue +17 -0
- package/templates/wevu-tdesign/src/pages/index/index.vue +10 -0
- package/templates/wevu-tdesign/src/pages/layouts/index.vue +96 -0
- package/templates/wevu-tdesign/src/subpackages/lab/index.vue +22 -6
- package/templates/wevu-tdesign/tsconfig.json +8 -2
- package/templates/wevu-tdesign/vite.config.ts +9 -0
- package/templates/default/tsconfig.app.json +0 -49
- package/templates/default/tsconfig.node.json +0 -33
- package/templates/lib/tsconfig.app.json +0 -49
- package/templates/lib/tsconfig.node.json +0 -33
- package/templates/tailwindcss/tsconfig.app.json +0 -49
- package/templates/tailwindcss/tsconfig.node.json +0 -33
- package/templates/tdesign/tsconfig.app.json +0 -52
- package/templates/tdesign/tsconfig.node.json +0 -33
- package/templates/vant/tsconfig.app.json +0 -52
- package/templates/vant/tsconfig.node.json +0 -33
- package/templates/wevu/src/components.d.ts +0 -25
- package/templates/wevu/src/typed-components.d.ts +0 -22
- package/templates/wevu/src/typed-router.d.ts +0 -67
- package/templates/wevu/tsconfig.app.json +0 -51
- package/templates/wevu/tsconfig.node.json +0 -33
- package/templates/wevu-tdesign/src/components.d.ts +0 -267
- package/templates/wevu-tdesign/src/typed-components.d.ts +0 -955
- package/templates/wevu-tdesign/src/typed-router.d.ts +0 -75
- package/templates/wevu-tdesign/tsconfig.app.json +0 -54
- package/templates/wevu-tdesign/tsconfig.node.json +0 -33
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
// biome-ignore lint: disable
|
|
3
|
-
// oxlint-disable
|
|
4
|
-
// ------
|
|
5
|
-
// 由 weapp-vite 自动生成,请勿编辑。
|
|
6
|
-
import 'wevu/router';
|
|
7
|
-
|
|
8
|
-
declare module 'weapp-vite/auto-routes' {
|
|
9
|
-
export type AutoRoutesPages = [
|
|
10
|
-
"pages/index/index",
|
|
11
|
-
"pages/ability/index",
|
|
12
|
-
"pages/data/index",
|
|
13
|
-
"pages/form/index",
|
|
14
|
-
"pages/list/index"
|
|
15
|
-
];
|
|
16
|
-
export type AutoRoutesEntries = [
|
|
17
|
-
"pages/index/index",
|
|
18
|
-
"pages/ability/index",
|
|
19
|
-
"pages/data/index",
|
|
20
|
-
"pages/form/index",
|
|
21
|
-
"pages/list/index",
|
|
22
|
-
"subpackages/ability/index",
|
|
23
|
-
"subpackages/lab/class-binding/index",
|
|
24
|
-
"subpackages/lab/index"
|
|
25
|
-
];
|
|
26
|
-
export type AutoRoutesSubPackages = [
|
|
27
|
-
{
|
|
28
|
-
readonly root: "subpackages/ability";
|
|
29
|
-
readonly pages: [
|
|
30
|
-
"index"
|
|
31
|
-
];
|
|
32
|
-
[k: string]: unknown;
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
readonly root: "subpackages/lab";
|
|
36
|
-
readonly pages: [
|
|
37
|
-
"class-binding/index",
|
|
38
|
-
"index"
|
|
39
|
-
];
|
|
40
|
-
[k: string]: unknown;
|
|
41
|
-
}
|
|
42
|
-
];
|
|
43
|
-
export type AutoRoutesSubPackage = AutoRoutesSubPackages[number];
|
|
44
|
-
export interface AutoRoutes {
|
|
45
|
-
readonly pages: AutoRoutesPages;
|
|
46
|
-
readonly entries: AutoRoutesEntries;
|
|
47
|
-
readonly subPackages: AutoRoutesSubPackages;
|
|
48
|
-
}
|
|
49
|
-
export type AutoRouteEntry = AutoRoutesEntries[number];
|
|
50
|
-
export type AutoRoutesRelativeUrl = `./${string}` | `../${string}`;
|
|
51
|
-
export type AutoRoutesAbsoluteUrl<Path extends string> = Path | `/${Path}` | `${Path}?${string}` | `/${Path}?${string}`;
|
|
52
|
-
export type AutoRoutesUrl = AutoRoutesAbsoluteUrl<AutoRouteEntry> | AutoRoutesRelativeUrl;
|
|
53
|
-
export type AutoRouteNavigateOption = {
|
|
54
|
-
readonly url: AutoRoutesUrl;
|
|
55
|
-
} & Record<string, any>;
|
|
56
|
-
export interface AutoRoutesWxRouter {
|
|
57
|
-
switchTab: (option: AutoRouteNavigateOption) => unknown;
|
|
58
|
-
reLaunch: (option: AutoRouteNavigateOption) => unknown;
|
|
59
|
-
redirectTo: (option: AutoRouteNavigateOption) => unknown;
|
|
60
|
-
navigateTo: (option: AutoRouteNavigateOption) => unknown;
|
|
61
|
-
navigateBack: (option?: Record<string, any>) => unknown;
|
|
62
|
-
}
|
|
63
|
-
export const routes: AutoRoutes;
|
|
64
|
-
export const pages: AutoRoutesPages;
|
|
65
|
-
export const entries: AutoRoutesEntries;
|
|
66
|
-
export const subPackages: AutoRoutesSubPackages;
|
|
67
|
-
export const wxRouter: AutoRoutesWxRouter;
|
|
68
|
-
export default routes;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
declare module 'wevu/router' {
|
|
72
|
-
interface WevuTypedRouterRouteMap {
|
|
73
|
-
entries: import('weapp-vite/auto-routes').AutoRoutesEntries[number];
|
|
74
|
-
}
|
|
75
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
4
|
-
"target": "ES2023",
|
|
5
|
-
"jsx": "preserve",
|
|
6
|
-
"lib": [
|
|
7
|
-
"ES2023",
|
|
8
|
-
"DOM",
|
|
9
|
-
"DOM.Iterable"
|
|
10
|
-
],
|
|
11
|
-
"moduleDetection": "force",
|
|
12
|
-
"baseUrl": ".",
|
|
13
|
-
"module": "ESNext",
|
|
14
|
-
"moduleResolution": "bundler",
|
|
15
|
-
"paths": {
|
|
16
|
-
"@/*": [
|
|
17
|
-
"./src/*"
|
|
18
|
-
],
|
|
19
|
-
"weapp-vite/typed-components": [
|
|
20
|
-
"./src/typed-components.d.ts"
|
|
21
|
-
],
|
|
22
|
-
"tdesign-miniprogram/*": [
|
|
23
|
-
"./node_modules/tdesign-miniprogram/miniprogram_dist/*"
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
"resolveJsonModule": true,
|
|
27
|
-
"types": [
|
|
28
|
-
"miniprogram-api-typings"
|
|
29
|
-
],
|
|
30
|
-
"allowImportingTsExtensions": true,
|
|
31
|
-
"allowJs": true,
|
|
32
|
-
"strict": true,
|
|
33
|
-
"noFallthroughCasesInSwitch": true,
|
|
34
|
-
"noUnusedLocals": true,
|
|
35
|
-
"noUnusedParameters": true,
|
|
36
|
-
"noEmit": true,
|
|
37
|
-
"allowSyntheticDefaultImports": true,
|
|
38
|
-
"esModuleInterop": true,
|
|
39
|
-
"isolatedModules": true,
|
|
40
|
-
"verbatimModuleSyntax": true,
|
|
41
|
-
"noUncheckedSideEffectImports": true,
|
|
42
|
-
"erasableSyntaxOnly": true,
|
|
43
|
-
"skipLibCheck": true
|
|
44
|
-
},
|
|
45
|
-
"vueCompilerOptions": {
|
|
46
|
-
"plugins": [
|
|
47
|
-
"weapp-vite/volar"
|
|
48
|
-
],
|
|
49
|
-
"lib": "wevu"
|
|
50
|
-
},
|
|
51
|
-
"include": [
|
|
52
|
-
"src/**/*"
|
|
53
|
-
]
|
|
54
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
4
|
-
"target": "ES2023",
|
|
5
|
-
"lib": [
|
|
6
|
-
"ES2023"
|
|
7
|
-
],
|
|
8
|
-
"moduleDetection": "force",
|
|
9
|
-
"module": "ESNext",
|
|
10
|
-
"moduleResolution": "bundler",
|
|
11
|
-
"resolveJsonModule": true,
|
|
12
|
-
"types": [
|
|
13
|
-
"node"
|
|
14
|
-
],
|
|
15
|
-
"allowImportingTsExtensions": true,
|
|
16
|
-
"strict": true,
|
|
17
|
-
"noFallthroughCasesInSwitch": true,
|
|
18
|
-
"noUnusedLocals": true,
|
|
19
|
-
"noUnusedParameters": true,
|
|
20
|
-
"noEmit": true,
|
|
21
|
-
"verbatimModuleSyntax": true,
|
|
22
|
-
"noUncheckedSideEffectImports": true,
|
|
23
|
-
"erasableSyntaxOnly": true,
|
|
24
|
-
"skipLibCheck": true
|
|
25
|
-
},
|
|
26
|
-
"include": [
|
|
27
|
-
"vite.config.ts",
|
|
28
|
-
"vite.config.*.ts",
|
|
29
|
-
"*.config.ts",
|
|
30
|
-
"config/**/*.ts",
|
|
31
|
-
"scripts/**/*.ts"
|
|
32
|
-
]
|
|
33
|
-
}
|