From 3ed3da8bf4fc083c8d7dc1858a264fd478bd1df5 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 25 May 2017 13:15:16 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=84=E3=81=84=E6=84=9F=E3=81=98=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/init.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/init.js b/tools/init.js index d981b87d3b..39c45c82d1 100644 --- a/tools/init.js +++ b/tools/init.js @@ -1,6 +1,8 @@ const fs = require('fs'); +const path = require('path'); const yaml = require('js-yaml'); const inquirer = require('inquirer'); +const chalk = require('chalk'); const configDirPath = `${__dirname}/../.config`; const configPath = `${configDirPath}/default.yml`; @@ -170,12 +172,12 @@ inquirer.prompt(form).then(as => { } }; - console.log(`Thanks. Writing the configuration to ${configPath}`); + console.log(`Thanks. Writing the configuration to ${chalk.bold(path.resolve(configPath))}`); try { fs.mkdirSync(configDirPath); fs.writeFileSync(configPath, yaml.dump(conf)); - console.log('Well done.'); + console.log(chalk.green('Well done.')); } catch (e) { console.error(e); }