Generating Typescript class definitions from dotnet classes with CLI.
I've worked with TypeWriter before, and it was amazing. TypeWriter is a product of its own time however, and it's time to move on.
TypeNetCLI aims to automate generating typescript definitions for you. Write data contracts once in dotnet, and enjoy the show.
I'm looking to create an easy, somewhat configurable, and perhaps extendable way of generating typescript classes with no dependencies and no hassle.
Clone the repository.
dotnet run -- -d "/path/to/your/published/Project.Name.dll" -n "Project.Name.Domain.Enums", "Project.Name.Domain.DataContracts" -o "/path/to/desired/output/directory"
or
dotnet run -- --help
- Publish as dotnet tool
- Configurable, and less optinionated
- Any code compilation, just read dll's produced with
dotnet publish
.