@forge/cli
13.3.0-next.18-experimental-6320d7213.3.0-next.20-experimental-cf2ad4c
out/command-line/register-app-commands.js~
out/command-line/register-app-commands.jsModified+14−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
@@ -279,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;
}
}
@@ -296,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
}
};
};