-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.json
203 lines (202 loc) · 8.18 KB
/
config.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
{
"version": "1.0.5",
"defaults": {
"framework": "vue",
"template": "Basic",
"appShell": "BottomNavigation"
},
"frameworks": [
{
"value": "vue",
"name": "vue2",
"subList": {
"template": [
{
"value": "Basic",
"name": "Basic",
"git": "https://github.com/lavas-project/lavas-template-vue-basic.git",
"desc": "简易单页应用模版,包含 PWA 工程化相关必需内容。",
"extData": {
"packageJsonAuthor": "*__ author __*<*__ email __*>"
},
"etpl": {
"commandOpen": "{%",
"commandClose": "%}",
"variableOpen": "*__",
"variableClose": "__*"
},
"renderIgnores": [],
"exportsIgnores": [".git", "docs", "meta.json"]
},
{
"value": "App Shell",
"name": "App Shell",
"git": "https://github.com/lavas-project/lavas-template-vue-appshell.git",
"desc": "AppShell 模版,其中包含 PWA 工程化必需内容以及通用 shell 的封装。",
"extData": {
"packageJsonAuthor": "*__ author __*<*__ email __*>"
},
"etpl": {
"commandOpen": "{%",
"commandClose": "%}",
"variableOpen": "*__",
"variableClose": "__*"
},
"renderIgnores": [],
"exportsIgnores": [".git", "docs", "meta.json"],
"subList": {
"appShell": [
{
"value": "BottomNavigation",
"name": "BottomNavigation",
"desc ": "这是一个包含头部和尾部的 shell, 其中支持过场动画",
"imgs": [
{
"alt": "主页面",
"src": "https://bos.nj.bpc.baidu.com/mms-res/pwa/entry.png"
},
{
"alt": "详情页",
"src": "https://bos.nj.bpc.baidu.com/mms-res/pwa/entry.png"
},
{
"alt": "个人中心",
"src": "https://bos.nj.bpc.baidu.com/mms-res/pwa/entry.png"
}
]
}
]
}
},
{
"value": "Multiple Page App",
"name": "Multiple Page App (多页应用)",
"git": "https://github.com/lavas-project/lavas-template-vue-mpa.git",
"desc": "多页应用模版,其中包含多页应用工程化解决方案以及 PWA 工程化必需内容。",
"extData": {
"packageJsonAuthor": "*__ author __*<*__ email __*>"
},
"etpl": {
"commandOpen": "{%",
"commandClose": "%}",
"variableOpen": "*__",
"variableClose": "__*"
},
"renderIgnores": [],
"exportsIgnores": [".git", "docs", "meta.json"]
},
{
"value": "Server Side Rendering",
"name": "Server Side Rendering (服务端渲染)",
"git": "https://github.com/lavas-project/lavas-template-vue-ssr.git",
"desc": "SSR PWA 模版,其中包含 SSR 工程化解决方案以及 PWA 工程化必需内容。",
"extData": {
"packageJsonAuthor": "*__ author __*<*__ email __*>"
},
"etpl": {
"commandOpen": "{%",
"commandClose": "%}",
"variableOpen": "*__",
"variableClose": "__*"
},
"renderIgnores": [],
"exportsIgnores": [".git", "docs", "meta.json"]
}
]
},
"subString": {}
}
],
"schemas": {
"framework": {
"type": "list",
"name": "前端框架",
"required": true,
"link": "frameworks",
"default": "vue",
"checkbox": false,
"disable": true,
"depLevel": 0,
"list": [],
"jsonType": "string",
"description": "项目所选择的基础框架"
},
"template": {
"type": "list",
"name": "模版类型",
"dependence": "framework",
"default": "basic",
"ref": "template",
"depLevel": 1,
"checkbox": false,
"required": true,
"list": [],
"jsonType": "string",
"description": "初始化项目时选中的模版类型"
},
"appShell": {
"type": "list",
"name": "AppShell",
"dependence": "template",
"default": "BottomNavigation",
"ref": "appShell",
"disable": true,
"depLevel": 2,
"checkbox": false,
"required": true,
"list": [],
"jsonType": "string",
"description": "初始化项目时选中的使用的 shell 模版"
},
"dirPath": {
"type": "string",
"name": "项目目录",
"default": "./",
"invalidate": "该 path 不存在, 请输入正确的 path。",
"description": "存储导出工程的目录" ,
"disable": true,
"jsonType": "string"
},
"name": {
"type": "string",
"name": "项目名称",
"default": "pwa-project",
"regExp": "^([a-z_][0-9a-z_\\-]{1,213})?$",
"invalidate": "项目名称请输入小写字母数字 - _ 等 url 安全字符",
"description": "工程的项目名和文件夹名",
"jsonType": "string"
},
"author": {
"type": "string",
"name": "项目作者",
"default": "yourname",
"description": "工程的作者,代码注释和 package.json 需要用到",
"jsonType": "string"
},
"email": {
"type": "string",
"name": "email",
"default": "someone@somecompany.com",
"regExp": "^(\\w-*\\.*)+@(\\w-?)+(\\.\\w{2,})+$",
"invalidate": "邮箱格式错误",
"jsonType": "string",
"description": "作者邮箱"
},
"desc": {
"type": "string",
"name": "项目描述",
"default": "这是一个 pwa 项目",
"jsonType": "string",
"description": "工程的描述,用于 package.json 和 manifest.json 中的项目描述"
},
"isSsr": {
"type": "boolean",
"name": "服务端渲染",
"default": false,
"disable": true,
"required": true,
"jsonType": "boolean",
"description": "是否需要服务端渲染"
}
}
}