From d28928be731d849143f09797845645b806854f98 Mon Sep 17 00:00:00 2001 From: 1000TurquoisePogs Date: Tue, 30 Jul 2024 16:19:22 -0400 Subject: [PATCH] Add schema item for custom entrypoint names Signed-off-by: 1000TurquoisePogs --- schemas/plugindefinition-schema.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/schemas/plugindefinition-schema.json b/schemas/plugindefinition-schema.json index 50e074c..151a039 100644 --- a/schemas/plugindefinition-schema.json +++ b/schemas/plugindefinition-schema.json @@ -228,6 +228,22 @@ "framework": { "type": "string", "enum": [ "angular2", "angular", "react" ] + }, + "entryPoint": { + "type": "object", + "description": "Describes a path, relative to the app's '/web' folder in the browser, where the main file is that will be loaded by the Zowe Desktop. This is assumed to be 'main.js' for Zowe versions older than v3 but allows you to ship multiple entryPoints to target different versions of Zowe", + "additionalProperties": false, + "properties": { + "2.0": { + "const": "main.js", + "type": "string", + "description": "This property is not configurable. The Zowe Desktop in v2 will always search for web/main.js. This entry is just defined to document this fact." + }, + "3.0": { + "type": "string", + "description": "This is a path, relative to the app's '/web' folder in the browser, where the main file that will be loaded by the Zowe Desktop is located. This should not be 'main.js' to avoid conflict with that name used in Zowe v2." + } + } } } },