npm install -g typescript@2 typescript-formatter http-server
npm install
npm link typescript
we use typescript 2.x rather than current 1.x to match tsconfig.json schema on the official site
npm run build
CanvasToy now use Karma and Jasmine for unit test
npm test
You can also run visible test from example
first, start a local http-server, for example,
http-server
Than open the local url with you browser and goto the example folder, you will find all examples there
Please, be sure to have formatted you code with typescript-formatter before any pull request
tsfmt src/**/*.ts -r
tsfmt tests/**/*.ts -r
Feel free to contribute