Created
March 19, 2020 01:17
-
-
Save ryanjyost/15d49dcc1c000942cb77e4898465057a to your computer and use it in GitHub Desktop.
plugins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = on => { | |
on(`task`, { | |
error(message) { | |
console.error("\x1b[31m", "ERROR:", message, "\x1b[0m"); | |
}, | |
warn(message) { | |
console.warn("\x1b[33m", "WARNING:", message, "\x1b[0m"); | |
}, | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment