Ionic-cli: Typescript generators

Created on 11 Feb 2016  路  8Comments  路  Source: ionic-team/ionic-cli

_From @mhartington on January 18, 2016 21:23_

_From @tlancina on January 8, 2016 1:32_

Right now the generated components are not typed. Also might be nice for the tooling to differentiate between Typescript and ES6 projects (separate issue).

_Copied from original issue: driftyco/ionic2#892_

_Copied from original issue: driftyco/ionic#5019_

Most helpful comment

This is done in beta.24 of the CLI when using beta.4 of the framework.

All 8 comments

_From @lordgreg on January 26, 2016 21:31_

+1

_From @Peekmo on January 26, 2016 21:35_

Hello,

I'll like it a lot (as it is already possible to start a projet with --ts)

Regards,
Peekmo

Yea it would be a nice feature, +1 as typescript should become the default in the future
I will open an other issue for this generator concerning a way to chose a 'parent' directory

As we're working entirely in TypeScript, I would love to have this feature. The generated JS is _close_, but it is a pain to tweak it every time something is added.

It indeed makes sense that if you create a new project with --ts, the rest of the commands would match. That's what I did and I wondered why my service was .js, then I removed the files, called the command again with --ts and I wondered why I still got a .js.

This would be a very useful feature. Suck having to change extensions and covert every time something is created.

+1

This is done in beta.24 of the CLI when using beta.4 of the framework.

Was this page helpful?
0 / 5 - 0 ratings