Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
feat(output): update tips color of replace
Browse files Browse the repository at this point in the history
  • Loading branch information
NewFuture committed Apr 28, 2019
1 parent 697f3e2 commit 833fde2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"tools",
"gulp",
"npm",
"framework"
"framework",
"小程序",
"微信"
],
"main": "src/task.js",
"bin": {
Expand Down Expand Up @@ -79,4 +81,4 @@
"tslib": "^1.9.3",
"typescript": "^3.4.3"
}
}
}
4 changes: 2 additions & 2 deletions src/lib/multi-replace.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ function logReplace(n, key, value, file) {
log.info(
colors.gray(TITLE),
colors.dim('√'.repeat(n)),
colors.dim.gray.italic(key.toString()),
colors.gray.italic(key.toString()),
colors.dim.gray('→'),
typeof value === 'function' ? colors.magenta.italic('Function') : colors.cyan.underline(value),
typeof value === 'function' ? colors.cyan(colors.italic('Function:') + (value.name || '')) : colors.underline(value),
colors.gray('(' + colors.underline(
path.relative(file.base, file.path)
) + ')')
Expand Down

0 comments on commit 833fde2

Please # to comment.