Hi,
I work on a single app built with angular 1.4 in ES5, and I would like our team to be able to start writing ES6.
In the mid/long term term, the idea is to migrate to angular 1.5 and then angular 2 once it's released.
Upgrading all the current ES5 code to ES6 is not something we can do right now, there's a lot of JS code and we prefer focusing on developing new features. So the idea would be to start writing ES6 and transpile them to ES5, and keep the ES5 code as it is right now.
So there's some questions from there:
Unit testing / code quality:
Code coverage is mandatory for our project (we use istanbul, mocha, chai and sinonJS).
So we will have both istanbul (ES5) and isparta (ES6) for our code coverage tools, do you think we can make them live together and have a single report output (for both terminal and html output) ?
It's the same thing for JSLint and eslint, is it possible to run both?
Build:
We will use BabelJS to transpile ES6 to ES5, but of course ES5 files must not be processed by BabelJS. Did you ever had that kind of build where ES5 and ES6 are mixed in the same app ? If so, do you have recommendations for the application folders structure to avoid problems during the build ?
Hi, I work on a single app built with angular 1.4 in ES5, and I would like our team to be able to start writing ES6. In the mid/long term term, the idea is to migrate to angular 1.5 and then angular 2 once it's released. Upgrading all the current ES5 code to ES6 is not something we can do right now, there's a lot of JS code and we prefer focusing on developing new features. So the idea would be to start writing ES6 and transpile them to ES5, and keep the ES5 code as it is right now.
So there's some questions from there:
Thanks for your help !