From a0e5980725cdb844be2fa4fa9b0a73aa2a75fedb Mon Sep 17 00:00:00 2001 From: artemkaint Date: Thu, 13 Aug 2015 17:48:17 +0300 Subject: [PATCH] Use hexadecimal literals istead of octal literals in install tasks --- tasks/config/project/install.js | 2 +- tasks/install.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tasks/config/project/install.js b/tasks/config/project/install.js index 17dec2877..85a69418a 100644 --- a/tasks/config/project/install.js +++ b/tasks/config/project/install.js @@ -278,7 +278,7 @@ module.exports = { ' {packageMessage} \n' + ' \n' + ' Is this your project folder?\n' + - ' \033[92m{root}\033[0m \n' + + ' \x1b[92m{root}\x1b[0m \n' + ' \n ' + '\n', choices: [ diff --git a/tasks/install.js b/tasks/install.js index ac5f54e75..5f8dfeda1 100644 --- a/tasks/install.js +++ b/tasks/install.js @@ -146,7 +146,7 @@ if(currentConfig && manager.name === 'NPM') { .pipe(gulp.dest(manager.root)) ; - console.info('Update complete! Run "\033[92mgulp build\033[0m" to rebuild dist/ files.'); + console.info('Update complete! Run "\x1b[92mgulp build\x1b[0m" to rebuild dist/ files.'); return; } @@ -170,7 +170,7 @@ if(currentConfig && manager.name === 'NPM') { // PM that supports Build Tools (NPM Only Now) if(manager.name == 'NPM') { rootQuestions[0].message = rootQuestions[0].message - .replace('{packageMessage}', 'We detected you are using \033[92m' + manager.name + '\033[0m. Nice! ') + .replace('{packageMessage}', 'We detected you are using \x1b[92m' + manager.name + '\x1b[0m. Nice! ') .replace('{root}', manager.root) ; // set default path to detected PM root @@ -282,7 +282,7 @@ gulp.task('create install files', function(callback) { console.error('NPM does not have permissions to create folders at your specified path. Adjust your folders permissions and run "npm install" again'); } - console.log('Installing to \033[92m' + answers.semanticRoot + '\033[0m'); + console.log('Installing to \x1b[92m' + answers.semanticRoot + '\x1b[0m'); console.info('Copying UI definitions'); wrench.copyDirSyncRecursive(source.definitions, installPaths.definition, settings.wrench.overwrite); @@ -406,7 +406,7 @@ gulp.task('clean up install', function() { // Completion Message if(installFolder) { - console.log('\n Setup Complete! \n Installing Peer Dependencies. \033[0;31mPlease refrain from ctrl + c\033[0m... \n After completion navigate to \033[92m' + answers.semanticRoot + '\033[0m and run "\033[92mgulp build\033[0m" to build'); + console.log('\n Setup Complete! \n Installing Peer Dependencies. \x1b[0;31mPlease refrain from ctrl + c\x1b[0m... \n After completion navigate to \x1b[92m' + answers.semanticRoot + '\x1b[0m and run "\x1b[92mgulp build\x1b[0m" to build'); process.exit(0); } else {