Skip to content

Conversation

steven-klein
Copy link

Remove the currently cached template when we are doing a download and generate.

This helps to resolve #403 where using the --clone flag with private repos fails when the cached template directory already exists.

It also helps resolve #409 where init results in a template that is outdated.

bin/vue-init Outdated
function downloadAndGenerate (template) {
var spinner = ora('downloading template')
spinner.start()
// check if template is local
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use a proper comment, eg: Remove if local template exists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants