forked from ircmaxell/php-compiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpc-json.schema.json
More file actions
47 lines (47 loc) · 1.7 KB
/
phpc-json.schema.json
File metadata and controls
47 lines (47 loc) · 1.7 KB
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/PurHur/php-compiler/docs/phpc-json.schema.json",
"title": "phpc.json project manifest",
"description": "Machine-readable schema for php-compiler web/AOT project manifests (issue #263).",
"type": "object",
"additionalProperties": false,
"properties": {
"binary": {
"type": "string",
"description": "Relative or absolute path to the AOT executable (phpc serve --aot, phpc build -o)."
},
"public": {
"type": "string",
"description": "Document root for static assets (optional; defaults to project directory when serving)."
},
"entry": {
"type": "string",
"description": "PHP entry script for phpc build (issue #106; validated when present)."
},
"index": {
"type": "string",
"description": "Front-controller script path for directory requests (DevServer; optional)."
},
"includes": {
"type": "array",
"description": "Extra PHP paths bundled with entry on phpc build --project (issue #452).",
"items": {
"type": "string"
}
},
"autoload": {
"type": "object",
"description": "PSR-4 autoload map (issue #155; stub until implemented).",
"additionalProperties": false,
"properties": {
"psr-4": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"required": ["binary"]
}