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

Using the CLI with existing backend projects #1359

Closed
cecilphillip opened this issue May 24, 2018 · 3 comments
Closed

Using the CLI with existing backend projects #1359

cecilphillip opened this issue May 24, 2018 · 3 comments

Comments

@cecilphillip
Copy link

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
@yyx990803
Copy link
Member

I don't think this needs additional options. What you need to do is creating the project inside frontned/js/ and set outputDir in vue.config.js. There's no need to mess with webpack at all.

As for optional public dir, that's a duplicate of #1265.

@yyx990803
Copy link
Member

However, we do want to include integration guide for popular backend frameworks in the docs. If there are some common, repeated steps among those integrations, we will consider offering convenience options for those.

@cecilphillip
Copy link
Author

@yyx990803 ok, I'll try that. Are there doc's or samples of the available settings in vue.config.js

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

No branches or pull requests

2 participants