mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
c2d429d124
* feat: add flags config * feat: update doc
418 lines
13 KiB
JSON
418 lines
13 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"BaseItem": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"category": {
|
|
"type": "string"
|
|
},
|
|
"cmakeConfig": {
|
|
"type": "string"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
},
|
|
"dependencies": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"enginePlugin": {
|
|
"type": "boolean"
|
|
},
|
|
"hidden": {
|
|
"type": "boolean"
|
|
},
|
|
"isNativeModule": {
|
|
"type": "boolean"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"readonly": {
|
|
"type": "boolean"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "object"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"CategoryInfo": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"checkable": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Features": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"2d": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"3d": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"animation": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"audio": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"base": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"custom-pipeline": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"custom-pipeline-post-process": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"legacy-pipeline": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"debug-renderer": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"dragon-bones": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"geometry-renderer": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"gfx-webgl": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"gfx-webgl2": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"gfx-webgpu": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"intersection-2d": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"light-probe": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"marionette": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"meshopt": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"occlusion-query": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"particle": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"particle-2d": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"physics": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"physics-2d": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"physics-2d-box2d": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"physics-2d-box2d-wasm": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"physics-2d-builtin": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"physics-ammo": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"physics-builtin": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"physics-cannon": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"physics-physx": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"primitive": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"procedural-animation": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"profiler": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"skeletal-animation": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"spine": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"terrain": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"tiled-map": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"tween": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"ui": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"websocket": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"websocket-server": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"webview": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
},
|
|
"xr": {
|
|
"$ref": "#/definitions/IFeatureItem"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"IFeatureItem": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"category": {
|
|
"type": "string"
|
|
},
|
|
"cmakeConfig": {
|
|
"type": "string"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
},
|
|
"dependencies": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"enginePlugin": {
|
|
"type": "boolean"
|
|
},
|
|
"hidden": {
|
|
"type": "boolean"
|
|
},
|
|
"isNativeModule": {
|
|
"type": "boolean"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"options": {
|
|
"$ref": "#/definitions/Record<EngineFeature,BaseItem>"
|
|
},
|
|
"readonly": {
|
|
"type": "boolean"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "object"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Record<EngineFeature,BaseItem>": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"2d": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"3d": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"animation": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"audio": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"base": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"custom-pipeline": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"custom-pipeline-post-process": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"legacy-pipeline": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"debug-renderer": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"dragon-bones": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"geometry-renderer": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"gfx-webgl": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"gfx-webgl2": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"gfx-webgpu": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"intersection-2d": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"light-probe": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"marionette": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"meshopt": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"occlusion-query": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"particle": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"particle-2d": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"physics": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"physics-2d": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"physics-2d-box2d": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"physics-2d-box2d-wasm": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"physics-2d-builtin": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"physics-ammo": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"physics-builtin": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"physics-cannon": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"physics-physx": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"primitive": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"procedural-animation": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"profiler": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"skeletal-animation": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"spine": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"terrain": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"tiled-map": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"tween": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"ui": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"websocket": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"websocket-server": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"webview": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"xr": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
"properties": {
|
|
"$schema": {
|
|
"type": "string"
|
|
},
|
|
"categories": {
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/CategoryInfo"
|
|
},
|
|
"description": "The categories info",
|
|
"type": "object"
|
|
},
|
|
"features": {
|
|
"$ref": "#/definitions/Features",
|
|
"description": "The modules info"
|
|
},
|
|
"migrationScript": {
|
|
"description": "The script to migrate, this script should export a const migrations: Migration[]`.",
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|