Commit Graph

10 Commits

Author SHA1 Message Date
xiek
bb9c0011bd bugfix: string padding length is error (#6254)
Co-authored-by: 谢恺 <kaixie@caih.com>
2021-02-22 14:47:21 +08:00
Haoqun Jiang
f1e77a5551 Revert "refactor: use console.clear to clear the log (#5700)"
This reverts commit 7c2a36b889.

`console.clear` overrides the previous content on the screen, so it
might cause confusion when users scrolls back.
2020-07-24 19:55:05 +08:00
Arthur
7c2a36b889 refactor: use console.clear to clear the log (#5700)
Co-authored-by: chentao.arthur <chentao.arthur@bytedance.com>
2020-07-24 18:30:57 +08:00
Haoqun Jiang
c889073c7f chore: improve error message when get metadata failed (#5604) 2020-06-24 10:35:01 +08:00
Haoqun Jiang
c4dc8d61c3 refactor: remove unnecessary padEnd & padStart shims
Both features are already supported in Node.js v8+
2019-12-03 23:07:47 +08:00
Per Åkerberg
13376ce012 Replace chalk.reset with stripAnsi in @vue/cli-shared-utils/lib/logger.js (#4842)
* Replace chalk.reset with stripAnsi 

When logging multi-line logs, the logger uses chalk.reset in order to get the length of the tag for the log. This is to achieve an indented layout of multi-line logs. chalk.reset only replaces styles such as bold and italic, not color. When the tag contains colors, the result is not pretty. Replacing with stripAnsi gets the intended result.

* Adds reference to strip-ansi

* Removes misplaces comma from package.json

* Removes extraneous semicolon
2019-11-27 14:50:10 +08:00
Guillaume Chau
9f0eece1d1 feat(ui): Progress and Logs systems 2018-03-09 20:35:37 +01:00
Guillaume Chau
0f2ee80a10 feat: generatorAPI.exitLog (#935)
* feat(logger): add tag argument

* feat(generator): add `exitLog` api

* fix(generator): extract toShortId into a util function
2018-03-04 13:22:55 -05:00
Evan You
f372f55e93 feat: allow saving multiple presets 2018-01-28 00:24:33 -05:00
Evan You
9856549432 refactor: refactor shared utils + move openBrowser 2018-01-27 21:54:27 -05:00