I'm trying to figure out a good workflow to write code using all the fancy new features of ES6 and ES7, because ES5 (and even ES6) are a bit confining. Maybe I'll redo my personal website if I find a workflow that I like.
Also, note that this is a first pass; I'm not sure what I'm going to do long-term.
Do you have a suggestion? Do you already have a fantastic ES6 / ES7 workflow? Please let me know by filing an issue!
- Hoping those cool ES7 features I love won't go away.
- Compiling my source with Grunt and Babel via the grunt-babel plugin to ES5.
Eg.
- edit src/index.js
grunt && node build/sourcemaps
(stack traces use sourcemaps)grunt && node build/index
(stack traces don't use sourcemaps)
- src/index.js - the main entry point for this module.
- src/sourcemaps.js - this file first enables sourcemaps via the source-map-support npm module, and then imports (and exports) src/index.js. This is useful for debugging while in development.