Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/givanse/broccoli-babel-examples
:pencil: ES6 In Depth: Using ES6 today with Babel and Broccoli
https://github.com/givanse/broccoli-babel-examples
Last synced: 2 months ago
JSON representation
:pencil: ES6 In Depth: Using ES6 today with Babel and Broccoli
- Host: GitHub
- URL: https://github.com/givanse/broccoli-babel-examples
- Owner: givanse
- License: unlicense
- Created: 2015-05-17T04:36:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-19T07:39:58.000Z (over 7 years ago)
- Last Synced: 2024-04-11T19:12:11.936Z (9 months ago)
- Language: JavaScript
- Homepage: https://hacks.mozilla.org/2015/06/es6-in-depth-babel-and-broccoli/
- Size: 97.7 KB
- Stars: 35
- Watchers: 6
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# broccoli-babel-examples
Each folder comes with instructions in a README file.
If you would like to know more about ES6, you'll find an article for each feature in the series
[ES6 In Depth Articles](https://hacks.mozilla.org/category/es6-in-depth/) published by Mozilla Hacks.## Branches
* [es6-in-depth](https://github.com/givanse/broccoli-babel-examples/tree/es6-in-depth) - The original code as it was released when the Mozilla article was published. These are the code samples for [ES6 In Depth: Using ES6 today with Babel and Broccoli](https://hacks.mozilla.org/2015/06/es6-in-depth-babel-and-broccoli/).
* [master](https://github.com/givanse/broccoli-babel-examples/tree/master) - The most up to date code. It mainly consists of dependencies upgrades.## Examples
### 1. [es6-fruits](https://github.com/givanse/broccoli-babel-examples/tree/master/es6-fruits)
A minimal example that shows you how to transpile a single ES6 script and then execute it through the command line.
### 2. [es6-website](https://github.com/givanse/broccoli-babel-examples/tree/master/es6-website)
Transpile all the ES6 files found in target location and concatenate them into a single ES5 file that is imported into a simple website.
### 3. [es6-modules](https://github.com/givanse/broccoli-babel-examples/tree/master/es6-modules)
A usage example of [jayphelps/broccoli-babel-boilerplate](https://github.com/jayphelps/broccoli-babel-boilerplate), its a more sophisticated setup that handles:
* modules
* imports
* unit testsIts meant to be the starting point for ambitious projects.