• Stars
    star
    101
  • Rank 338,166 (Top 7 %)
  • Language
    JavaScript
  • License
    Other
  • Created about 9 years ago
  • Updated over 8 years ago

Reviews

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

Repository Details

Sample setup with Gulp, Babel, Mocha and Webpack, including lazy loading

gulp-es6-webpack-example

Sample setup with Gulp, Babel, Mocha and Webpack over ES6, transpiled to ES5 (source maps included).

All the code, Mocha tests and config files from Gulp and Webpack are ES6.

The is a preload bundle (to be loaded during page load time) and also a separate bundle (to be lazy loaded after the user presses a button).

The lazy-loadable bundles are automatically generated by webpack and the code is just requiring things internally using ES6/CommonJS, making it possible to avoid AMD/RequireJS for asynchronous loading.

Running gulp will:

  1. Transpile ES6 code with Babel
  2. Run Mocha unit tests
  3. Package bundles with Webpack (dedupe + uglify)

See it live: run gulp server and open http://localhost:8080/public/. Verify you have downloaded just the preload JS bundle file. Now hit the button, it will download an additional bundle file, related with that button.

More Repositories

1

marionette-vdom

Marionette.js views implemented with virtual-dom
JavaScript
128
star
2

Backbone.VDOMView

A Backbone.View implementation with virtual-dom
JavaScript
19
star
3

lazy-load-es2015-systemjs

Lazy-loading ES2015 modules in the browser with JSPM, Babel and System.js
JavaScript
9
star
4

js-modules

Examples of JavaScript Modules in different strategies
HTML
6
star
5

jasmine-precondition

A Jasmine instruction to ease setting up asynchronous pre-conditions before, during and after tests
JavaScript
5
star
6

quiz-app

Challenge application for UI Bootcamp at Avenue Code
JavaScript
4
star
7

tasker

Tasker is a sample Backbone.js application over Play! Framework, developed by Tiago Romero Garcia to illustrate some articles he wrote for Java Magazine in Brazil.
Java
3
star
8

talk-lazy-loading-es2015-modules

Talk about Lazy Loading ES2015 modules in the browser
JavaScript
3
star
9

advent-of-code-2018

Solutions for https://adventofcode.com/2018
JavaScript
2
star
10

lazy-load-es2015-webpack2

Lazy-loading ES2015 modules in the browser with Webpack 2, Babel and System.js
JavaScript
2
star
11

lazy-load-es2015-webpack2-challenge

Challenge for the Lazy Loading JS Modules lab
JavaScript
2
star
12

design-patterns-examples

Examples to go along with the talk Design Patterns for JavaScript featuring Modules
JavaScript
1
star
13

higher-order-functions

Code for the article First steps with JavaScript higher-order-functions
JavaScript
1
star
14

talk-design-patterns-for-javascript

This talk will introduce fundamental design patterns for JavaScript and how to use them to build large-scale applications with loose coupling and scalability in mind.
1
star
15

unifei-smart-cards

Material developed in UNIFEI-MG research about Smart Cards
Java
1
star
16

talk-10-tips-for-writing-maintainable-code-in-backbone

This talk explains some issues, solutions and good practices for common scenarios in Backbone.js.
JavaScript
1
star
17

talk-backbone-tricks-or-treats-html5devconf

This talk explains some issues, solutions and good practices for common scenarios in Backbone.js. Presented at HTML5DevConf 2014
JavaScript
1
star
18

ampersand-es6-example

Sample setup with Ampersand, ES6, Gulp, Babel and Webpack, including lazy loading
JavaScript
1
star