Skip to content

Question about implementi VueJs Cli integration #5214

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

Closed
valeriob opened this issue Jul 5, 2018 · 3 comments
Closed

Question about implementi VueJs Cli integration #5214

valeriob opened this issue Jul 5, 2018 · 3 comments
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates feature-spa ✔️ Resolution: Duplicate Resolved as a duplicate of another issue

Comments

@valeriob
Copy link

valeriob commented Jul 5, 2018

Hi,
i would like to use vuejs cli with aspnet core projects.
I tried to use UseAngularCliServer with vue command and it "almost" worked as is !
app.UseSpa(spa =>
{
spa.Options.SourcePath = "clientApp";
spa.UseAngularCliServer("serve");
});

The only line i had to change is this line, what do you think ? Would you accept a pull request for this feature ? Since i just had to change a line, would you like to configure it ? but then the whole api would not reflect the support for vue, so maybe maybe refactor it out is a better choice (CliBuilder/CliMiddleware and AngularCliMiddlewareExtension, VueJsCliMiddlewareExtension)

image

@EEParker
Copy link
Contributor

EEParker commented Jul 9, 2018

There is some discussion on this here #5182

@aspnet-hello aspnet-hello transferred this issue from aspnet/JavaScriptServices Dec 17, 2018
@aspnet-hello aspnet-hello added area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates feature-spa labels Dec 17, 2018
@alexeyzimarev
Copy link

I believe the ReactDevelopmentServerMiddleware is a good start. It waits for npm to output Starting the development server and for Vue I needed to change it to Starting development server. Ideally, it would be App running at, otherwise the middleware tries to proxy the first request to the server that hasn't started yet. Everything else is the same.

@mkArtakMSFT
Copy link
Member

Thanks for contacting us, @valeriob .
This is indeed going to be addressed as part of #5182

@mkArtakMSFT mkArtakMSFT added the ✔️ Resolution: Duplicate Resolved as a duplicate of another issue label Aug 13, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Dec 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates feature-spa ✔️ Resolution: Duplicate Resolved as a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

5 participants