Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 820 Bytes

CONTRIBUTING.md

File metadata and controls

47 lines (29 loc) · 820 Bytes

How to contribute:

Install dependency:

npm install -g typescript@2 typescript-formatter http-server
npm install

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