Open skarab42 opened 2 years ago
@sindresorhus Any thoughts on this?
I think it's a great idea 👍
source | example
should be capitalizedCategories:
=> Categories
Template literal
category. It was only there previously because we had to document them as only supporting the new TS version.@sindresorhus https://github.com/tommy-mitchell/type-fest/tree/feat-readme-builder
I've been working on expanding this, converting the scripts to TypeScript and using liquidjs
for the readme template. I've also added eslint-formatter-pretty
for formatting warnings while generating the readme:
Thoughts? Haven't changed anything with the type categories or added missing examples/summaries, etc.
@tommy-mitchell Looks great 👍
Nitpick: I would make it TS Playground
=> Playground
The code in the inline examples are missing indentation:
Following the hint made by @fregante in #428, I propose a readme generator for the API part.
@sindresorhus I did a POC and you can see the generated readme there.
To generate the markdown I use the TS compiler so no additional dependencies to get the summaries, tags and examples, the only library that is added is lz-string which is the same one that is used by the TS Playground to generate the share links.
In addition to generating the links for the examples, this would allow us to not worry about adding new types to the readme and always have a version that matches the code.
Upvote & Fund