Only log purge notice once per process
This commit is contained in:
parent
ef149cfafb
commit
2d090feb98
4 changed files with 36 additions and 47 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import _ from 'lodash'
|
||||
import chalk from 'chalk'
|
||||
import log from './util/log'
|
||||
|
||||
const featureFlags = {
|
||||
future: ['removeDeprecatedGapUtilities'],
|
||||
|
|
@ -57,27 +58,6 @@ export function issueFlagNotices(config) {
|
|||
return
|
||||
}
|
||||
|
||||
const log = {
|
||||
info(messages) {
|
||||
console.log('')
|
||||
messages.forEach(message => {
|
||||
console.log(chalk.bold.cyan('info'), '-', message)
|
||||
})
|
||||
},
|
||||
warn(messages) {
|
||||
console.log('')
|
||||
messages.forEach(message => {
|
||||
console.log(chalk.bold.yellow('warn'), '-', message)
|
||||
})
|
||||
},
|
||||
risk(messages) {
|
||||
console.log('')
|
||||
messages.forEach(message => {
|
||||
console.log(chalk.bold.magenta('risk'), '-', message)
|
||||
})
|
||||
},
|
||||
}
|
||||
|
||||
if (futureFlagsEnabled(config).length > 0) {
|
||||
const changes = futureFlagsEnabled(config)
|
||||
.map(s => chalk.cyan(s))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue