koding / kite.js

Kite client in JavaScript
kite.koding.com
MIT License
75 stars 16 forks source link

Introduce TypeScript #35

Closed usirin closed 7 years ago

usirin commented 7 years ago

This PR's main job is to replace babel with typescript's tsc compiler. As of version 1.8.0 TypeScript allows using JavaScript files via allowJs compiler option in tsconfig.json. Since TypeScript knows how to transpile ES6 code into ES5 code, this allows us to use TypeScript along side with JavaScript, providing a way for us to incrementally migrate to TypeScript.

Even though this changes how we write code, my aim is to keep the same public api 100%, once we merge this PR.

usirin commented 7 years ago

gonna close this one for now, I will send another PR fixing for unifying the export/import statements and get rid of requires for now.