UNPKG

784 BJavaScriptView Raw
1const chalk = require('chalk')
2
3module.exports = {
4 v2SuffixTemplatesDeprecated (template, name) {
5 const initCommand = 'angular init ' + template.replace('-2.0', '') + ' ' + name
6
7 console.log(chalk.red(' This template is deprecated, as the original template now uses Vue 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 (template, name) {
13 const angular1InitCommand = 'angular init ' + template + '#1.0' + ' ' + name
14
15 console.log(chalk.green(' This will install angular 1.x version of the template.'))
16 console.log()
17 console.log(chalk.yellow(' For angular 1.x use: ') + chalk.green(angular1InitCommand))
18 console.log()
19 }
20}