Vue-cli: Flow support

Created on 11 Jul 2018  路  5Comments  路  Source: vuejs/vue-cli

What problem does this feature solve?

Adding flow, for less advanced developers, might be tricky. There are several things to do: install npm dependencies, configure babel, configure ESlint (optional).

What does the proposed API look like?

Flow should be available on the features selection step. It should be available only when TypeScript is disabled (and the opposite: TypeScript should be disabled when Flow is enabled).

feature request

Most helpful comment

I'm no sure if we should even maintain both type systems in cli core.

While we actually use flow in the vue core and router repositories at the moment, we are in the process of switching over to typescript more and more (Vue 3 will be rewritten in TS, amongst other things), and I think our team's kowledge of typescript is much deeper that for flow with people such as @ktsn on board.

So I would even be inclined to say this should be provided by the community, and we focus on the type system that we "build" on in the future.

All 5 comments

Not a bad idea...

Maybe in the next version, let's release 3.0.0 first! 馃樃

I'm no sure if we should even maintain both type systems in cli core.

While we actually use flow in the vue core and router repositories at the moment, we are in the process of switching over to typescript more and more (Vue 3 will be rewritten in TS, amongst other things), and I think our team's kowledge of typescript is much deeper that for flow with people such as @ktsn on board.

So I would even be inclined to say this should be provided by the community, and we focus on the type system that we "build" on in the future.

And I don't think it's a valid use case, as few "less advanced developers" would choose flow for their Vue projects...

We will not do this in core. Our typing focus will be on TS.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

williamstar picture williamstar  路  79Comments

ghenry picture ghenry  路  40Comments

dimavolo picture dimavolo  路  75Comments

yyx990803 picture yyx990803  路  80Comments

wuyuweixin picture wuyuweixin  路  35Comments