Konva.js is an HTML5 Canvas JavaScript framework that extends the 2d context by enabling canvas interactivity for desktop and mobile applications.
Go to file
2014-02-27 18:46:15 +08:00
doc-includes docs: fix wrong shadow color configuration 2014-02-24 22:28:05 +08:00
jsdoc-master grunt server tasks added 2014-02-27 18:45:28 +08:00
src merge 2014-02-27 09:13:55 +08:00
test merge 2014-02-27 09:13:55 +08:00
.gitignore test, gen-doc tasks 2014-02-27 17:56:41 +08:00
.jshintrc only lint errors fixes 2014-02-27 08:49:18 +08:00
.travis.yml syncing master travis yml branch whitelist with filter branch 2013-09-11 21:12:44 -07:00
bower-template.json Modify bower.json to meet bower standard as specified at https://docs.google.com/document/d/1APq7oA9tNao1UYWyOm8dKqlRP2blVkROYLZ2fLIjtWc/edit#heading=h.jmmgkr9iuyac 2014-01-22 15:01:30 -07:00
bower.json Modify bower.json to meet bower standard as specified at https://docs.google.com/document/d/1APq7oA9tNao1UYWyOm8dKqlRP2blVkROYLZ2fLIjtWc/edit#heading=h.jmmgkr9iuyac 2014-01-22 15:01:30 -07:00
Gruntfile.js grunt server tasks added 2014-02-27 18:45:28 +08:00
kinetic.js added dev and minified versions of kinetic to root without version in the name. updated bower build steps 2014-01-21 20:50:30 -08:00
kinetic.min.js added dev and minified versions of kinetic to root without version in the name. updated bower build steps 2014-01-21 20:50:30 -08:00
package.json grunt server tasks added 2014-02-27 18:45:28 +08:00
presentation-schedule.md Update presentation-schedule.md 2013-08-22 08:18:38 -04:00
README.md http://localhost:8080/test/runner.html 2014-02-27 18:46:15 +08:00
server.js grunt server tasks added 2014-02-27 18:45:28 +08:00

Before doing all dev stuff make sure you have node installed. After that, run npm install in the main directory to install the node module dependencies.

Run grunt --help to see all build options.

#Building the KineticJS Framework

To build a development version of the framework, run grunt dev. To run a full build, which also produces the minified version and the individually minified modules for the custom build, run grunt full. You can also run grunt beta to generate a beta version.

If you add a file in the src directory, be sure to add the filename to the sourceFiles array variable in Gruntfile.js.

#Testing

Build Status

KineticJS uses Mocha for testing.

  • If you need run test only one time run grunt test.
  • While developing it is easy to use grunt server with watch task. Just run in in go to http://localhost:8080/test/runner.html. After src file change kinetic-dev.js will be automatically created, so you need just refresh test page.

KineticJS is covered with hundreds of tests and well over a thousand assertions. KineticJS uses TDD (test driven development) which means that every new feature or bug fix is accompanied with at least one new test.

#Generation documentation

grunt gen-doc

#Pull Requests I'd be happy to review any pull requests that may better the KineticJS project, in particular if you have a bug fix, enhancement, or a new shape (see src/shapes for examples). Before doing so, please first make sure that all of the tests pass (grunt test).