forked from gary-kim/nc-build-script
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.schema.json
More file actions
128 lines (128 loc) · 3.84 KB
/
config.schema.json
File metadata and controls
128 lines (128 loc) · 3.84 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
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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/gary-kim/nc-build-script/master/config.schema.json",
"title": "NC Build Script",
"description": "Build script configuration for use with Nextcloud",
"type": "object",
"properties": {
"$schema": {
"description": "Url to this file to help IDE users when editing the config",
"type": "string"
},
"name": {
"description": "Name of main server repo",
"type": "string"
},
"version": {
"description": "Version to checkout to in main repo and all other repos unless otherwise specified",
"type": "string"
},
"repo": {
"description": "Repository location of main server",
"type": "string"
},
"versionString": {
"description": "Custom string to put in $OC_VersionString in version.php",
"type": "string"
},
"updateChannel": {
"description": "Custom string to set the update channel to in version.php",
"type": "string"
},
"exclude": {
"description": "List of glob patterns to remove in final release",
"type": "array",
"default": [],
"items": {
"type": "string"
}
},
"globalExclude": {
"description": "List of glob patterns to remove from all apps in final release",
"type": "array",
"default": [],
"items": {
"type": "string"
}
},
"includedPatches": {
"description": "List of glob patterns for patches to apply before making the final release from the included patches",
"type": "array",
"default": [],
"items": {
"type": "string"
}
},
"patches": {
"description": "List of glob patterns for patches to apply before making the final release. These paths should be relative to your config location.",
"type": "array",
"default": [],
"items": {
"type": "string"
}
},
"apps": {
"type": "object",
"description": "Apps to include in final release",
"propertyNames": {
"pattern": "^([a-z]|_){1,80}$"
},
"patternProperties": {
"^([a-z]|_){1,80}$": {
"type": "object",
"description": "App to include in final release",
"properties": {
"repo": {
"type": "string",
"description": "Repository location of the app"
},
"version": {
"type": "string",
"description": "Version to checkout in app"
},
"remove": {
"anyOf": [
{
"type": "string"
},
{
"type": "boolean"
}
],
"default": false,
"description": "Whether to remove to remove the app or directory that was there previously. Can be set to\"continue\" if you'd like the directory to be removed then replaced with the app you specified"
},
"exclude": {
"description": "List of glob patterns to remove from the app in final release",
"type": "array",
"default": [],
"items": {
"type": "string"
}
},
"before_cmds": {
"description": "Commands to run in the app directory just after cloning",
"type": "array",
"default": [],
"items": {
"type": "string"
}
},
"appsDir": {
"type": "string",
"description": "Directory in which to place the app",
"default": "./apps"
},
"additionalProperties": false
}
}
}
}
},
"required": [
"name",
"version",
"repo"
],
"additionalProperties": false
}