forked from tailwindlabs/tailwindcss
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlog.js
More file actions
28 lines (24 loc) · 663 Bytes
/
log.js
File metadata and controls
28 lines (24 loc) · 663 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import chalk from 'chalk'
export default {
info(messages) {
if (process.env.JEST_WORKER_ID !== undefined) return
console.warn('')
messages.forEach((message) => {
console.warn(chalk.bold.cyan('info'), '-', message)
})
},
warn(messages) {
if (process.env.JEST_WORKER_ID !== undefined) return
console.warn('')
messages.forEach((message) => {
console.warn(chalk.bold.yellow('warn'), '-', message)
})
},
risk(messages) {
if (process.env.JEST_WORKER_ID !== undefined) return
console.warn('')
messages.forEach((message) => {
console.warn(chalk.bold.magenta('risk'), '-', message)
})
},
}