Skip to content

Files

Latest commit

author
Thomas Conner
May 23, 2017
1319dd1 · May 23, 2017

History

History

example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 23, 2017
May 23, 2017
May 23, 2017
May 23, 2017
May 23, 2017

Brunch + Babel/ES6

This is a modern JS skeleton for Brunch.

Installation

Clone this repo manually or use brunch new dir -s es6

Getting started

  • Install (if you don't have them):
    • Node.js: brew install node on OS X
    • Brunch: npm install -g brunch
    • Brunch plugins and app dependencies: npm install
  • Run:
    • npm start — watches the project with continuous rebuild. This will also launch HTTP server with pushState.
    • npm run build — builds minified project for production
  • Learn:
    • public/ dir is fully auto-generated and served by HTTP server. Write your code in app/ dir.
    • Place static files you want to be copied from app/assets/ to public/.
    • Brunch site, Getting started guide

ES-next

To use proposed JS features not included into ES6, do this:

  • npm install --save-dev babel-preset-stage-0
  • in brunch-config.js, add the preset: presets: ['latest', 'stage-0']