webcomponents / wc-catalog

BSD 3-Clause "New" or "Revised" License
11 stars 3 forks source link

Create package / custom element manifest validator page #3

Open justinfagnani opened 2 years ago

justinfagnani commented 2 years ago

To help package maintainers publish valid custom elements manifests, we should add a validator page.

This page will have an input for an npm package name. Entering a package name will trigger a standard import of the page into the registry, and report validation errors in the UI. This means that we will have to store validation errors in the database in order to show errors without performing a new import on already imported packages.

Validation checks can be categorized as those strictly required to process a CEM and those the registry add for inclusion criteria (package type module, etc).

Some validation checks:

thepassle commented 2 years ago

If a package has a package export map, the manifest should also be added there