diff --git a/docs/docson/build-schema.json b/docs/docson/build-schema.json index 79b8d0153e..f9c1d17a0e 100644 --- a/docs/docson/build-schema.json +++ b/docs/docson/build-schema.json @@ -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": [ { @@ -196,8 +230,8 @@ }, { "properties": { - "kind" : - { + "kind" : + { "enum": [ "reset", "prefix", @@ -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)" @@ -299,4 +337,4 @@ "name", "sources" ] -} \ No newline at end of file +}