From f5d0be01540ae1f0a28d7ed5bc0ff89673df2178 Mon Sep 17 00:00:00 2001 From: Raghunandan Date: Wed, 8 Apr 2020 11:59:26 +0200 Subject: [PATCH] PLugin -> app --- packages/cli/src/commands/create-app/createApp.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/cli/src/commands/create-app/createApp.ts b/packages/cli/src/commands/create-app/createApp.ts index 826f9866d2..5863d9e705 100644 --- a/packages/cli/src/commands/create-app/createApp.ts +++ b/packages/cli/src/commands/create-app/createApp.ts @@ -57,11 +57,11 @@ async function cleanUp(tempDir: string) { }); } -async function buildApp(pluginFolder: string) { +async function buildApp(appFolder: string) { const commands = ['yarn install', 'yarn build']; for (const command of commands) { await Task.forItem('executing', command, async () => { - process.chdir(pluginFolder); + process.chdir(appFolder); await exec(command).catch(error => { process.stdout.write(error.stderr); @@ -80,7 +80,7 @@ export async function moveApp( await Task.forItem('moving', id, async () => { await fs.move(tempDir, destination).catch(error => { throw new Error( - `Failed to move plugin from ${tempDir} to ${destination}: ${error.message}`, + `Failed to move app from ${tempDir} to ${destination}: ${error.message}`, ); }); }); @@ -97,7 +97,7 @@ export default async () => { return chalk.red('Please enter a name for the app'); } else if (!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(value)) { return chalk.red( - 'Plugin name must be kebab-cased and contain only letters, digits, and dashes.', + 'App name must be kebab-cased and contain only letters, digits, and dashes.', ); } return true;