Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 840 Bytes

CONTRIBUTING.md

File metadata and controls

48 lines (30 loc) · 840 Bytes

How to contribute:

Install dependency:

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

Building:

npm run build

Testing:

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

Format:

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