Esri / generator-esri-appbuilder-js

Yeoman generator to help customize Esri's WebAppBuilder
Apache License 2.0
181 stars 61 forks source link

Offer option to generate ES6 files #32

Closed tomwayson closed 8 years ago

tomwayson commented 8 years ago

Instead of using grunt sync/copy to copy ES5 files from the working folder to the WAB, we could work in ES6 and use grunt babel to transpile the code and output to the WAB folder.

This should happen after #28

tomwayson commented 8 years ago

Note that the babel config options need to be set in the app generator. Need to figure out if we would also offer this option in the widget subgenerator (i.e. a user can develop both es5 or es6 widgets w/in a single project). If that complicates things at all, I say no.

gavinr commented 8 years ago

Working on this:

Switching over to the ES2015-compatible Gruntfile should work with either ES2015 or ES5 style widgets, so current plan is to have the question of "ES2015 or ES5" style be at the widget subgenerator level.

Question of which jshintrc file to use will be addressed in a separate item (#56).