Before Ionic2 RC there was possible to create a pure JS template with Ionic CLI
Now it always creates a TypeScript template, no matter what keys I'm supplying.
I was trying --javascript, --no-ts, --js
no luck.
documentation also giving nothing about it.
Is there any way to create a pure js template using ionic2 cli ?
My old project was developed with js template, and now I cannot move to RC.
I'm afraid that a few weeks ago I asked that in ionic-v2 Slack channel and the answer from one developer from Ionic Team was:
We're going all in on TS.
You could do your own work and covert it toa es6 workflow, but we want people to use typescript
So Typescript is not optional for Ionic 2 applications.
There's also an Why TypeScript section in Ionic2 resource pages where Ionic Team explains the benefits of using TypeScript:
TypeScript is a superset of JavaScript that gives you advantages like:
- Optional static typing (the key here is optional)
- Type Inference, which gives some of the benefits of types, without actually using them
- Access to ES6 and ES7 features, before they become supported by major browsers
- The ability to compile down to a version of JavaScript that runs on all browsers
- Great tooling support with IntelliSense Because of these awesome features and the huge advantages it gives to you as a developer, Ionic 2 apps are written in TypeScript, instead of ES6.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With