@@ -78,7 +78,10 @@ export const EJS_EXTENSIONS = new Set([
7878] ) ;
7979
8080/** Templates that have a full folder under src/templates/project/ (populated at build time from npm) */
81- export const BUILT_IN_FULL_TEMPLATES = new Set ( [ 'reactb2e' , 'reactb2x' ] ) ;
81+ export const BUILT_IN_FULL_TEMPLATES = new Set ( [
82+ 'reactinternalapp' ,
83+ 'reactexternalapp' ,
84+ ] ) ;
8285
8386/**
8487 * Default app/site names embedded in each full template; all are renamed to the project name.
@@ -88,13 +91,13 @@ export const FULL_TEMPLATE_DEFAULT_NAMES: Record<
8891 string ,
8992 { base : string ; withSuffix : string }
9093> = {
91- reactb2e : {
92- base : 'appreacttemplateb2e ' ,
93- withSuffix : 'appreacttemplateb2e1 ' ,
94+ reactinternalapp : {
95+ base : 'reactinternalapp ' ,
96+ withSuffix : 'reactinternalapp1 ' ,
9497 } ,
95- reactb2x : {
96- base : 'appreacttemplateb2x ' ,
97- withSuffix : 'appreacttemplateb2x1 ' ,
98+ reactexternalapp : {
99+ base : 'reactexternalapp ' ,
100+ withSuffix : 'reactexternalapp1 ' ,
98101 } ,
99102} ;
100103
@@ -136,6 +139,8 @@ export const A4D_SKILL_AGENTFORCE_PLACEHOLDER = '_k_';
136139export const FEATURES_PLACEHOLDER = '_f_' ;
137140/** Replaced with literal "object-search". */
138141export const OBJECT_SEARCH_PLACEHOLDER = '_os_' ;
142+ /** Replaced with literal "__examples__". */
143+ export const EXAMPLES_PLACEHOLDER = '_ex_' ;
139144/** Replaced with literal "global-search". */
140145export const GLOBAL_SEARCH_PLACEHOLDER = '_gs_' ;
141146/** Replaced with literal "components". */
@@ -158,6 +163,7 @@ export const PLACEHOLDER_KEYS = [
158163 'A4D_SKILL_AGENTFORCE_PLACEHOLDER' ,
159164 'FEATURES_PLACEHOLDER' ,
160165 'OBJECT_SEARCH_PLACEHOLDER' ,
166+ 'EXAMPLES_PLACEHOLDER' ,
161167 'GLOBAL_SEARCH_PLACEHOLDER' ,
162168 'COMPONENTS_PLACEHOLDER' ,
163169 'DETAIL_PLACEHOLDER' ,
@@ -273,7 +279,7 @@ export type GenerateBuiltInFullTemplateOptions = {
273279} ;
274280
275281/**
276- * Generate project files from a built-in full template (e.g. reactb2e, reactb2x ).
282+ * Generate project files from a built-in full template (e.g. reactinternalapp, reactexternalapp ).
277283 * Builds template vars and name replacements and delegates to generateFromProjectTemplateDir.
278284 */
279285export async function generateBuiltInFullTemplate (
@@ -346,9 +352,9 @@ export type GenerateFromProjectTemplateDirOptions = {
346352} ;
347353
348354/**
349- * Recursively walk a full project template directory (e.g. reactb2e, reactb2x ),
355+ * Recursively walk a full project template directory (e.g. reactinternalapp, reactexternalapp ),
350356 * rendering EJS for text files and copying the rest. Renames template default app/site
351- * names (e.g. appreacttemplateb2e ) to the project name in paths and file contents.
357+ * names (e.g. reactinternalapp ) to the project name in paths and file contents.
352358 */
353359export async function generateFromProjectTemplateDir (
354360 sourceDir : string ,
0 commit comments