Skip to content

Commit

Permalink
💄 use chalk in console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Dec 23, 2018
1 parent 03c10c9 commit b3b39fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"bisheng-plugin-description": "^0.1.4",
"bisheng-plugin-react": "^1.0.0",
"bisheng-plugin-toc": "^0.4.4",
"chalk": "^2.4.1",
"commander": "^2.18.0",
"core-js": "^2.5.7",
"cross-env": "^5.2.0",
Expand Down
3 changes: 2 additions & 1 deletion tests/dekko/dist.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const $ = require('dekko');
const chalk = require('chalk');

$('dist')
.isDirectory()
Expand All @@ -8,4 +9,4 @@ $('dist')
.hasFile('antd.min.js');

// eslint-disable-next-line
console.log('`dist` directory is valid.');
console.log(chalk.green('✨ `dist` directory is valid.'));
3 changes: 2 additions & 1 deletion tests/dekko/lib.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const $ = require('dekko');
const chalk = require('chalk');

$('lib')
.isDirectory()
Expand All @@ -20,4 +21,4 @@ $('lib/*/style')
$('lib/style').hasFile('v2-compatible-reset.css');

// eslint-disable-next-line
console.log('`lib` directory is valid.');
console.log(chalk.green('✨ `lib` directory is valid.'));

0 comments on commit b3b39fc

Please sign in to comment.