-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.json
231 lines (231 loc) · 8.61 KB
/
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
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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
{
"$ref": "#/definitions/Config",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"Config": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string"
},
"clientEntry": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "object"
}
],
"markdownDescription": "Client entry point, use the [webpack entry format](https://webpack.js.org/concepts/#entry)."
},
"clientSourceMap": {
"description": "Produce source for map for client code?\n\nDefault to `true`.",
"type": "boolean"
},
"compileClientNodeModules": {
"markdownDescription": "Should compile `node_modules` for client code?\n\nDefault to `true`.",
"type": "boolean"
},
"crawlConcurrency": {
"markdownDescription": "Concurrency while staticize.\n\nDefault to `4`.",
"type": "number"
},
"crawlEnabled": {
"markdownDescription": "Enable crawl links when staticize?\n\nDefault to `true`.",
"type": "boolean"
},
"exitStaticizeOnError": {
"description": "Exit the staticize process when encounter an error?\n\nDefault to `false`.",
"type": "boolean"
},
"experimentalBuildOutput": {
"const": "standalone",
"markdownDescription": "Use `'standalone'` to export a standalone version of Pluffa Node\nutil for ship it in a container environment.",
"type": "string"
},
"nodeModule": {
"enum": [
"commonjs",
"esm"
],
"markdownDescription": "The import compilation format of NodeJS code.\n\nDefault to `'esm'`.",
"type": "string"
},
"outputDir": {
"markdownDescription": "Output direcotry of staticize command.\n\nDefault to `'build'`.",
"type": "string"
},
"port": {
"markdownDescription": "Http port of webserver.\n\nDefault to `7000`.",
"type": "number"
},
"proxy": {
"markdownDescription": "If specified Pluffa will use the given URL as proxy.\nUtil for avoiding CORS problems in development.\n\n**IMPORTANT**:\nBy default the proxy is not enabled when running the server\nin production mode by running the `start` command.\nIf you really you want to use a proxy in production mode set\n`useProxyInProd` to `true`.",
"type": "string"
},
"publicDir": {
"anyOf": [
{
"type": "string"
},
{
"const": false,
"type": "boolean"
}
],
"markdownDescription": "Public direcotry used to serve public files.\nSet `false` to disable serving public files.\n\nDefault to `'public'`."
},
"runtime": {
"const": "node",
"description": "Pluffa runtime.",
"type": "string"
},
"serveStaticAssets": {
"description": "Should serve static assets on production server?\n\nDefault to `true`.",
"type": "boolean"
},
"serverComponent": {
"description": "Path to Server React Component file.",
"type": "string"
},
"skeletonComponent": {
"description": "Path to Skeleton React Component file.",
"type": "string"
},
"statikDataDir": {
"anyOf": [
{
"type": "string"
},
{
"const": false,
"type": "boolean"
}
],
"markdownDescription": "Directory where exports the statik files when staticize.\n\nDefault to `'data'`."
},
"statikHandler": {
"description": "Path of statik handler file.",
"type": "string"
},
"urls": {
"items": {
"type": "string"
},
"markdownDescription": "Urls to start the staticize process.\n\nDefault to: `['/']`.",
"type": "array"
},
"useHelpersForClientCode": {
"markdownDescription": "Use external helpers package when compiling client code?\n\n- Install `@babel/runtime` for Babel.\n- Install `@swc/helpers` for SWC.\n\nDefault to `false`.",
"type": "boolean"
},
"useProxyInProd": {
"description": "Use proxy in the production server? Default to `false`.",
"type": "boolean"
},
"useSwc": {
"markdownDescription": "Use the [SWC](https://swc.rs) Rust compiler instead of [Babel](https://babeljs.io) to speed\nup code compilation.\n\nDefault to `false`.",
"type": "boolean"
}
},
"required": [
"clientEntry",
"runtime",
"serverComponent",
"skeletonComponent"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string"
},
"clientEntry": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "object"
}
],
"markdownDescription": "Client entry point, use the [webpack entry format](https://webpack.js.org/concepts/#entry)."
},
"clientSourceMap": {
"markdownDescription": "Produce source for map for client code?\n\nDefault to `true`.",
"type": "boolean"
},
"compileClientNodeModules": {
"markdownDescription": "Should compile `node_modules` for client code?\n\nDefault to `true`.",
"type": "boolean"
},
"miniflareConfig": {
"markdownDescription": "Inject extra [Miniflare](https://miniflare.dev/get-started/api) configuration.\nNote this configs only effect yout dev environment.",
"type": "object"
},
"outputDir": {
"markdownDescription": "Output directory of your worker runtime code.\n\nDefault to `'build'`.",
"type": "string"
},
"port": {
"markdownDescription": "Http port of webserver.\n\nDefault to `7000`.",
"type": "number"
},
"publicDir": {
"anyOf": [
{
"type": "string"
},
{
"const": false,
"type": "boolean"
}
],
"markdownDescription": "Public direcotry used to serve public files.\nSet `false` to disable serving public files.\n\nDefault to `'public'`."
},
"runtime": {
"const": "cloudflare-workers",
"description": "Pluffa runtime.",
"type": "string"
},
"useHelpersForClientCode": {
"markdownDescription": "Use external helpers package when compiling client code?\n\n- Install `@babel/runtime` for Babel.\n- Install `@swc/helpers` for SWC.\n\nDefault to `false`.",
"type": "boolean"
},
"useSwc": {
"markdownDescription": "Use the [SWC](https://swc.rs) Rust compiler instead of [Babel](https://babeljs.io) to speed\nup code compilation.\n\nDefault to `false`.",
"type": "boolean"
},
"workerEntry": {
"description": "Path to to your worker file.",
"type": "string"
}
},
"required": [
"clientEntry",
"runtime",
"workerEntry"
],
"type": "object"
}
]
}
}
}