For node.js projects do
npm install nutella_lib
For browser projects either:
npm install nutella_liband then use browserify OR- use the bundled
nutella_lib.jsindist
For developers working on the library. We are using gulp + browserify + watchify to continuously and incrementally build the library as we develop.
To contribute: Clone the repo and gulp bundle inside the project directory. Every time you make a change to any of the files required by the library gulp will rebuild it.
For developers working on the library, to release a new version:
- Update the version in
package.jsonandsrc/version.js - Run gulp to generate distribution for the browser
- Commit
- Tag version (
git tag -a vx.y.z -m 'A message') and push tag (git push origin --tags) - Publish to npm (
npm publish)