summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-05-25 13:15:16 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-05-25 13:15:16 +0900
commit3ed3da8bf4fc083c8d7dc1858a264fd478bd1df5 (patch)
tree9f6ad2e0711a746cf784282c30ea39578d0479eb /tools
parent[CI] Disable cache (diff)
downloadsharkey-3ed3da8bf4fc083c8d7dc1858a264fd478bd1df5.tar.gz
sharkey-3ed3da8bf4fc083c8d7dc1858a264fd478bd1df5.tar.bz2
sharkey-3ed3da8bf4fc083c8d7dc1858a264fd478bd1df5.zip
いい感じに
Diffstat (limited to 'tools')
-rw-r--r--tools/init.js6
1 files 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);
}