Update build/utils/message.js

Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca>
This commit is contained in:
Quentin Hocdé
2021-03-05 09:24:18 -05:00
committed by GitHub
parent 5f20fe0e43
commit bddbaaed1c

View File

@@ -2,19 +2,16 @@
import kleur from 'kleur';
export default function message(text, type, timerId) {
if(type === 'success') {
if (type === 'success') {
console.log(kleur.bgGreen().black(`${text}`));
if(timerId !== undefined) {
if (timerId !== undefined) {
console.timeEnd(timerId)
}
} else if (type === 'error') {
console.log(kleur.red().underline(`${text}`));
} else if (type === 'waiting') {
console.log(kleur.blue().italic(`${text}`));
console.log(kleur.blue().italic(`${text}`));
} else {
console.log(text);
}