mirror of
https://github.com/espocrm/espocrm.git
synced 2026-07-01 08:26:04 +00:00
47 lines
1.6 KiB
JSON
47 lines
1.6 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://www.espocrm.com/schema/metadata/app/jsLibs.json",
|
|
"title": "app/jsLibs",
|
|
"description": "JS libraries definitions for the loader.",
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "object",
|
|
"description": "A lib name.",
|
|
"properties": {
|
|
"path": {
|
|
"type": "string",
|
|
"description": "A path to the lib file.",
|
|
"examples": [
|
|
"client/custom/modules/my-module/lib/some-lib.js"
|
|
]
|
|
},
|
|
"devPath": {
|
|
"type": "string",
|
|
"description": "A path to the lib file for the developer mode.",
|
|
"examples": [
|
|
"client/custom/modules/my-module/lib/original/some-lib.js"
|
|
]
|
|
},
|
|
"exportsTo": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"enum": ["window", "$.fn"]
|
|
}
|
|
],
|
|
"description": "To where the lib is exported. Use dots to define a path."
|
|
},
|
|
"exportsAs": {
|
|
"type": "string",
|
|
"description": "A key name by which the lib is available in a containing object."
|
|
},
|
|
"sourceMap": {
|
|
"type": "boolean",
|
|
"description": "Whether the source map file is available."
|
|
}
|
|
}
|
|
}
|
|
}
|