- Notifications
You must be signed in to change notification settings - Fork517
Add VueCli Middleware#1726
Uh oh!
There was an error while loading.Please reload this page.
Conversation
alzuma commentedAug 21, 2018
may I ask when this is happening? |
alexsandro-xpt commentedSep 7, 2018
Is this already released? |
hxhieu commentedSep 17, 2018
Alternatively, we can use the universal approach which I do prefer. |
liborpansky commentedSep 18, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
|
hxhieu commentedSep 18, 2018
@liborpansky Yes, you are correct but as far as I know the UseReact or UseAngular middlewares will rebuild the SPA EVERYTIME you start the debugger, also the spawned separate process is NOT terminated automatically when you stop debugging from VS. This process locks the port so you need Ctrl+C to manually close it before attempting next debug round. Cheers, |
Adohk commentedSep 19, 2018
I personally prefer to use the debugger only when needed for this kind of web development using vscode, I'd rather the process would be streamlined by running the cli dev server when i start dotnet watch run at the terminal which i was already doing using the webpack dev server implementation instead of making a vscode task to create 2 terminals and or starting them both manually. |
RehanSaeed commentedSep 19, 2018
@danroth27 Can one of the 3 Vue PR's get some love? |
EEParker commentedSep 19, 2018
Perhaps@ryanbrandenburg or@SteveSandersonMS have some input? |
SteveSandersonMS commentedSep 20, 2018
As far as I'm aware, we don't have plans to introduce Vue-specific features. This isn't because we have anything against Vue, but rather just to limit the growth in the number of frameworks that we're maintaining support for. The dev team only has a finite capacity for handling third-party concepts, and last year we made the strategic choice to focus on only Angular and React. I totally understand you might not like this if Vue is your chosen framework. I also understand that in absolute global market terms, there might be a stronger case right now for Vue than Angular (though statistically probably not among ASP.NET Core devs). However we're not going to drop either Angular or React, at least for the forseeable future, because continuity of support is more important. If you want to advocate for a change to this, I'd recommend talking with the PMs@DamianEdwards and@danroth27. So then, for the short term at least, I'd recommend publishing the Vue middleware as a separate package. This spreads out the support load across the community and makes the ASP.NET Core OSS ecosystem more healthy than having everything centralised under Microsoft control. Alternatively you can use Also CC@mkArtakMSFT in case he has views on how to proceed with this PR. |
danroth27 commentedSep 20, 2018
Vue is on the rise, but it looks Angular still dominates:https://w3techs.com/technologies/comparison/js-angularjs,js-vuejs. Even so, Vue is a great framework and we'd love to support it (along with a couple of others), but our resources are limited. I agree with@SteveSandersonMS 's assessment that this should be managed separately by the community. |
ryanbrandenburg commentedSep 20, 2018
If that's the case I'm going to close this PR. Thanks everyone! |
EEParker commentedSep 20, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I took your advice and independently published this as a nuget package. |
RehanSaeed commentedSep 21, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@danroth27@SteveSandersonMS@ryanbrandenburg Would you consider#1736 which creates a common middleware which can generically handle all npm command based dev servers instead of being Angular/React specific. There is not actually much code difference between them all. Inhttps://github.com/aspnet/JavaScriptServices/issues/1656@SteveSandersonMS seems amenable to the idea. It would handle all cases and be more future proof against the next JS framework that becomes popular. |
alzuma commentedSep 21, 2018
@RehanSaeed that was my initial thought +1 |
vyrotek commentedSep 21, 2018
Thanks for your feedback@danroth27. I agree that this sort of thing should be maintained as a separate package. But I would also suggest that MS do the same with React and Ang instead of baking-in support for one framework or another. Frameworks come and go and it doesn't seem to make sense to have theappearance of favoring any of them. In the meantime I would please ask you at least support some common middleware such as#1736. I feel the EF Core team is example of a team doing this relatively well. They split out all sorts of providers and tooling into separate packages that you pull in only when needed. |
alexsandro-xpt commentedNov 20, 2018
@EEParker it's will work with Quasar CLI? |
alexsandro-xpt commentedNov 21, 2018
This probabily don't work with Quasar, I got this error:
The NPM Script is: The Startup.cs is: |
This adds a new Middleware that implements some of the specifics of Vue Cli 3.
Addreses: