A Tool For Cleaning Up JavaScript File Built By TypeScript
npm install ts-clean

> A Tool For Cleaning Up JavaScript File Built By TypeScript
``sh`
npm install ts-clean --save-dev
or
`sh`
yarn add ts-clean --dev
> package.json
`json`
{
...
"script": {
...
"clean": "ts-clean"
}
...
}
| 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 |
- clean all .js, .js.map files built by TypeScript in the current directory
`sh`
ts-clean
- clean all js files built by TypeScript in the app1 and app2 directory
`sh`
ts-clean -d app1, app2
- clean all js files built by TypeScript in the app directory
`sh`
ts-clean -d app -e .js
If you installed ts-clean in the global installation environment, you can use ts-clean --help` for help.
MIT@PLDaily