Heavily relying on lebab for es5 to es6 conversion
- convert es5 to es6 code
- Renames files in a directory to .ts
- delete left over js files by commandline see commands usage below
install by using yarn or npm
npm install -g @epicallan/js-to-ts
$ js-to-ts --dir <relativePath>
to convert files in a specific dir
$ js-to-ts
to convert files in current dir
$ js-to-ts -d
to delete all js files in current dir
$ js-to-ts -d --dir <relativePath>
to delete all js files in relative dir