Simple2D.js is intended to be an exact port of the native Simple 2D, written in JavaScript targeting modern browsers supporting WebGL. The API and feature set aims to be identical to the native version, as much as possible. Simple2D.js may differ only to conform to some JavaScript conventions or to address features and limitations of web browsers.
Build, lint, and minify using Grunt:
npm install -g grunt-cli
npm install
grunt
The Google Closure Compiler is used to optimize and minify. The compiler is written in Java, so make sure the java
command is available. To install Java on macOS, we recommend using Homebrew Cask:
brew tap caskroom/cask
brew cask install java
First, build the library using grunt
, then open an HTML test file from the test/
directory in a browser.
- Run tests on all supported platforms
- Update the version number in
package.json
- Run
grunt
to build the library - Commit all changes, including new builds
- Create a new release in GitHub, with tag in the form
v#.#.#
- Run
npm publish
- 🎉