Custom builds of o.js, containing only the features you need, can be created easily by cloning the o-js repo, getting your environment setup (see Developer Setup below), and using the
bin/combine tool like this:
The above would include the
augment modules, and their dependencies. You could then run
grunt minify to produce a
o.min.js ready for your use.
Make sure that you know which version of o.js you are creating a build of. If you've just cloned the o-js repo then you are on the master branch with all the latest development work, which could very well be broken. To get yourself pointed at a particular release version you'll want to reset to whatever version you'd like your custom build based on. For example:
git reset --hard v0.0.10
Then when you run
bin/combine you'll be using the code from that version.
Changes to o.js must be minimal and deliberate. Currently the focus is contradictory - add helpful features, increase browser/platform support, and reduce the minified size.
If you've found a bug and have the tuits to fix it, then please do. If you've got an idea for something new and shiny then a good way to start is to first open a ticket and start a discussion.
The typical way to contribute changes to o.js is by forking the GitHub repository and sending me (Aran Deltac) a pull request in GitHub. I'll review the pull request and ask for any changes that I think are necessary and then accept it if all is well. Please follow these guidelines when making changes:
gruntwhich will lint your changes, run all tests, and integrate your changes with the combined o.js and uglified o.min.js.
npm install -g grunt-cli tap
Currently the only branding that o.js has is the icon which is used for the site's
favicon.png and, slightly modified, for the
You can download a full size PNG (593x593) or the original Pixelmator image. If you're loading the Pixelmator image make sure you grab the Lato Normal 400 font over at Google Fonts. You can use SkyFonts to easly install the font (its free for Google fonts).
The o.js Icon by Aran Deltac is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.