This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathconfig.schema.json
74 lines (74 loc) · 2.4 KB
/
config.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://newfuture.github.io/miniprogram-build/config.schema.json",
"type": "object",
"title": "The miniprogram-build config json schema",
"properties": {
"production": {
"$id": "#/properties/production",
"type": "boolean",
"title": "Release Optimization Mode",
"description": "是否开启发布优化,等效 NODE_ENV=production",
"default": false,
"examples": [false, true]
},
"src": {
"$id": "#/properties/src",
"type": "string",
"title": "The source folder",
"default": "src",
"examples": ["src"],
"pattern": "^[^:'\"\\*?<>|]+$"
},
"dist": {
"$id": "#/properties/dist",
"type": "string",
"title": "the output folder",
"default": "dist",
"examples": ["dist"],
"pattern": "^[^:'\"\\*?<>|]+$"
},
"assets": {
"$id": "#/properties/assets",
"type": "string",
"title": "The Assets folder",
"description": "检查文件变化和引用但不直接生成",
"default": "",
"examples": ["assets"],
"pattern": "^[^:'\"\\*?<>|]*$"
},
"copy": {
"$id": "#/properties/copy",
"type": "string",
"title": "The copy glob (in `src`)",
"description": "符合条件的文件会进行复制",
"examples": ["**/*.xxx"]
},
"exclude": {
"$id": "#/properties/exclude",
"type": ["array", "string"],
"title": "The exclude glob array",
"default": [],
"uniqueItems": true,
"items": {
"type": "string"
}
},
"tsconfig": {
"$id": "#/properties/tsconfig",
"type": "string",
"title": "The tsconfig.json path",
"default": "",
"examples": ["tsconfig.json"],
"pattern": "^[^:'\"\\*?<>|]*$"
},
"var": {
"$id": "#/properties/var",
"type": "object",
"title": "The Var object",
"description": "{{key}} in js and json files will be replaced",
"default": {},
"properties": {}
}
}
}