CLI tool to find unused code in TypeScript projects
-
Add remaining CLI options
-
Add a few tests
-
Add error handling when
tsconfig.json
can't be found -
Add loading spinner? https://blog.bitsrc.io/build-command-line-spinners-in-node-js-3e432d926d56
-
Add some color to
printToStdout
function? -
Documentation
- Add proper header to
README.md
- Add
Installation Instructions
toREADME.md
(just usenpx
?) - Add
CONTRIBUTING.md
- Add
CODE_OF_CONDUCT.md
- Add
License
section toREADME.md
- Add
Built by @aeksco
toREADME.md
- Add remaining GitHub community files
- Link issue requesting feedback to VSCode Extension
- Finalize name of project (maybe rename to
ts-tidy
/ts-tidy-up
/tidy-up-ts
/typescript-tidy
/tidy-typescript
/@ts-tidy/cli
) - Layout release plan
- Add proper header to
- Update to function as monorepo - add
core
,cli
,vscode-extension
packages
Basic / default:
ts-find-unused /path/to/project
Debug flag:
-
ts-find-unused /path/to/project --debug
-
ts-find-unused /path/to/project -d
tsconfig.json path: (todo - make this the default?)
ts-find-unused /path/to/project --tsconfigPath=/path/to/project/tsconfig-test.json
Ignore Patterns (comma separated)
ts-find-unused /path/to/project --ignorePatterns=__tests__,stories
Output Format
-
ts-find-unused /path/to/project --outputFormat=txt
(default) -
ts-find-unused /path/to/project --outputFormat=markdown
-
ts-find-unused /path/to/project --outputFormat=json
Output Destination
-
ts-find-unused /path/to/project --outputDestination=./unused.txt
-
ts-find-unused /path/to/project --outputFormat=markdown --outputDestination=./unused.md
-
ts-find-unused /path/to/project --outputFormat=json --outputDestination=./unused.json