1.0.1 • Published 5 years ago

ts-clean-prime v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

ts-clean-prime

npm npm Codeship Status for djey47/ts-clean

Overview

A Tool For Cleaning Up JavaScript File Built By TypeScript. Forked from ts-clean, originally coded by koa-next: https://github.com/koa-next/ts-clean.

Install

npm install ts-clean --save-dev

or

yarn add ts-clean --dev

Usage

package.json

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

Options

OptionDescriptiondefault
dthe dir path you need to cleanpwd
ethe 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