Skip to content

Using the CLI with existing backend projects #1359

Closed
@cecilphillip

Description

@cecilphillip

What problem does this feature solve?

I work with other backend platforms (python, .NET) that typically have their own folder structure for where things go. Today, creating a new Vue project with the CLI generates src/, public/ and dist/ folders in the project root. I would love to be able to override these folders when generating a new project.

IMO it would made adopting the vue-cli even easier. I know I could spent the time to override the webpack build settings. It would be much faster for me, and a better on-boarding experience, if I could have the vue project generated using the directories that fit my backend when I call vue create

What does the proposed API look like?

Something like the following command would allow the source and destination folders to be defined.

vue create . --destDir wwwroot/js/ --sourcedir frontend/js/

When using an existing backend, I probably don't need the public folder and index.html. Maybe there could be an option to exclude that

Something like the following command would allow the source and destination folders to be defined.

vue create . --destDir wwwroot/js/ --sourcedir frontend/js/ --no-public

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions