mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-19 13:50:11 -06:00
14 lines
395 B
JavaScript
14 lines
395 B
JavaScript
const chalk = require('chalk')
|
|
const version = require('../../package.json').version
|
|
const { clearConsole } = require('@vue/cli-shared-utils')
|
|
|
|
let title = chalk.bold.green(`Vue CLI v${version}`)
|
|
if (process.env.VUE_CLI_TEST) {
|
|
title += ' ' + chalk.blue.bold('TEST')
|
|
}
|
|
if (process.env.VUE_CLI_DEBUG) {
|
|
title += ' ' + chalk.magenta.bold('DEBUG')
|
|
}
|
|
|
|
module.exports = () => clearConsole(title)
|