For node.js projects do
npm install nutella_lib
For browser projects either:
npm install nutella_lib
and then use browserify OR- use the bundled
nutella_lib.js
indist
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.json
andsrc/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
)