Ionic 2 cli and Javascript 2015 / ES6


#1

Hello,

In the past, you could specify whether you wanted a starter project in typescript or es2015 by passing along the flag -ts

The whole command: Ionic start myApp --v2 --ts.

Is there a way to use the cli to start an app that doesn’t use typescript? Or does this need to be configured manually?

If so, are there any resources that could be used as a guide?


Typescript project files named js
#2

Not using --ts doesn’t give you the js code?
I’ve read that TypeScrypt is the new standard but not about the CLI update, try --js then.


#3

What about try to read docs before?

–no-ts


#4

tried that (though I could not find mention of --no-ts in the docs.) - its not working. Still generates ts files.

(doesn’t work)
ionic start myApp --no-ts --v2

Others are having the same problem.


#5

AFAIK it’s not possible anymore, here’s the official comment on the topic:

JS option has been removed, since we are going to focus our efforts to support Typescript.

Since TS is a superset of JS, it is up to developers to use the new features or not.

We strongly recommend to give TS a try, decorators and types help a lot while using angular 2.


Problem files js/ts
Typescript project files named js
#6

That’s good to know - thanks!


#7

Ok, so Ionic must fix its docs.

cc// @mhartington


#8

Actually the document is already fixed but it seems that it takes some time until the online documentation is updated (due to a build process I guess).


#9

We just need to redeploy the docs, which we tend to do in batch jobs


#10

A giant massive super huge hug to whoever decided to do this. When people post sample code with problems, it is astronomically easier to read and quickly comprehend when variables and function signatures are typed.