Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean cached template in downloadandgenerate #450

Merged
merged 2 commits into from
May 7, 2017

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
@@ -141,6 +142,8 @@ function run () {
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants