@yuanhua/cli
Version:
@yuanhua/cli
25 lines (21 loc) • 799 B
JavaScript
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();
},
};