@anatine/esbuildnx
Version:
Esbuild plugin for Nx
76 lines (75 loc) • 1.89 kB
JSON
{
"$schema": "http://json-schema.org/schema",
"cli": "nx",
"title": "Build executor",
"description": "",
"type": "object",
"properties": {
"main": {
"type": "string",
"description": "The name of the main entry-point file."
},
"tsConfig": {
"type": "string",
"description": "The name of the Typescript configuration file."
},
"outputPath": {
"type": "string",
"description": "The output path of the generated files."
},
"bundle": {
"type": "boolean",
"description": "Bundle output files.",
"default": true
},
"watch": {
"type": "boolean",
"description": "Run build when files change.",
"default": false
},
"assets": {
"type": "array",
"description": "List of static application assets.",
"default": [],
"items": {
"$ref": "#/definitions/assetPattern"
}
}
},
"required": [],
"definitions": {
"assetPattern": {
"oneOf": [
{
"type": "object",
"properties": {
"glob": {
"type": "string",
"description": "The pattern to match."
},
"input": {
"type": "string",
"description": "The input directory path in which to apply 'glob'. Defaults to the project root."
},
"ignore": {
"description": "An array of globs to ignore.",
"type": "array",
"items": {
"type": "string"
}
},
"output": {
"type": "string",
"description": "Absolute path within the output."
}
},
"additionalProperties": false,
"required": ["glob", "input", "output"]
},
{
"type": "string"
}
]
}
}
}