|
36 | 36 | "$ref": "#/definitions/single-ppx-spec"
|
37 | 37 | }
|
38 | 38 | },
|
39 |
| - "bs-dependency" : { |
40 |
| - "type" : "string", |
| 39 | + "bs-dependency": { |
| 40 | + "type": "string", |
41 | 41 | "title": "dependency"
|
42 |
| - }, |
| 42 | + }, |
43 | 43 | "bs-dependencies": {
|
44 | 44 | "type": "array",
|
45 | 45 | "items": {
|
|
49 | 49 | },
|
50 | 50 | "sourceItem": {
|
51 | 51 | "title": "sourceItem",
|
52 |
| - "oneOf" : [ |
| 52 | + "oneOf": [ |
53 | 53 | {
|
54 |
| - "type" : "object", |
55 |
| - "properties": { |
56 |
| - "dir": { |
57 |
| - "type": "string" |
58 |
| - }, |
59 |
| - "ppx-specs": { |
60 |
| - "$ref": "#/definitions/ppx-specs" |
61 |
| - }, |
62 |
| - "type" : { |
63 |
| - "enum" : ["dev", "lib"] |
64 |
| - }, |
65 |
| - "files": { |
66 |
| - "oneOf": [ |
67 |
| - { |
68 |
| - "type": "array", |
69 |
| - "items": { |
70 |
| - "type": "string" |
71 |
| - }, |
72 |
| - "description": "if files are empty, the build tool will populate it automatically, this is useful for initial adoption" |
| 54 | + "type": "object", |
| 55 | + "properties": { |
| 56 | + "dir": { |
| 57 | + "type": "string" |
73 | 58 | },
|
74 |
| - { |
75 |
| - "type": "object", |
76 |
| - "properties": { |
77 |
| - "slow-re": { |
78 |
| - "type": "string", |
79 |
| - "description": "Regex to glob the patterns, syntax is documented here: http://caml.inria.fr/pub/docs/manual-ocaml/libref/Str.html, if users want to have better performance for incremental build, we would suggest list it explicitly" |
80 |
| - }, |
81 |
| - "excludes": { |
| 59 | + "ppx-specs": { |
| 60 | + "$ref": "#/definitions/ppx-specs" |
| 61 | + }, |
| 62 | + "type": { |
| 63 | + "enum": [ |
| 64 | + "dev", |
| 65 | + "lib" |
| 66 | + ] |
| 67 | + }, |
| 68 | + "files": { |
| 69 | + "oneOf": [ |
| 70 | + { |
82 | 71 | "type": "array",
|
83 | 72 | "items": {
|
84 | 73 | "type": "string"
|
85 | 74 | },
|
86 |
| - "description": "A list of strings to be excluded " |
| 75 | + "description": "if files are empty, the build tool will populate it automatically, this is useful for initial adoption" |
| 76 | + }, |
| 77 | + { |
| 78 | + "type": "object", |
| 79 | + "properties": { |
| 80 | + "slow-re": { |
| 81 | + "type": "string", |
| 82 | + "description": "Regex to glob the patterns, syntax is documented here: http://caml.inria.fr/pub/docs/manual-ocaml/libref/Str.html, if users want to have better performance for incremental build, we would suggest list it explicitly" |
| 83 | + }, |
| 84 | + "excludes": { |
| 85 | + "type": "array", |
| 86 | + "items": { |
| 87 | + "type": "string" |
| 88 | + }, |
| 89 | + "description": "A list of strings to be excluded " |
| 90 | + } |
| 91 | + }, |
| 92 | + "required": [ |
| 93 | + "slow-re" |
| 94 | + ] |
87 | 95 | }
|
88 |
| - }, |
89 |
| - "required": [ |
90 |
| - "slow-re" |
91 | 96 | ]
|
92 |
| - } |
93 |
| - ] |
94 |
| - }, |
95 |
| - "bs-dependencies": { |
96 |
| - "$ref": "#/definitions/bs-dependencies", |
97 |
| - "description": "More dependencies added to this group" |
98 |
| - }, |
99 |
| - "public": { |
100 |
| - "oneOf": [ |
101 |
| - { |
102 |
| - "enum": [ |
103 |
| - "all" |
| 97 | + }, |
| 98 | + "bs-dependencies": { |
| 99 | + "$ref": "#/definitions/bs-dependencies", |
| 100 | + "description": "More dependencies added to this group" |
| 101 | + }, |
| 102 | + "public": { |
| 103 | + "oneOf": [ |
| 104 | + { |
| 105 | + "enum": [ |
| 106 | + "all" |
| 107 | + ], |
| 108 | + "description": "All modules in this directory" |
| 109 | + }, |
| 110 | + { |
| 111 | + "type": "array", |
| 112 | + "items": { |
| 113 | + "type": "string" |
| 114 | + }, |
| 115 | + "description": "Selected modules, for example, [Module_a, Module_b] " |
| 116 | + } |
104 | 117 | ],
|
105 |
| - "description": "All modules in this directory" |
| 118 | + "description": "default: export all modules by default, it is recommended for library developers to hide some interfaces" |
106 | 119 | },
|
107 |
| - { |
| 120 | + "resources": { |
108 | 121 | "type": "array",
|
109 | 122 | "items": {
|
110 | 123 | "type": "string"
|
111 |
| - }, |
112 |
| - "description": "Selected modules, for example, [Module_a, Module_b] " |
113 |
| - } |
114 |
| - ], |
115 |
| - "description": "default: export all modules by default, it is recommended for library developers to hide some interfaces" |
116 |
| - }, |
117 |
| - "resources": { |
118 |
| - "type": "array", |
119 |
| - "items": { |
120 |
| - "type": "string" |
121 |
| - } |
122 |
| - }, |
123 |
| - "subdirs": { |
124 |
| - "$ref" : "#/definitions/sources", |
125 |
| - "description": "nested specifications inside" |
126 |
| - }, |
127 |
| - "group": { |
128 |
| - "oneOf": [ |
129 |
| - { |
130 |
| - "type": "string", |
131 |
| - "description": "A _unique_ name for each directory to refer as an internal dependency later" |
| 124 | + } |
| 125 | + }, |
| 126 | + "subdirs": { |
| 127 | + "$ref": "#/definitions/sources", |
| 128 | + "description": "nested specifications inside" |
132 | 129 | },
|
133 |
| - { |
134 |
| - "properties": { |
135 |
| - "name": { |
136 |
| - "type": "string" |
| 130 | + "group": { |
| 131 | + "oneOf": [ |
| 132 | + { |
| 133 | + "type": "string", |
| 134 | + "description": "A _unique_ name for each directory to refer as an internal dependency later" |
137 | 135 | },
|
138 |
| - "hierachy": { |
139 |
| - "type": "boolean", |
140 |
| - "description": "When true, all subdirs are considered as a whole as dependency" |
| 136 | + { |
| 137 | + "properties": { |
| 138 | + "name": { |
| 139 | + "type": "string" |
| 140 | + }, |
| 141 | + "hierachy": { |
| 142 | + "type": "boolean", |
| 143 | + "description": "When true, all subdirs are considered as a whole as dependency" |
| 144 | + } |
| 145 | + } |
141 | 146 | }
|
| 147 | + ], |
| 148 | + "description": "Not implemented yet" |
| 149 | + }, |
| 150 | + "internal-depends": { |
| 151 | + "type": "array", |
| 152 | + "items": { |
| 153 | + "type": "string", |
| 154 | + "description": "internal dependencies, if unspecified, all existing listed source files are considered potential dependencies" |
142 | 155 | }
|
143 | 156 | }
|
144 |
| - ], |
145 |
| - "description": "Not implemented yet" |
| 157 | + }, |
| 158 | + "required": [ |
| 159 | + "dir" |
| 160 | + ] |
146 | 161 | },
|
147 |
| - "internal-depends": { |
148 |
| - "type": "array", |
149 |
| - "items": { |
150 |
| - "type": "string", |
151 |
| - "description": "internal dependencies, if unspecified, all existing listed source files are considered potential dependencies" |
152 |
| - } |
| 162 | + { |
| 163 | + "title": "single non nested directory", |
| 164 | + "type": "string", |
| 165 | + "description": "directory name (no nested)" |
153 | 166 | }
|
154 |
| - }, |
155 |
| - "required": [ |
156 |
| - "dir" |
157 |
| - ] |
158 |
| - }, |
159 |
| - { |
160 |
| - "title": "single non nested directory", |
161 |
| - "type" : "string", |
162 |
| - "description": "directory name (no nested)" |
163 |
| - } |
164 | 167 | ]
|
165 | 168 | },
|
166 |
| - "sources" : { |
167 |
| - "oneOf": [ |
| 169 | + "sources": { |
| 170 | + "oneOf": [ |
168 | 171 | {
|
169 | 172 | "type": "array",
|
170 | 173 | "items": {
|
171 | 174 | "$ref": "#/definitions/sourceItem"
|
172 | 175 | },
|
173 |
| - "description" : "A list of source items" |
| 176 | + "description": "A list of source items" |
174 | 177 | },
|
175 | 178 | {
|
176 | 179 | "$ref": "#/definitions/sourceItem",
|
|
179 | 182 | ],
|
180 | 183 | "description": "can be either a single sourceItem or an array of sourceItems, sourceItem can be either a single string(non nested directory) or an detailed object config"
|
181 | 184 | },
|
| 185 | + "bsc-flags": { |
| 186 | + "oneOf": [ |
| 187 | + { |
| 188 | + "type": "array", |
| 189 | + "items": { |
| 190 | + "type": "string" |
| 191 | + }, |
| 192 | + "description": "It will append flags to the default" |
| 193 | + }, |
| 194 | + { |
| 195 | + "properties": { |
| 196 | + "kind" : |
| 197 | + { |
| 198 | + "enum": [ |
| 199 | + "reset", |
| 200 | + "prefix", |
| 201 | + "append" |
| 202 | + ] |
| 203 | + }, |
| 204 | + "flags" : { |
| 205 | + "$ref" : "#/definitions/stringArray" |
| 206 | + } |
| 207 | + }, |
| 208 | + "description": "Not implemented yet" |
| 209 | + } |
| 210 | + ] |
| 211 | + }, |
182 | 212 | "stringArray": {
|
183 | 213 | "type": "array",
|
184 | 214 | "items": {
|
|
241 | 271 | "description": "external include directories, which will be applied -I to all compilation units, it is *not needed* in most cases"
|
242 | 272 | },
|
243 | 273 | "sources": {
|
244 |
| - "$ref" : "#/definitions/sources", |
245 |
| - "description": "specication of where source code is " |
| 274 | + "$ref": "#/definitions/sources", |
| 275 | + "description": "specication of where source code is " |
246 | 276 | },
|
247 |
| - |
248 | 277 | "generate-merlin": {
|
249 | 278 | "type": "boolean",
|
250 | 279 | "description": "default true (generate .merlin)"
|
| 280 | + }, |
| 281 | + "use-stdlib" : { |
| 282 | + "type" : "boolean", |
| 283 | + "description": "default true(Set use OCaml stdlib or not)" |
251 | 284 | }
|
252 | 285 | },
|
253 | 286 | "additionalProperties": false,
|
|
0 commit comments