Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fixes#13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ShMcK merged 4 commits intomasterfromfixes
May 31, 2020
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
add colors to logs
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
  • Loading branch information
@ShMcK
ShMcK committedMay 31, 2020
commit56a3dcba3d11d2ea1964869865ff300c94d6d49c
3 changes: 1 addition & 2 deletionspackage-lock.json
View file
Open in desktop

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

1 change: 1 addition & 0 deletionspackage.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -24,6 +24,7 @@
"esm": "^3.2.25",
"inquirer": "^7.1.0",
"js-yaml": "^3.14.0",
"kleur": "^3.0.3",
"listr": "^0.14.3",
"lodash": "^4.17.15",
"ncp": "^2.0.0",
Expand Down
1 change: 1 addition & 0 deletionssrc/cli.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
import "./utils/logs";
import build from "./build";
import create from "./create";

Expand Down
21 changes: 21 additions & 0 deletionssrc/utils/logs.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
import { red, yellow, blue } from "kleur";

const _error = console.error;
const _warn = console.warn;
const _info = console.info;
// const log = console.log;

console.error = function () {
// @ts-ignore
_error(red.apply(console, arguments));
};

console.warn = function () {
// @ts-ignore
_warn(yellow.apply(console, arguments));
};

console.info = function () {
// @ts-ignore
_info(blue.apply(console, arguments));
};

[8]ページ先頭

©2009-2025 Movatter.jp