Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync between source and manifest #106

Open
sashafirsov opened this issue Apr 14, 2022 · 2 comments
Open

sync between source and manifest #106

sashafirsov opened this issue Apr 14, 2022 · 2 comments

Comments

@sashafirsov
Copy link

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:

  • minor vs major vs patch distinction and prevention on pre-release build level
  • generation of release notes

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

  • when src is the base, it would generate the manifest
  • when manifest is base, it would generate the stub or interface to be extended by implementation.

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
Copy link
Author

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?

@sashafirsov sashafirsov changed the title sync between source and manifect sync between source and manifest Apr 17, 2022
@justinfagnani
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants