vueAdapter.js
function downloadAndGenerate (template, cb) {
  var spinner = ora('downloading template')
  spinner.start()
  download(template, tmp, { clone: clone }, function (err) {
    spinner.stop()
    if (err) logger.fatal('Failed to download repo ' + template + ': ' + err.message.trim())
    generate(name, tmp, to, cb)
  })
}
function downloadAndGenerate (template, cb) {
  var spinner = ora('downloading template')
  spinner.start()
  download(template, tmp, { clone: clone }, function (err) {
    spinner.stop()
    if (err) logger.fatal('Failed to download repo ' + template + ': ' + err.message.trim())
    generate(name, tmp, to, cb)
  })
}
function downloadAndGenerate ( template , cb ) { var spinner = ora ( 'downloading template' ) spinner . start ( ) download ( template , tmp , { clone : clone } , function ( err ) { spinner . stop ( ) if ( err ) logger . fatal ( 'Failed to download repo ' + template + ': ' + err . message . trim ( ) ) generate ( name , tmp , to , cb ) } ) }
Download a generate from a template repo.

@param {String} template
Download a generate from a template repo .