@forge/cli
13.3.0-next.12-experimental-4b981ef-experimental-5b8eb3c13.3.0-next.25
out/command-line/register-app-commands.js~
out/command-line/register-app-commands.jsModified+16−4
Index: package/out/command-line/register-app-commands.js
===================================================================
--- package/out/command-line/register-app-commands.js
+++ package/out/command-line/register-app-commands.js
@@ -32,8 +32,9 @@
TemplateContext["JIRA_SERVICE_MANAGEMENT"] = "jira-service-management";
TemplateContext["CUSTOMER_SERVICE_MANAGEMENT"] = "customer-service-management";
TemplateContext["TEAMWORK_GRAPH"] = "teamwork-graph";
TemplateContext["ROVO"] = "rovo";
+ TemplateContext["TRIGGER"] = "trigger";
TemplateContext["CROSS_CONTEXT"] = "cross-context";
})(TemplateContext || (exports.TemplateContext = TemplateContext = {}));
const PRODUCT_OPTIONS = {
[TemplateContext.SHOW_ALL]: [TemplateContext.SHOW_ALL],
@@ -47,8 +48,9 @@
[TemplateContext.JIRA_SERVICE_MANAGEMENT]: [TemplateContext.JIRA_SERVICE_MANAGEMENT],
[TemplateContext.CUSTOMER_SERVICE_MANAGEMENT]: [TemplateContext.CUSTOMER_SERVICE_MANAGEMENT],
[TemplateContext.TEAMWORK_GRAPH]: [TemplateContext.TEAMWORK_GRAPH],
[TemplateContext.ROVO]: [TemplateContext.ROVO],
+ [TemplateContext.TRIGGER]: [TemplateContext.TRIGGER],
[TemplateContext.CROSS_CONTEXT]: [
TemplateContext.COMPASS,
TemplateContext.CONFLUENCE,
TemplateContext.DASHBOARDS,
@@ -277,16 +279,25 @@
return { name, directory };
}
const handleGlobalTemplateSelection = async (ui, directory) => {
ui.info(cli_shared_1.Text.create.globalTemplateSelection);
- const globalTemplates = ['global-ui', 'global-ui-typescript'];
+ const globalTemplates = [
+ 'global-ui',
+ 'global-ui-typescript',
+ 'global-full-page-ui-kit',
+ 'global-full-page-custom-ui'
+ ];
const selectedTemplate = await ui.promptForFilterableList(cli_shared_1.Text.create.promptGlobalTemplate, globalTemplates, {
format: (template) => {
switch (template) {
case 'global-ui':
- return 'global-ui';
+ return 'Global UI (UI Kit)';
case 'global-ui-typescript':
- return 'global-ui-typescript';
+ return 'Global UI (UI Kit, TypeScript)';
+ case 'global-full-page-ui-kit':
+ return 'Global Full Page (UI Kit)';
+ case 'global-full-page-custom-ui':
+ return 'Global Full Page (Custom UI)';
default:
return template;
}
}
@@ -294,12 +305,13 @@
if (!directory) {
directory = selectedTemplate;
ensureDirectoryDoesntExist(directory);
}
+ const category = selectedTemplate.includes('custom-ui') ? TemplateCategory.CUSTOM_UI : TemplateCategory.UI_KIT_2;
return {
template: selectedTemplate,
analytics: {
- category: TemplateCategory.UI_KIT_2,
+ category,
product: TemplateContext.GLOBAL
}
};
};