💄 use chalk in console.log

This commit is contained in:
afc163 2018-12-23 17:45:31 +08:00 committed by 偏右
parent 03c10c9a05
commit b3b39fcfd5
3 changed files with 5 additions and 2 deletions

View File

@ -109,6 +109,7 @@
"bisheng-plugin-description": "^0.1.4", "bisheng-plugin-description": "^0.1.4",
"bisheng-plugin-react": "^1.0.0", "bisheng-plugin-react": "^1.0.0",
"bisheng-plugin-toc": "^0.4.4", "bisheng-plugin-toc": "^0.4.4",
"chalk": "^2.4.1",
"commander": "^2.18.0", "commander": "^2.18.0",
"core-js": "^2.5.7", "core-js": "^2.5.7",
"cross-env": "^5.2.0", "cross-env": "^5.2.0",

View File

@ -1,4 +1,5 @@
const $ = require('dekko'); const $ = require('dekko');
const chalk = require('chalk');
$('dist') $('dist')
.isDirectory() .isDirectory()
@ -8,4 +9,4 @@ $('dist')
.hasFile('antd.min.js'); .hasFile('antd.min.js');
// eslint-disable-next-line // eslint-disable-next-line
console.log('`dist` directory is valid.'); console.log(chalk.green('`dist` directory is valid.'));

View File

@ -1,4 +1,5 @@
const $ = require('dekko'); const $ = require('dekko');
const chalk = require('chalk');
$('lib') $('lib')
.isDirectory() .isDirectory()
@ -20,4 +21,4 @@ $('lib/*/style')
$('lib/style').hasFile('v2-compatible-reset.css'); $('lib/style').hasFile('v2-compatible-reset.css');
// eslint-disable-next-line // eslint-disable-next-line
console.log('`lib` directory is valid.'); console.log(chalk.green('`lib` directory is valid.'));