ts-clean
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.3 • Public • Published

    ts-clean

    npm npm

    Overview

    A Tool For Cleaning Up JavaScript File Built By TypeScript

    Install

    npm install ts-clean --save-dev

    or

    yarn add ts-clean --dev

    Usage

    package.json

    {
      ...
      "script": {
        ...
        "clean": "ts-clean"
      }
      ...
    }

    Options

    Option Description default
    d the dir path you need to clean pwd
    e the file extension you need to clean .js,.js.map,.jsx,.jsx.map

    Example

    • clean all .js, .js.map files built by TypeScript in the current directory
    ts-clean
    • clean all js files built by TypeScript in the app1 and app2 directory
    ts-clean -d app1, app2
    • clean all js files built by TypeScript in the app directory
    ts-clean -d app -e .js

    Help

    If you installed ts-clean in the global installation environment, you can use ts-clean --help for help.

    LICENSE

    MIT@PLDaily

    Install

    npm i ts-clean

    DownloadsWeekly Downloads

    313

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    13.9 kB

    Total Files

    13

    Last publish

    Collaborators

    • pldaily