From 90149dae59d91f1cc5b8dc1928005a3c8764a78c Mon Sep 17 00:00:00 2001 From: Alexandre Bodin Date: Mon, 8 Jul 2019 16:13:36 +0200 Subject: [PATCH] Update wordings --- .../strapi-generate-new/lib/create-customized-project.js | 3 +++ packages/strapi-generate-new/lib/create-project.js | 6 +++--- .../strapi-generate-new/lib/create-quickstart-project.js | 5 +---- packages/strapi-generate-new/lib/index.js | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/strapi-generate-new/lib/create-customized-project.js b/packages/strapi-generate-new/lib/create-customized-project.js index 3d47372a00..37a36138f2 100644 --- a/packages/strapi-generate-new/lib/create-customized-project.js +++ b/packages/strapi-generate-new/lib/create-customized-project.js @@ -24,6 +24,7 @@ module.exports = async scope => { ); }); + console.log(); console.log('Creating a project with custom database options.'); await trackUsage({ event: 'didConnectDatabase', scope }); return createProject(scope, configuration); @@ -68,7 +69,9 @@ async function askDbInfosAndTest(scope) { ) .catch(err => { if (retries < MAX_RETRIES - 1) { + console.log(); console.log(`⛔️ Connection test failed: ${err.message}`); + console.log(); if (scope.debug) { console.log('Full error log:'); diff --git a/packages/strapi-generate-new/lib/create-project.js b/packages/strapi-generate-new/lib/create-project.js index aadf57aaa1..739b8bf704 100644 --- a/packages/strapi-generate-new/lib/create-project.js +++ b/packages/strapi-generate-new/lib/create-project.js @@ -104,13 +104,13 @@ module.exports = async function createProject( console.log('Available commands in your project:'); console.log(); console.log(` ${cmd} develop`); - console.log(' Starts Strapi in watch mode.'); + console.log(' Start Strapi in watch mode.'); console.log(); console.log(` ${cmd} start`); - console.log(' Starts Strapi without watch mode.'); + console.log(' Start Strapi without watch mode.'); console.log(); console.log(` ${cmd} build`); - console.log(' Builds Strapi admin panel.'); + console.log(' Build Strapi admin panel.'); console.log(); console.log(` ${cmd} strapi`); console.log(` Display all available commands.`); diff --git a/packages/strapi-generate-new/lib/create-quickstart-project.js b/packages/strapi-generate-new/lib/create-quickstart-project.js index e73889a7f7..0f7bd892f5 100644 --- a/packages/strapi-generate-new/lib/create-quickstart-project.js +++ b/packages/strapi-generate-new/lib/create-quickstart-project.js @@ -1,7 +1,6 @@ 'use strict'; const execa = require('execa'); -const chalk = require('chalk'); const { trackUsage } = require('./utils/usage'); const defaultConfigs = require('./utils/db-configs.js'); @@ -23,9 +22,7 @@ module.exports = async function createQuickStartProject(scope) { await createProject(scope, configuration); if (scope.runQuickstartApp === true) { - console.log( - `Running your Strapi application at ${chalk.green(scope.rootPath)}` - ); + console.log(`Running your Strapi application.`); await execa('npm', ['run', 'develop'], { stdio: 'inherit', diff --git a/packages/strapi-generate-new/lib/index.js b/packages/strapi-generate-new/lib/index.js index 9d905293ae..fa3b9ca2bc 100644 --- a/packages/strapi-generate-new/lib/index.js +++ b/packages/strapi-generate-new/lib/index.js @@ -53,7 +53,7 @@ module.exports = (projectDirectory, cliArguments) => { parseDatabaseArguments({ scope, args: cliArguments }); initCancelCatcher(scope); - console.log(`Creating a new Strapi application in ${chalk.green(rootPath)}.`); + console.log(`Creating a new Strapi application at ${chalk.green(rootPath)}.`); console.log(); return generateNew(scope).catch(error => {