Skip to content

Consider removing template dirs in ~/.vue-templates/ when downloading updated templates #409

Closed
@Narkoleptika

Description

@Narkoleptika

Hello, I maintain a vue-cli template and I recently made some updates to make use of Vue's new SSR features. Part of stealing Evan You's code from the hackernews example involved renaming client-entry.js and server-entry.js to entry-client.js and entry-server.js respectively.

Upon testing out the newly pushed code, I discovered that vue-cli was still scaffolding client-entry.js and server-entry.js as well as entry-client.js and entry-server.js.

This problem was resolved by deleting the .vue-templates folder in my home dir.

I suspect this will become a bigger issue when any official/popular template renames (or possibly deletes) a file. And it will affect any user that used the template prior to the file changes.

Because of this, I think that at a minimum, a note about the .vue-templates dir should be added to the README - Though I believe this is a subpar solution as the user may not even be aware that there are problems/dead code.

I think, ideally, vue-cli should remove template dirs when downloading updated templates.

Thank vue very much for your time!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions