img.js is a JavaScript library for pixel manipulation.
We use a set of npm scripts to build releases:
Running npm run watchify
will automatically create new builds in the build
directory whenever the source changes.
Running npm run dist
will build a complete and minified version of g.js in the dist
folder. You can also run
npm run browserify
and npm run uglify
separately.
- Update the version number in
package.json
andbower.json
. - Run
npm run dist
to update the files in thedist
folder. - Commit (
git commit -a
) and create a tag (e.g.git tag 1.2.1
). Push and push tags (git push && git push --tags
). - Run
npm publish
to publish the package to npm. You don't have to do anything for Bower.
- Stefan Gabriëls [email protected]