Browse Source

💄 use chalk in console.log

pull/13796/head
afc163 6 years ago
committed by 偏右
parent
commit
b3b39fcfd5
  1. 1
      package.json
  2. 3
      tests/dekko/dist.test.js
  3. 3
      tests/dekko/lib.test.js

1
package.json

@ -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",

3
tests/dekko/dist.test.js

@ -1,4 +1,5 @@
const $ = require('dekko');
const chalk = require('chalk');
$('dist')
.isDirectory()
@ -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
tests/dekko/lib.test.js

@ -1,4 +1,5 @@
const $ = require('dekko');
const chalk = require('chalk');
$('lib')
.isDirectory()
@ -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.'));

Loading…
Cancel
Save