In case you didn't read to the bottom, the CEM Generator supports these, so you can generate docs and framework integrations for these with the rest of your other web components. 🤘
cem-generator.wc-toolkit.com…
Someone asked what I think a Custom Elements Manifest generator should look like.
Here's my first pass at it. The goal was to make it lightweight and easy to use.
It's still in the early stages, but let me know what you think.
#WebComponentscem-generator.wc-toolkit.com…
Some features include:
- lightweight - it leverages TS to handle the AST parsing, so we only have a few dependencies
- full API inheritance for extended components
- API auto-detection and documentation with inline comments
- plugin API
- CSS-only custom element detection
🌶️ HOT TAKE! 🌶️
Figma is not a very good source of truth for your design tokens.
The limitations in types and the way features are implemented make it difficult to capture common tokens like line heights and shadows.
#DesignSystems
I love making fun/nerdy projects for myself. Sometimes when I think it's nerdy enough, I like to share it.
Get ready for something nerdy...
#WebComponents
The #WebComponents type parser just got upgrades!
- Imported type aliases now resolve via the AST and TypeScript type checker instead of by name string - fixing collisions and types from node_modules
- New options: maxParseDepth and maxParseProperties for deep or large types