chore: update naming to next instead

Signed-off-by: benjdlambert <ben@blam.sh>
This commit is contained in:
benjdlambert
2025-07-21 10:53:33 +02:00
parent cd317e31da
commit f97f9dd67e
6 changed files with 9 additions and 10 deletions
+2 -2
View File
@@ -96,8 +96,8 @@ describe('command entrypoint', () => {
expect(buildAppMock).toHaveBeenCalled();
});
it('should call expected tasks when `--experimental-frontend` is supplied', async () => {
const cmd = { experimentalFrontend: true } as unknown as Command;
it('should call expected tasks when `--next` is supplied', async () => {
const cmd = { next: true } as unknown as Command;
await createApp(cmd);
expect(checkAppExistsMock).toHaveBeenCalled();
expect(tryInitGitRepositoryMock).toHaveBeenCalled();
+1 -1
View File
@@ -70,7 +70,7 @@ export default async (opts: OptionValues): Promise<void> => {
? paths.resolveTarget(opts.templatePath)
: paths.resolveOwn('templates/default-app');
// If using the default template, filter out `packages/app` when the `--experimental-frontend` flag
// If using the default template, filter out `packages/app` when the `--next` flag
// is used or `packages/app-next` when its not used.
const excludedDirs = !opts.templatePath
? [opts.experimentalFrontend ? 'packages/app/' : 'packages/app-next/']
+1 -4
View File
@@ -31,10 +31,7 @@ const main = (argv: string[]) => {
.name('backstage-create-app')
.version(version)
.description('Creates a new app in a new directory or specified path')
.option(
'--experimental-frontend',
'Use the default template with the experimental frontend',
)
.option('--next', 'Use the next generation of the app template')
.option(
'--path [directory]',
'Location to store the app defaulting to a new folder with the app name',