@weapp-core/schematics 6.2.1 → 6.2.3
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/index.d.cts +18 -8
- package/dist/index.d.ts +18 -8
- package/package.json +16 -4
package/dist/index.d.cts
CHANGED
|
@@ -501,7 +501,15 @@ interface Page$1 {
|
|
|
501
501
|
/**
|
|
502
502
|
* 渲染后端选项,详情相关文档
|
|
503
503
|
*/
|
|
504
|
-
rendererOptions?: string
|
|
504
|
+
rendererOptions?: string & {
|
|
505
|
+
skyline?: {
|
|
506
|
+
defaultContentBox?: boolean;
|
|
507
|
+
defaultDisplayBlock?: boolean;
|
|
508
|
+
disableABTest?: boolean;
|
|
509
|
+
[k: string]: unknown;
|
|
510
|
+
};
|
|
511
|
+
[k: string]: unknown;
|
|
512
|
+
};
|
|
505
513
|
/**
|
|
506
514
|
* 重新启动策略配置
|
|
507
515
|
*/
|
|
@@ -509,7 +517,9 @@ interface Page$1 {
|
|
|
509
517
|
/**
|
|
510
518
|
* 单页模式相关配置
|
|
511
519
|
*/
|
|
512
|
-
singlePage?: string
|
|
520
|
+
singlePage?: string & {
|
|
521
|
+
[k: string]: unknown;
|
|
522
|
+
};
|
|
513
523
|
/**
|
|
514
524
|
* 启用新版的组件样式
|
|
515
525
|
*/
|
|
@@ -634,7 +644,7 @@ type Theme = Theme$1;
|
|
|
634
644
|
type Plugin = Plugin$1;
|
|
635
645
|
//#endregion
|
|
636
646
|
//#region src/json.d.ts
|
|
637
|
-
declare const JSON_SCHEMA_DEFINITIONS: readonly [{
|
|
647
|
+
export declare const JSON_SCHEMA_DEFINITIONS: readonly [{
|
|
638
648
|
filename: "app.json";
|
|
639
649
|
typeName: "App";
|
|
640
650
|
schema: unknown;
|
|
@@ -664,18 +674,18 @@ declare const JSON_SCHEMA_DEFINITIONS: readonly [{
|
|
|
664
674
|
/**
|
|
665
675
|
* @description 生成 JS 模板(app/page/component)
|
|
666
676
|
*/
|
|
667
|
-
declare function generateJs(type?: GenerateType): "App({})" | "Page({})" | "Component({})";
|
|
677
|
+
export declare function generateJs(type?: GenerateType): "App({})" | "Page({})" | "Component({})";
|
|
668
678
|
/**
|
|
669
679
|
* @description 生成 WXSS 模板
|
|
670
680
|
*/
|
|
671
|
-
declare function generateWxss(): string;
|
|
681
|
+
export declare function generateWxss(): string;
|
|
672
682
|
/**
|
|
673
683
|
* @description 生成 WXML 模板
|
|
674
684
|
*/
|
|
675
|
-
declare function generateWxml(filepath?: string): string;
|
|
685
|
+
export declare function generateWxml(filepath?: string): string;
|
|
676
686
|
/**
|
|
677
687
|
* @description 生成 JSON/JS/TS 模板
|
|
678
688
|
*/
|
|
679
|
-
declare function generateJson(type?: GenerateType, ext?: JsonExt): string;
|
|
689
|
+
export declare function generateJson(type?: GenerateType, ext?: JsonExt): string;
|
|
680
690
|
//#endregion
|
|
681
|
-
export {
|
|
691
|
+
export type { App, Component, GenerateType, Page, Plugin, Sitemap, Theme };
|
package/dist/index.d.ts
CHANGED
|
@@ -501,7 +501,15 @@ interface Page$1 {
|
|
|
501
501
|
/**
|
|
502
502
|
* 渲染后端选项,详情相关文档
|
|
503
503
|
*/
|
|
504
|
-
rendererOptions?: string
|
|
504
|
+
rendererOptions?: string & {
|
|
505
|
+
skyline?: {
|
|
506
|
+
defaultContentBox?: boolean;
|
|
507
|
+
defaultDisplayBlock?: boolean;
|
|
508
|
+
disableABTest?: boolean;
|
|
509
|
+
[k: string]: unknown;
|
|
510
|
+
};
|
|
511
|
+
[k: string]: unknown;
|
|
512
|
+
};
|
|
505
513
|
/**
|
|
506
514
|
* 重新启动策略配置
|
|
507
515
|
*/
|
|
@@ -509,7 +517,9 @@ interface Page$1 {
|
|
|
509
517
|
/**
|
|
510
518
|
* 单页模式相关配置
|
|
511
519
|
*/
|
|
512
|
-
singlePage?: string
|
|
520
|
+
singlePage?: string & {
|
|
521
|
+
[k: string]: unknown;
|
|
522
|
+
};
|
|
513
523
|
/**
|
|
514
524
|
* 启用新版的组件样式
|
|
515
525
|
*/
|
|
@@ -634,7 +644,7 @@ type Theme = Theme$1;
|
|
|
634
644
|
type Plugin = Plugin$1;
|
|
635
645
|
//#endregion
|
|
636
646
|
//#region src/json.d.ts
|
|
637
|
-
declare const JSON_SCHEMA_DEFINITIONS: readonly [{
|
|
647
|
+
export declare const JSON_SCHEMA_DEFINITIONS: readonly [{
|
|
638
648
|
filename: "app.json";
|
|
639
649
|
typeName: "App";
|
|
640
650
|
schema: unknown;
|
|
@@ -664,18 +674,18 @@ declare const JSON_SCHEMA_DEFINITIONS: readonly [{
|
|
|
664
674
|
/**
|
|
665
675
|
* @description 生成 JS 模板(app/page/component)
|
|
666
676
|
*/
|
|
667
|
-
declare function generateJs(type?: GenerateType): "App({})" | "Page({})" | "Component({})";
|
|
677
|
+
export declare function generateJs(type?: GenerateType): "App({})" | "Page({})" | "Component({})";
|
|
668
678
|
/**
|
|
669
679
|
* @description 生成 WXSS 模板
|
|
670
680
|
*/
|
|
671
|
-
declare function generateWxss(): string;
|
|
681
|
+
export declare function generateWxss(): string;
|
|
672
682
|
/**
|
|
673
683
|
* @description 生成 WXML 模板
|
|
674
684
|
*/
|
|
675
|
-
declare function generateWxml(filepath?: string): string;
|
|
685
|
+
export declare function generateWxml(filepath?: string): string;
|
|
676
686
|
/**
|
|
677
687
|
* @description 生成 JSON/JS/TS 模板
|
|
678
688
|
*/
|
|
679
|
-
declare function generateJson(type?: GenerateType, ext?: JsonExt): string;
|
|
689
|
+
export declare function generateJson(type?: GenerateType, ext?: JsonExt): string;
|
|
680
690
|
//#endregion
|
|
681
|
-
export {
|
|
691
|
+
export type { App, Component, GenerateType, Page, Plugin, Sitemap, Theme };
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-core/schematics",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.2.
|
|
5
|
-
"description": "
|
|
4
|
+
"version": "6.2.3",
|
|
5
|
+
"description": "Project generation schematics for the weapp-vite mini-program toolchain.",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
|
+
"homepage": "https://github.com/weapp-vite/weapp-vite#readme",
|
|
8
9
|
"repository": {
|
|
9
10
|
"type": "git",
|
|
10
11
|
"url": "git+https://github.com/weapp-vite/weapp-vite.git",
|
|
@@ -13,7 +14,14 @@
|
|
|
13
14
|
"bugs": {
|
|
14
15
|
"url": "https://github.com/weapp-vite/weapp-vite/issues"
|
|
15
16
|
},
|
|
16
|
-
"keywords": [
|
|
17
|
+
"keywords": [
|
|
18
|
+
"weapp-vite",
|
|
19
|
+
"weapp",
|
|
20
|
+
"wechat",
|
|
21
|
+
"mini-program",
|
|
22
|
+
"miniprogram",
|
|
23
|
+
"vite"
|
|
24
|
+
],
|
|
17
25
|
"sideEffects": false,
|
|
18
26
|
"weapp-vite-dev": {
|
|
19
27
|
"exports": {
|
|
@@ -37,8 +45,12 @@
|
|
|
37
45
|
"engines": {
|
|
38
46
|
"node": "^20.19.0 || >=22.12.0"
|
|
39
47
|
},
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"access": "public",
|
|
50
|
+
"registry": "https://registry.npmjs.org"
|
|
51
|
+
},
|
|
40
52
|
"dependencies": {
|
|
41
|
-
"zod": "^4.
|
|
53
|
+
"zod": "^4.6.2"
|
|
42
54
|
},
|
|
43
55
|
"devDependencies": {
|
|
44
56
|
"cheerio": "^1.2.0"
|