Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cowboy/js-es6-es7-workflow-ideas

JS / ES6 / ES7 Workflow Ideas
https://github.com/cowboy/js-es6-es7-workflow-ideas

Last synced: 2 months ago
JSON representation

JS / ES6 / ES7 Workflow Ideas

Awesome Lists containing this project

README

        

# JS / ES6 / ES7 Workflow Ideas

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](https://github.com/cowboy/js-es6-es7-workflow-ideas/issues)!

## What I'm currently doing

* Hoping those cool ES7 features I love won't go away.
* Compiling my source with [Grunt](http://gruntjs.com/) and
[Babel](http://babeljs.io/) via the
[grunt-babel](https://github.com/babel/grunt-babel) plugin to ES5.

Eg.

* edit [src/index.js](src/index.js)
* `grunt && node build/sourcemaps` (stack traces use sourcemaps)
* `grunt && node build/index` (stack traces don't use sourcemaps)

## Files of note

* **[src/index.js](src/index.js)** - the main entry point for this module.
* **[src/sourcemaps.js](src/sourcemaps.js)** - this file first enables
sourcemaps via the
[source-map-support](https://github.com/evanw/node-source-map-support) npm
module, and then imports (and exports) [src/index.js](src/index.js). This
is useful for debugging while in development.