@weapp-core/schematics 6.0.0 → 6.0.2
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/README.md +45 -0
- package/dist/index.cjs +7232 -0
- package/dist/index.d.cts +457 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +26 -26
- package/package.json +4 -3
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description 生成模板的目标类型
|
|
3
|
+
*/
|
|
4
|
+
type GenerateType = 'app' | 'page' | 'component';
|
|
5
|
+
/**
|
|
6
|
+
* @description JSON 输出扩展名
|
|
7
|
+
*/
|
|
8
|
+
type JsonExt = 'json' | 'js' | 'ts' | (string & {});
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
12
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
13
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* 全局配置, 小程序根目录下的 app.json 文件用来对微信小程序进行全局配置。
|
|
17
|
+
*/
|
|
18
|
+
interface App$1 {
|
|
19
|
+
appBar?: {
|
|
20
|
+
[k: string]: unknown;
|
|
21
|
+
};
|
|
22
|
+
componentFramework?: string;
|
|
23
|
+
convertRpxToVw?: boolean;
|
|
24
|
+
darkmode?: boolean;
|
|
25
|
+
debug?: boolean;
|
|
26
|
+
debugOptions?: {
|
|
27
|
+
[k: string]: unknown;
|
|
28
|
+
};
|
|
29
|
+
embeddedAppIdList?: string[];
|
|
30
|
+
enablePassiveEvent?: {
|
|
31
|
+
[k: string]: unknown;
|
|
32
|
+
} | boolean;
|
|
33
|
+
entranceDeclare?: {
|
|
34
|
+
[k: string]: unknown;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* 指定小程序的默认启动路径(首页),常见情景是从微信聊天列表页下拉启动、小程序列表启动等。如果不填,将默认为 pages 列表的第一项。不支持带页面路径参数。
|
|
38
|
+
*/
|
|
39
|
+
entryPagePath?: string;
|
|
40
|
+
functionalPages?: boolean;
|
|
41
|
+
halfPage?: {
|
|
42
|
+
[k: string]: unknown;
|
|
43
|
+
};
|
|
44
|
+
lazyCodeLoading?: string;
|
|
45
|
+
miniApp?: {
|
|
46
|
+
[k: string]: unknown;
|
|
47
|
+
};
|
|
48
|
+
networkTimeout?: {
|
|
49
|
+
connectSocket?: number;
|
|
50
|
+
downloadFile?: number;
|
|
51
|
+
request?: number;
|
|
52
|
+
uploadFile?: number;
|
|
53
|
+
[k: string]: unknown;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* 用于指定小程序由哪些页面组成,每一项都对应一个页面的 路径(含文件名) 信息。文件名不需要写文件后缀,框架会自动去寻找对应位置的 .json, .js, .wxml, .wxss 四个文件进行处理。
|
|
57
|
+
*/
|
|
58
|
+
pages: string[];
|
|
59
|
+
permission?: {
|
|
60
|
+
[k: string]: unknown;
|
|
61
|
+
};
|
|
62
|
+
plugins?: {
|
|
63
|
+
[k: string]: unknown;
|
|
64
|
+
};
|
|
65
|
+
preloadRule?: {
|
|
66
|
+
[k: string]: unknown;
|
|
67
|
+
};
|
|
68
|
+
renderer?: "webview" | "skyline";
|
|
69
|
+
rendererOptions?: {
|
|
70
|
+
skyline?: {
|
|
71
|
+
defaultContentBox?: boolean;
|
|
72
|
+
defaultDisplayBlock?: boolean;
|
|
73
|
+
disableABTest?: boolean;
|
|
74
|
+
[k: string]: unknown;
|
|
75
|
+
};
|
|
76
|
+
[k: string]: unknown;
|
|
77
|
+
};
|
|
78
|
+
requiredBackgroundModes?: string[];
|
|
79
|
+
requiredPrivateInfos?: string[];
|
|
80
|
+
resizable?: boolean;
|
|
81
|
+
resolveAlias?: {
|
|
82
|
+
[k: string]: unknown;
|
|
83
|
+
};
|
|
84
|
+
serviceProviderTicket?: string;
|
|
85
|
+
singlePage?: {
|
|
86
|
+
[k: string]: unknown;
|
|
87
|
+
};
|
|
88
|
+
sitemapLocation?: string;
|
|
89
|
+
static?: {
|
|
90
|
+
[k: string]: unknown;
|
|
91
|
+
};
|
|
92
|
+
style?: string;
|
|
93
|
+
subPackages?: {
|
|
94
|
+
entry?: string;
|
|
95
|
+
independent?: boolean;
|
|
96
|
+
name?: string;
|
|
97
|
+
pages?: string[];
|
|
98
|
+
root?: string;
|
|
99
|
+
[k: string]: unknown;
|
|
100
|
+
}[];
|
|
101
|
+
subpackages?: {
|
|
102
|
+
entry?: string;
|
|
103
|
+
independent?: boolean;
|
|
104
|
+
name?: string;
|
|
105
|
+
pages?: string[];
|
|
106
|
+
root?: string;
|
|
107
|
+
[k: string]: unknown;
|
|
108
|
+
}[];
|
|
109
|
+
supportedMaterials?: {
|
|
110
|
+
[k: string]: unknown;
|
|
111
|
+
};
|
|
112
|
+
tabBar?: {
|
|
113
|
+
backgroundColor: string;
|
|
114
|
+
borderStyle?: "black" | "white";
|
|
115
|
+
color: string;
|
|
116
|
+
custom?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* @minItems 2
|
|
119
|
+
* @maxItems 5
|
|
120
|
+
*/
|
|
121
|
+
list: [
|
|
122
|
+
{
|
|
123
|
+
iconPath?: string;
|
|
124
|
+
pagePath: string;
|
|
125
|
+
selectedIconPath?: string;
|
|
126
|
+
text: string;
|
|
127
|
+
[k: string]: unknown;
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
iconPath?: string;
|
|
131
|
+
pagePath: string;
|
|
132
|
+
selectedIconPath?: string;
|
|
133
|
+
text: string;
|
|
134
|
+
[k: string]: unknown;
|
|
135
|
+
}
|
|
136
|
+
] | [
|
|
137
|
+
{
|
|
138
|
+
iconPath?: string;
|
|
139
|
+
pagePath: string;
|
|
140
|
+
selectedIconPath?: string;
|
|
141
|
+
text: string;
|
|
142
|
+
[k: string]: unknown;
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
iconPath?: string;
|
|
146
|
+
pagePath: string;
|
|
147
|
+
selectedIconPath?: string;
|
|
148
|
+
text: string;
|
|
149
|
+
[k: string]: unknown;
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
iconPath?: string;
|
|
153
|
+
pagePath: string;
|
|
154
|
+
selectedIconPath?: string;
|
|
155
|
+
text: string;
|
|
156
|
+
[k: string]: unknown;
|
|
157
|
+
}
|
|
158
|
+
] | [
|
|
159
|
+
{
|
|
160
|
+
iconPath?: string;
|
|
161
|
+
pagePath: string;
|
|
162
|
+
selectedIconPath?: string;
|
|
163
|
+
text: string;
|
|
164
|
+
[k: string]: unknown;
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
iconPath?: string;
|
|
168
|
+
pagePath: string;
|
|
169
|
+
selectedIconPath?: string;
|
|
170
|
+
text: string;
|
|
171
|
+
[k: string]: unknown;
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
iconPath?: string;
|
|
175
|
+
pagePath: string;
|
|
176
|
+
selectedIconPath?: string;
|
|
177
|
+
text: string;
|
|
178
|
+
[k: string]: unknown;
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
iconPath?: string;
|
|
182
|
+
pagePath: string;
|
|
183
|
+
selectedIconPath?: string;
|
|
184
|
+
text: string;
|
|
185
|
+
[k: string]: unknown;
|
|
186
|
+
}
|
|
187
|
+
] | [
|
|
188
|
+
{
|
|
189
|
+
iconPath?: string;
|
|
190
|
+
pagePath: string;
|
|
191
|
+
selectedIconPath?: string;
|
|
192
|
+
text: string;
|
|
193
|
+
[k: string]: unknown;
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
iconPath?: string;
|
|
197
|
+
pagePath: string;
|
|
198
|
+
selectedIconPath?: string;
|
|
199
|
+
text: string;
|
|
200
|
+
[k: string]: unknown;
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
iconPath?: string;
|
|
204
|
+
pagePath: string;
|
|
205
|
+
selectedIconPath?: string;
|
|
206
|
+
text: string;
|
|
207
|
+
[k: string]: unknown;
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
iconPath?: string;
|
|
211
|
+
pagePath: string;
|
|
212
|
+
selectedIconPath?: string;
|
|
213
|
+
text: string;
|
|
214
|
+
[k: string]: unknown;
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
iconPath?: string;
|
|
218
|
+
pagePath: string;
|
|
219
|
+
selectedIconPath?: string;
|
|
220
|
+
text: string;
|
|
221
|
+
[k: string]: unknown;
|
|
222
|
+
}
|
|
223
|
+
];
|
|
224
|
+
position?: "bottom" | "top";
|
|
225
|
+
selectedColor: string;
|
|
226
|
+
[k: string]: unknown;
|
|
227
|
+
};
|
|
228
|
+
themeLocation?: string;
|
|
229
|
+
useExtendedLib?: {
|
|
230
|
+
[k: string]: unknown;
|
|
231
|
+
};
|
|
232
|
+
usingComponents?: {
|
|
233
|
+
[k: string]: string;
|
|
234
|
+
};
|
|
235
|
+
window?: {
|
|
236
|
+
backgroundColor?: string;
|
|
237
|
+
backgroundColorBottom?: string;
|
|
238
|
+
backgroundColorTop?: string;
|
|
239
|
+
backgroundTextStyle?: "dark" | "light";
|
|
240
|
+
enablePullDownRefresh?: boolean;
|
|
241
|
+
handleWebviewPreload?: "static" | "manual" | "auto";
|
|
242
|
+
homeButton?: boolean;
|
|
243
|
+
initialRenderingCache?: "static" | "dynamic";
|
|
244
|
+
navigationBarBackgroundColor?: string;
|
|
245
|
+
navigationBarTextStyle?: string;
|
|
246
|
+
navigationBarTitleText?: string;
|
|
247
|
+
navigationStyle?: "default" | "custom";
|
|
248
|
+
onReachBottomDistance?: number;
|
|
249
|
+
pageOrientation?: "portrait" | "auto" | "landscape";
|
|
250
|
+
restartStrategy?: "homePage" | "homePageAndLatestPage";
|
|
251
|
+
visualEffectInBackground?: "none" | "hidden";
|
|
252
|
+
[k: string]: unknown;
|
|
253
|
+
};
|
|
254
|
+
workers?: string | {
|
|
255
|
+
isSubpackage?: boolean;
|
|
256
|
+
path?: string;
|
|
257
|
+
[k: string]: unknown;
|
|
258
|
+
};
|
|
259
|
+
[k: string]: unknown;
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
263
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
264
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
265
|
+
*/
|
|
266
|
+
/**
|
|
267
|
+
* 自定义组件配置
|
|
268
|
+
*/
|
|
269
|
+
interface Component$1 {
|
|
270
|
+
component?: boolean;
|
|
271
|
+
componentFramework?: string;
|
|
272
|
+
componentGenerics?: {
|
|
273
|
+
[k: string]: unknown;
|
|
274
|
+
};
|
|
275
|
+
componentPlaceholder?: {
|
|
276
|
+
[k: string]: unknown;
|
|
277
|
+
};
|
|
278
|
+
styleIsolation?: "isolated" | "apply-shared" | "shared";
|
|
279
|
+
usingComponents?: {
|
|
280
|
+
[k: string]: string;
|
|
281
|
+
};
|
|
282
|
+
[k: string]: unknown;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
286
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
287
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
288
|
+
*/
|
|
289
|
+
/**
|
|
290
|
+
* 页面配置, 支持对单个页面进行配置,可以在页面对应的 .json 文件来对本页面的表现进行配置
|
|
291
|
+
*/
|
|
292
|
+
interface Page$1 {
|
|
293
|
+
backgroundColor?: string;
|
|
294
|
+
backgroundColorBottom?: string;
|
|
295
|
+
backgroundColorContent?: string;
|
|
296
|
+
backgroundColorTop?: string;
|
|
297
|
+
backgroundTextStyle?: "dark" | "light";
|
|
298
|
+
componentFramework?: string;
|
|
299
|
+
componentPlaceholder?: {
|
|
300
|
+
[k: string]: unknown;
|
|
301
|
+
};
|
|
302
|
+
disableScroll?: boolean;
|
|
303
|
+
enablePassiveEvent?: {
|
|
304
|
+
[k: string]: unknown;
|
|
305
|
+
} | boolean;
|
|
306
|
+
enablePullDownRefresh?: boolean;
|
|
307
|
+
handleWebviewPreload?: "static" | "manual" | "auto";
|
|
308
|
+
homeButton?: boolean;
|
|
309
|
+
initialRenderingCache?: "static" | "dynamic";
|
|
310
|
+
navigationBarBackgroundColor?: string;
|
|
311
|
+
navigationBarTextStyle?: string;
|
|
312
|
+
navigationBarTitleText?: string;
|
|
313
|
+
navigationStyle?: "default" | "custom";
|
|
314
|
+
onReachBottomDistance?: number;
|
|
315
|
+
pageOrientation?: "portrait" | "auto" | "landscape";
|
|
316
|
+
renderer?: "webview" | "skyline";
|
|
317
|
+
rendererOptions?: {
|
|
318
|
+
skyline?: {
|
|
319
|
+
defaultContentBox?: boolean;
|
|
320
|
+
defaultDisplayBlock?: boolean;
|
|
321
|
+
disableABTest?: boolean;
|
|
322
|
+
[k: string]: unknown;
|
|
323
|
+
};
|
|
324
|
+
[k: string]: unknown;
|
|
325
|
+
};
|
|
326
|
+
restartStrategy?: "homePage" | "homePageAndLatestPage";
|
|
327
|
+
singlePage?: {
|
|
328
|
+
[k: string]: unknown;
|
|
329
|
+
};
|
|
330
|
+
style?: string;
|
|
331
|
+
styleIsolation?: "page-isolated" | "page-apply-shared" | "page-shared";
|
|
332
|
+
usingComponents?: {
|
|
333
|
+
[k: string]: string;
|
|
334
|
+
};
|
|
335
|
+
visualEffectInBackground?: "none" | "hidden";
|
|
336
|
+
[k: string]: unknown;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
340
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
341
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
342
|
+
*/
|
|
343
|
+
/**
|
|
344
|
+
* https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/sitemap.html
|
|
345
|
+
*/
|
|
346
|
+
interface Sitemap$1 {
|
|
347
|
+
rules: {
|
|
348
|
+
action?: "allow" | "disallow";
|
|
349
|
+
matching?: "exact" | "inclusive" | "exclusive" | "partial";
|
|
350
|
+
page: string;
|
|
351
|
+
params?: string[];
|
|
352
|
+
priority?: number;
|
|
353
|
+
}[];
|
|
354
|
+
[k: string]: unknown;
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
358
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
359
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
360
|
+
*/
|
|
361
|
+
interface Theme$1 {
|
|
362
|
+
dark: {
|
|
363
|
+
[k: string]: unknown;
|
|
364
|
+
};
|
|
365
|
+
light: {
|
|
366
|
+
[k: string]: unknown;
|
|
367
|
+
};
|
|
368
|
+
[k: string]: unknown;
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
372
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
373
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
374
|
+
*/
|
|
375
|
+
/**
|
|
376
|
+
* https://developers.weixin.qq.com/miniprogram/dev/framework/plugin/development.html#%E6%8F%92%E4%BB%B6%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6
|
|
377
|
+
*/
|
|
378
|
+
interface Plugin$1 {
|
|
379
|
+
main?: string;
|
|
380
|
+
pages?: {
|
|
381
|
+
[k: string]: string;
|
|
382
|
+
};
|
|
383
|
+
publicComponents?: {
|
|
384
|
+
[k: string]: string;
|
|
385
|
+
};
|
|
386
|
+
[k: string]: unknown;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* @description app.json 类型定义
|
|
391
|
+
*/
|
|
392
|
+
type App = App$1;
|
|
393
|
+
/**
|
|
394
|
+
* @description component.json 类型定义
|
|
395
|
+
*/
|
|
396
|
+
type Component = Component$1;
|
|
397
|
+
/**
|
|
398
|
+
* @description page.json 类型定义
|
|
399
|
+
*/
|
|
400
|
+
type Page = Page$1;
|
|
401
|
+
/**
|
|
402
|
+
* @description sitemap.json 类型定义
|
|
403
|
+
*/
|
|
404
|
+
type Sitemap = Sitemap$1;
|
|
405
|
+
/**
|
|
406
|
+
* @description theme.json 类型定义
|
|
407
|
+
*/
|
|
408
|
+
type Theme = Theme$1;
|
|
409
|
+
/**
|
|
410
|
+
* @description plugin.json 类型定义
|
|
411
|
+
*/
|
|
412
|
+
type Plugin = Plugin$1;
|
|
413
|
+
|
|
414
|
+
declare const JSON_SCHEMA_DEFINITIONS: readonly [{
|
|
415
|
+
filename: "app.json";
|
|
416
|
+
typeName: "App";
|
|
417
|
+
schema: unknown;
|
|
418
|
+
}, {
|
|
419
|
+
filename: "component.json";
|
|
420
|
+
typeName: "Component";
|
|
421
|
+
schema: unknown;
|
|
422
|
+
}, {
|
|
423
|
+
filename: "page.json";
|
|
424
|
+
typeName: "Page";
|
|
425
|
+
schema: unknown;
|
|
426
|
+
}, {
|
|
427
|
+
filename: "sitemap.json";
|
|
428
|
+
typeName: "Sitemap";
|
|
429
|
+
schema: unknown;
|
|
430
|
+
}, {
|
|
431
|
+
filename: "theme.json";
|
|
432
|
+
typeName: "Theme";
|
|
433
|
+
schema: unknown;
|
|
434
|
+
}, {
|
|
435
|
+
filename: "plugin.json";
|
|
436
|
+
typeName: "Plugin";
|
|
437
|
+
schema: unknown;
|
|
438
|
+
}];
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* @description 生成 JS 模板(app/page/component)
|
|
442
|
+
*/
|
|
443
|
+
declare function generateJs(type?: GenerateType): "App({})" | "Page({})" | "Component({})";
|
|
444
|
+
/**
|
|
445
|
+
* @description 生成 WXSS 模板
|
|
446
|
+
*/
|
|
447
|
+
declare function generateWxss(): string;
|
|
448
|
+
/**
|
|
449
|
+
* @description 生成 WXML 模板
|
|
450
|
+
*/
|
|
451
|
+
declare function generateWxml(filepath?: string): string;
|
|
452
|
+
/**
|
|
453
|
+
* @description 生成 JSON/JS/TS 模板
|
|
454
|
+
*/
|
|
455
|
+
declare function generateJson(type?: GenerateType, ext?: JsonExt): string;
|
|
456
|
+
|
|
457
|
+
export { type App, type Component, type GenerateType, JSON_SCHEMA_DEFINITIONS, type Page, type Plugin, type Sitemap, type Theme, generateJs, generateJson, generateWxml, generateWxss };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description 生成模板的目标类型
|
|
3
|
+
*/
|
|
1
4
|
type GenerateType = 'app' | 'page' | 'component';
|
|
5
|
+
/**
|
|
6
|
+
* @description JSON 输出扩展名
|
|
7
|
+
*/
|
|
2
8
|
type JsonExt = 'json' | 'js' | 'ts' | (string & {});
|
|
3
9
|
|
|
4
10
|
/**
|
|
@@ -380,11 +386,29 @@ interface Plugin$1 {
|
|
|
380
386
|
[k: string]: unknown;
|
|
381
387
|
}
|
|
382
388
|
|
|
389
|
+
/**
|
|
390
|
+
* @description app.json 类型定义
|
|
391
|
+
*/
|
|
383
392
|
type App = App$1;
|
|
393
|
+
/**
|
|
394
|
+
* @description component.json 类型定义
|
|
395
|
+
*/
|
|
384
396
|
type Component = Component$1;
|
|
397
|
+
/**
|
|
398
|
+
* @description page.json 类型定义
|
|
399
|
+
*/
|
|
385
400
|
type Page = Page$1;
|
|
401
|
+
/**
|
|
402
|
+
* @description sitemap.json 类型定义
|
|
403
|
+
*/
|
|
386
404
|
type Sitemap = Sitemap$1;
|
|
405
|
+
/**
|
|
406
|
+
* @description theme.json 类型定义
|
|
407
|
+
*/
|
|
387
408
|
type Theme = Theme$1;
|
|
409
|
+
/**
|
|
410
|
+
* @description plugin.json 类型定义
|
|
411
|
+
*/
|
|
388
412
|
type Plugin = Plugin$1;
|
|
389
413
|
|
|
390
414
|
declare const JSON_SCHEMA_DEFINITIONS: readonly [{
|
|
@@ -413,9 +437,21 @@ declare const JSON_SCHEMA_DEFINITIONS: readonly [{
|
|
|
413
437
|
schema: unknown;
|
|
414
438
|
}];
|
|
415
439
|
|
|
440
|
+
/**
|
|
441
|
+
* @description 生成 JS 模板(app/page/component)
|
|
442
|
+
*/
|
|
416
443
|
declare function generateJs(type?: GenerateType): "App({})" | "Page({})" | "Component({})";
|
|
444
|
+
/**
|
|
445
|
+
* @description 生成 WXSS 模板
|
|
446
|
+
*/
|
|
417
447
|
declare function generateWxss(): string;
|
|
448
|
+
/**
|
|
449
|
+
* @description 生成 WXML 模板
|
|
450
|
+
*/
|
|
418
451
|
declare function generateWxml(filepath?: string): string;
|
|
452
|
+
/**
|
|
453
|
+
* @description 生成 JSON/JS/TS 模板
|
|
454
|
+
*/
|
|
419
455
|
declare function generateJson(type?: GenerateType, ext?: JsonExt): string;
|
|
420
456
|
|
|
421
457
|
export { type App, type Component, type GenerateType, JSON_SCHEMA_DEFINITIONS, type Page, type Plugin, type Sitemap, type Theme, generateJs, generateJson, generateWxml, generateWxss };
|