tscfc
A small CLI utility that helps with incrementally converting your project to typescript or for adding new rules (strictNullChecks, noImplicitAny, etc...) to existing typescript project
Last updated 6 months ago by dderevjanik .
ISC · Original npm · Tarball · package.json
$ cnpm install tscfc 
SYNC missed versions from official npm registry.

Tsconf Files Checker

A small CLI utility that helps with incrementally converting your project to typescript or for adding new rules (strictNullChecks, noImplicitAny, etc...) to existing typescript project

Flow

    1. First tscfc run will output files without errors
    1. Command tscfc --update will automatically include those files to tsconf
    1. After that, each tscfc --update checks files against tsconf files (from step 2.) and tells user if someone is broken
      • 3.1. If there are no broken files, then Ok. User's changes didn't affect any files in tsconf
      • 3.2. If there are files without error, tscfc will add them to tsconf.
      • 3.3. If there are broken files (files in tsconf now have errors), it will output errors and exit code 1 (fail tests)

Installation

npm i -D tscfc

Run from terminal:

Usage: tscfc --project TSCONFIG_PATH SRC_PATH

Example: tscfc ./index.ts --project ../App/tsconfig.strict.json ../App/src

        --project       path to your tsconfig.json
        --verbose       print all logs, usefull for debugging
        --update        include successfiles to tsconf
        --remaining     print all remaining files

Note: In order to check javascript files, please include allowJS: true to tsconfig.

Current Tags

  • 1.2.1                                ...           latest (6 months ago)

5 Versions

  • 1.2.1                                ...           6 months ago
  • 1.2.0                                ...           6 months ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (6)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |