This implements the gun.js to-do app tutorial using brunch, implementing jquery and gun into a simple skeleton.
You can remove jquery by deleting it as a dependency in package.json, and then changing the code in thoughts.js to use .querySelector().
For implementation, read the
On the development side it uses auto-reload-brunch which provides real-time CSS injections.
When you're in production mode, it uses uglifyjs-brunch to minify, and gzip-brunch to create copies of your files - in the brunch-config.coffee file you can change its options.
- Install (if you don't have them):
- Run:
brunch w -s/npm start— watches the project with continuous rebuildbrunch b -p/npm build— builds minified project for production- `brunch b -sp — watches / rebuilds minified production project (note: no auto-reload)