A simple snabbdom starter repository. Using the following tools:
- browserify/watchify for client side bundling
- babel to transpile the ES6 code
##Install
After cloning the repository, run npm install
.
All files live inside the app
folder
..app
.....index.html
.....build.js
...js
........main.js
........(...)
running npm run watch
watches for change and creates the browser bundle 'build.js'
If you want to manually build the bundle, run npm run build
.
##Examples
The repository contains multiple branches with different examples
- master : the basic Hello examples
- dynamic-view: dynamically generated view (using
setInterval
) - event-reactivity : basic event handling example
- counter-1 basic counter (Elm architecture)
- counter-2 a pair of counters (Elm architecture)
- counter-3 a list of counters (Elm architecture)