• Stars
    star
    317
  • Rank 132,216 (Top 3 %)
  • Language
    JavaScript
  • Created about 10 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An opinionated boilerplate that uses babel to allow for es6 features and uses browserify for file bundleing

ES6 Babel Browserify Boilerplate

This is an boilerplate repo to make it easy to experiment with ES6. It's inspired by es6-browserify-boilerplate but uses babel (formerly 6to5) for transpilation which does not depend on any runtime.

Initial setup

# Clone the repo...
git clone https://github.com/thoughtram/es6-6to5-browserify-boilerplate.git
cd es6-6to5-browserify-boilerplate

# Then, you need to install all the dependencies...
npm install

# If you wanna be able to use global commands `karma` and `gulp`...
npm install -g gulp

Running in the browser

gulp build
gulp serve

# If you wanna Gulp to re-build on every change...
gulp watch

WTF is ES6?

Simply, the next version of JavaScript that contains some really cool features. You might check out some of these:

What are all the pieces involved?

Babel

Transpiles ES6 code into regular ES5 (today's JavaScript) so that it can be run in a today browser. Like traceur but doesn't need a runtime to work. Formerly known as 6to5.

CommonJS

Babel is configured to transpile ES6 modules into CommonJS syntax and we use browserify to bundle the code into one file to deliver it to the browser.

Browserify

Browserify walks through all files and traces down all require()s to bundle all files together.

Gulp

Task runner to make defining and running the tasks simpler.

More Repositories

1

angular2-change-detection-demos

Demos of our "Angular 2 Change Detection Explained" talk
TypeScript
131
star
2

reactive-snake

Taming snakes with reactive streams
TypeScript
83
star
3

rebase-book

This is the repository for the "Rebase - The complete guide on rebasing in Git" book
67
star
4

angular-master-class-starter

Angular Master Class Starter Kit by thoughtram
TypeScript
56
star
5

angular-upgrade-app

Demo app to demonstrate how to upgrade from Angular 1 to Angular 2
JavaScript
54
star
6

blog

The thoughtram blog
SCSS
43
star
7

ng2-contacts-demo

Demo application built with Angular 2
JavaScript
30
star
8

angular-zippy

Demonstration of a simple zippy component built with Angular 2
JavaScript
29
star
9

angular-upgrade-demo

JavaScript
19
star
10

angular-master-class-jump-start

Angular Master Class - Jump Start
TypeScript
17
star
11

angular-master-class-jump-start-exercise-descriptions

Exercise descriptions for the Angular 2 Master Class: Jump Start training at ng-conf
15
star
12

es6-browserify-boilerplate

An opinionated boilerplate that uses traceur to allow for es6 features and uses browserify for file bundleing
JavaScript
11
star
13

thoughtram.github.io

thoughtram website
HTML
10
star
14

angular-master-class-jump-start-slides

Angular Master Class: Jump Start slide deck by thoughtram
CSS
8
star
15

slide-deck-template

A reveal.js slide deck template for thoughtram workshops
CSS
6
star
16

angular-tabs

Simple tabs component implemented with Angular 2
JavaScript
6
star
17

demo-clog-website

A demo site built with clog and nickel
Rust
4
star
18

classroom-app

TypeScript
4
star
19

exploring-ng2-slides

Slide deck to explore Angular 2 and building an app with it (used for a public training event)
CSS
3
star
20

angular-upgrade-slides

Slides for ngconf fair day workshop on upgrading apps to Angular 2
CSS
3
star
21

rust-and-nickel

Slides for the Rust & Nickel talk
JavaScript
3
star
22

angular-master-class-forms-lab-descriptions

Lab descriptions for the Angular Master Class Forms module
3
star
23

interactive-rebase-demo

JavaScript
2
star
24

blog-quiz-dapp

Little fun quizz for an upcoming post
Solidity
1
star
25

read-ext

Extensions for Rusts standard Read trait
Rust
1
star
26

thtrm-css

Shared styles for thoughtram projects
CSS
1
star