Skip to content

Commit

Permalink
refactor/perf: use picocolors (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang authored Aug 21, 2022
1 parent ab08350 commit d3dae6c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 14 deletions.
6 changes: 3 additions & 3 deletions lib/deployer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

const pathFn = require('path');
const fs = require('hexo-fs');
const chalk = require('chalk');
const { underline } = require('picocolors');
const nunjucks = require('nunjucks');
const { DateTime } = require("luxon");
const { DateTime } = require('luxon');
const Promise = require('bluebird');
const { spawn } = require('hexo-util');
const parseConfig = require('./parse_config');
Expand Down Expand Up @@ -41,7 +41,7 @@ module.exports = function(args) {
help += ' branch: [branch]\n';
help += ' message: [message]\n\n';
help += ' extend_dirs: [extend directory]\n\n';
help += 'For more help, you can check the docs: ' + chalk.underline('http://hexo.io/docs/deployment.html');
help += 'For more help, you can check the docs: ' + underline('http://hexo.io/docs/deployment.html');

console.log(help);
return;
Expand Down
28 changes: 19 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
},
"dependencies": {
"bluebird": "^3.7.2",
"chalk": "^4.1.2",
"hexo-fs": "^3.1.0",
"hexo-util": "^2.5.0",
"luxon": "^2.3.0",
"nunjucks": "^3.2.3"
"nunjucks": "^3.2.3",
"picocolors": "^1.0.0"
},
"engines": {
"node": ">=12.13.0"
Expand Down

0 comments on commit d3dae6c

Please sign in to comment.