1 | var chalk = require('chalk')
|
2 |
|
3 | module.exports = {
|
4 | v2SuffixTemplatesDeprecated: function (template, name) {
|
5 | var initCommand = 'cbd init ' + template.replace('-2.0', '') + ' ' + name
|
6 |
|
7 | console.log(chalk.red(' This template is deprecated, as the original template now uses cbd 2.0 by default.'))
|
8 | console.log()
|
9 | console.log(chalk.yellow(' Please use this command instead: ') + chalk.green(initCommand))
|
10 | console.log()
|
11 | },
|
12 | v2BranchIsNowDefault: function (template, name) {
|
13 | var vue1InitCommand = 'cbd init ' + template + '#1.0' + ' ' + name
|
14 |
|
15 | console.log(chalk.green(' This will install cbd 2.x version of the template.'))
|
16 | console.log()
|
17 | console.log(chalk.yellow(' For cbd 1.x use: ') + chalk.green(vue1InitCommand))
|
18 | console.log()
|
19 | }
|
20 | }
|