webcomponents / custom-elements-manifest

A file format for describing custom elements
BSD 3-Clause "New" or "Revised" License
356 stars 26 forks source link

sync between source and manifest #106

Open sashafirsov opened 2 years ago

sashafirsov commented 2 years ago

2-way sync or at least validation should be part of toolchain. Web Component often has sufficient data in sources to generate manifest, hence there is ability to create match validators which are essential for release lifecycle:

The singe source of truth would prevent the mismatch between src and manifest.

The editors actually do not need to use manifest as info could be available in runtime of class implementation. But the listing of components, search and filtering would benefit from manifest format. Having runtime info and manifest in sync would prevent the editor misuse.

sashafirsov commented 2 years ago

src > manifest is covered by @custom-elements-manifest/analyzer

Comparing the latest released manifest and package release semver with current code could be based on ^^ generator and Validator from this package.

Perhaps this conversation could be moved to @open-wc project as toolchain for web components is not in scope /webcomponents group?

justinfagnani commented 2 years ago

I'm having a hard time following this. What's the issue with the schema?