1.0.2 • Published 8 years ago

javascript-to-typescript v1.0.2

Weekly downloads
15
License
MIT
Repository
github
Last release
8 years ago

Build Status Dependency Status ##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 

#####Specific Directory

$ js-to-ts --startPath ./src

#####Additional Filter

$ js-to-ts --filter '**/file1.js'

#####Dry Run

$ js-to-ts -p ./src --dryRun
$ Files to Migrate: [
    'src/file1.js',
    'src/file2.js',
    'module/file1.js',
    'module/file2.js'
]