open-wc / custom-elements-manifest

Custom Elements Manifest is a file format that describes custom elements in your project.
https://custom-elements-manifest.open-wc.org/
227 stars 37 forks source link

Stencil compatibility #132

Closed splitinfinities closed 2 years ago

splitinfinities commented 2 years ago

Hey there @thepassle! This tool is looking amazing for CEM. Is there anything I can do to help improve the Stencil compatibility, either within this code or within Stencil?

I can't quite tell if analyzer code is parsing TypeScript or if you're parsing final compiled files. We do have an output target format that doesn't include the lazy loading which splits definitions out into their own files - dist-custom-elements. Would targeting that help?

splitinfinities commented 2 years ago

45 answered my question about TypeScript files!

thepassle commented 2 years ago

Hey there, the best way to help the project is by testing the analyzer on stencil components and helping improve it where needed. Its currently tested against: https://github.com/open-wc/custom-elements-manifest/blob/master/packages/analyzer/fixtures/plugin-stencil/package/my-element.js but stencil support isnt very battle-tested yet against real projects. Itd be really great to improve on that.

Additionally itd be really nice to start getting CEM in Stencils tooling/workflows by default to get the wider web components community to support CEM :)

splitinfinities commented 2 years ago

I'll get started! Thanks!