From 7c6dc90592be18be574c9e6fef7fa38f94438a01 Mon Sep 17 00:00:00 2001 From: David Baldwynn Date: Tue, 21 Nov 2017 13:33:25 -0800 Subject: [PATCH] added ASCII art for setup script --- scripts/setup.js | 11 ++++++----- scripts/setup_constants.js | 8 ++++++++ 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/scripts/setup.js b/scripts/setup.js index 4eeec3cf..84c0e837 100644 --- a/scripts/setup.js +++ b/scripts/setup.js @@ -142,9 +142,10 @@ var createENVFile = function(cb) { } var checkENVAndRunSetup = function(cb) { + console.log(chalk.green(constants.asciiArt)); if(require.main === module){ - console.log(chalk.green('\n\nWelcome to TellForm\'s Setup Tool')); - console.log(chalk.green('Follow the prompts to begin.\n---------------------------------------------------------------------\n\n')); + console.log(chalk.green('Welcome to TellForm\'s Setup Tool')); + console.log(chalk.green('Follow the prompts to begin.\n-------------------------------------------\n\n')); } if(fs.existsSync('./\.env') && require.main === module) { @@ -159,9 +160,9 @@ var checkENVAndRunSetup = function(cb) { } else { if(require.main !== module){ - console.log(chalk.green('\nWelcome to TellForm!\n')); - console.log(chalk.green('The following prompts will help you configure your TellForm instance for your needs')); - console.log(chalk.green('These prompts won\'t show up again after the initial setup.\n---------------------------------------------------------------------\n\n')); + console.log(chalk.green('Welcome to TellForm\'s Initial Setup\n')); + console.log(chalk.green('The following prompts will help you properly configure your TellForm instance.')); + console.log(chalk.green('If you want to run this tool after your inital setup, run `node scripts/setup.js`.\n---------------------------------------------------------------------\n\n')); } createENVFile(); } diff --git a/scripts/setup_constants.js b/scripts/setup_constants.js index 235350c9..29397906 100644 --- a/scripts/setup_constants.js +++ b/scripts/setup_constants.js @@ -16,6 +16,14 @@ var validateEmail = createRegexValidator(constants.regex.email, 'Please enter a var validateUsername = createRegexValidator(constants.regex.username, 'Usernames can only contain alphanumeric characters and \'-\''); module.exports = { + asciiArt: " _____ _ _______ \n" + + " |_ _| | | | ___| \n" + + " | | ___| | | |_ ___ _ __ _ __ ___ \n" + + " | |/ _ \\ | | _/ _ \\| '__| '_ ` _ \\ \n" + + " | | __/ | | || (_) | | | | | | | |\n" + + " \\_/\\___|_|_\\_| \\___/|_| |_| |_| |_|\n", + + replaceENVQuestion: { type: 'confirm', name: 'replaceENVFile',