You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
1.6 KiB
90 lines
1.6 KiB
{
|
|
"definitions": {
|
|
"ObjectPattern": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"to": {
|
|
"type": "string"
|
|
},
|
|
"context": {
|
|
"type": "string"
|
|
},
|
|
"toType": {
|
|
"enum": ["dir", "file", "template"]
|
|
},
|
|
"test": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"instanceof": "RegExp"
|
|
}
|
|
]
|
|
},
|
|
"force": {
|
|
"type": "boolean"
|
|
},
|
|
"ignore": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"flatten": {
|
|
"type": "boolean"
|
|
},
|
|
"cache": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"transform": {
|
|
"instanceof": "Function"
|
|
},
|
|
"transformPath": {
|
|
"instanceof": "Function"
|
|
}
|
|
},
|
|
"required": ["from"]
|
|
},
|
|
"StringPattern": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
},
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/StringPattern"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/ObjectPattern"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|