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

If no offline specified. We should remove the tmp dir if it is existed. #390

Closed
wants to merge 5 commits into from

Conversation

yxwu25
Copy link

@yxwu25 yxwu25 commented Mar 9, 2017

No description provided.

bin/vue-init Outdated
console.log(`> Use cached template at ${chalk.yellow(tildify(tmp))}`)
template = tmp
} else {
rm(tmp)
Copy link
Member

Choose a reason for hiding this comment

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

IMO it should overwrite existing file after successful download.

Copy link
Author

Choose a reason for hiding this comment

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

Yes, that's best. Needs another dir to cache the downloads. Otherwise the git will throw an error.

Copy link
Member

Choose a reason for hiding this comment

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

Native /tmp (😝 And whatever alternative for windows) directory can be used for that.

hoopyfroody pushed a commit to hoopyfroody/vue-cli that referenced this pull request Apr 18, 2017
@yyx990803
Copy link
Member

Thanks for the PR and sorry for letting it sit for so long. As of now, we are no longer adding new features of vue-cli 2.x, so I am closing this PR. Again, thanks for the contribution.

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.

3 participants