TrilonIO / aspnetcore-Vue-starter

*NEW* Asp.net Core & Vue.js (ES6) SPA Starter kit - Vuex, webpack, Web API, Docker, and more! By @TrilonIO
https://www.trilon.io
MIT License
1.22k stars 266 forks source link

Update to TypeScript #1

Closed MarkPieszak closed 7 years ago

vip32 commented 7 years ago

or maybe create a separate starter, as ts is not that popular (yet?) in the vuejs community.

anderly commented 7 years ago

Possible guide using vue-ts-loader: https://herringtondarkholme.github.io/2016/10/03/vue2-ts2/

MarkPieszak commented 7 years ago

How do you guys feel about? @anderly @vip32 I mean personally I <3 TypeScript, I'm sure people will change their minds eventually.

Should we leave it at ES6 for now, and maybe just have a small note on TS usage, Or go full-on TypeScript?

vip32 commented 7 years ago

i also love TS, however not convinced to use it together with vuejs. it's not as nicely integrated as with angular nowadays. also the vuejs community mostly seems to use es6. so if we do TS it should best be another template (choice).

vip32 commented 7 years ago

maybe if this js template is done we instead can work on a more advanced vuejs template with:

anderly commented 7 years ago

I think separate typescript template is a good idea. I've got a few more minor changes to this one (missed the namespace change in a few files, etc), but then we could move on to TS template.

alexsandro-xpt commented 7 years ago

Separate typescript template is better, I guess, this should be ASP NET Core for VueJS and not VueJS for ASP NET Core.

VueJS side should be ever maintain the default template project.

MarkPieszak commented 7 years ago

So Steve Sanderson from the aspnet team took this template and updated it to TypeScript (with a few other tweaks) but you can find it with npm i -g aspnetcore-spa yo then yo aspnetcore-spa and install the Vue template. I think he merged it like an hour ago, so it might not be updated onto yeoman just yet.