UNPKG

vincent-cli

Version:

基于vue全家桶的脚手架,主要包含webapp、一般网页的模板。

24 lines (20 loc) 799 B
const chalk = require('chalk') /** * 配置的一些默认警告 */ module.exports = { v2SuffixTemplatesDeprecated (template, name) { const initCommand = 'vue init ' + template.replace('-2.0', '') + ' ' + name console.log(chalk.red(' This template is deprecated, as the original template now uses Vue 2.0 by default.')) console.log() console.log(chalk.yellow(' Please use this command instead: ') + chalk.green(initCommand)) console.log() }, v2BranchIsNowDefault (template, name) { const vue1InitCommand = 'vue init ' + template + '#1.0' + ' ' + name console.log(chalk.green(' This will install Vue 2.x version of the template.')) console.log() console.log(chalk.yellow(' For Vue 1.x use: ') + chalk.green(vue1InitCommand)) console.log() } }