This repository was archived by the owner on Oct 5, 2021. It is now read-only.
This repository was archived by the owner on Oct 5, 2021. It is now read-only.
CLI [RFC] #53
Closed
Description
After trying TypeWiz on several different projects, I find it useful to have a CLI tool that will be able to perform the following tasks:
- instrument - in case of a custom configuration not supported by one of our plugins. One such example is rtf.js - see @zoehneto's comment explaining why it is needed.
- apply-types - for applying the collected types to the source code, e.g. in typewiz-webpack
- type-coverage - print the percentage of type coverage (can also be used to enforce specific coverage target in CI), see feat: calculate type coverage #48
I am thinking about renaming the core API of typewiz to typewiz-core
, and then using typewiz
package to the CLI, so as a user you just install typewiz
and can use it (most users shouldn't care about the API part too much).
I'd love to hear user thoughts about this!