Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 41 additions & 3 deletions docs/docson/build-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,40 @@
],
"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"
},
"targetItem": {
"oneOf": [
{
"type": "string",
"enum": [
"js"
],
"description": "JS target compiled using BuckleScript"
},
{
"type": "object",
"properties": {
"kind": {
"enum": [
"native",
"bytecode"
],
"description": "The compiler to use for the target"
},
"entryPoint": {
"type": "string",
"description": "Path to file used as entrypoint for this target"
}
}
}
]
},
"buildable-targets": {
"type": "array",
"items": {
"$ref": "#/definitions/targetItem"
},
"description": "A list of buildable targets"
},
"bsc-flags": {
"oneOf": [
{
Expand All @@ -196,8 +230,8 @@
},
{
"properties": {
"kind" :
{
"kind" :
{
"enum": [
"reset",
"prefix",
Expand Down Expand Up @@ -277,6 +311,10 @@
"$ref": "#/definitions/sources",
"description": "specication of where source code is "
},
"buildable-targets": {
"$ref": "#/definitions/buildable-targets",
"description": "Used by bsb to build to native/bytecode (instead of the default JS)"
},
"generate-merlin": {
"type": "boolean",
"description": "default true (generate .merlin)"
Expand All @@ -299,4 +337,4 @@
"name",
"sources"
]
}
}