javascript-to-typescript
v1.0.2 typescript migration typings tsc
##javascript-to-typscript Utility to help migrate javascript apps to typescript.
###Install
$ npm install javascript-to-typescript
###Usage
- from root of project
$ js-to-ts [OPTION] [PATH]
-p --startPath : starting path -f --filter : filter pattern -d --dryRun : dry run
- All commands should be run from the root of your project
- Running any of these commands will also install the following NPM packages
- Typescript
- Typings
#####Default options
$ js-to-ts
Before | After |
---|---|
|
|
#####Specific Directory
$ js-to-ts --startPath ./src
Before | After |
---|---|
|
|
#####Additional Filter
$ js-to-ts --filter '**/file1.js'
Before | After |
---|---|
|
|
#####Dry Run
$ js-to-ts -p ./src --dryRun
$ Files to Migrate: [
'src/file1.js',
'src/file2.js',
'module/file1.js',
'module/file2.js'
]
npm i javascript-to-typescript
Metadata
- MIT
- Whatever
- Stone C. Lasley
- released 7/31/2016