UNPKG

easyify-cli

Version:

A simple CLI for scaffolding easyify projects.

21 lines (17 loc) 788 B
const chalk = require('chalk') module.exports = { v2SuffixTemplatesDeprecated (template, name) { const initCommand = 'easyify init ' + template.replace('-1.0', '') + ' ' + name console.log(chalk.red(' This template is deprecated, as the original template now uses easyify 1.0 by default.')) console.log() console.log(chalk.yellow(' Please use this command instead: ') + chalk.green(initCommand)) console.log() }, v2BranchIsNowDefault (template, name) { const easyify1InitCommand = 'easyify init ' + template + '#1.0' + ' ' + name console.log(chalk.green(' This will install easyify 1.x version of the template.')) console.log() console.log(chalk.yellow(' For easyify 1.x use: ') + chalk.green(easyify1InitCommand)) console.log() } }