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

Research: Custom Elements Manifest #5933

Closed
1 of 4 tasks
ilhan007 opened this issue Oct 13, 2022 · 0 comments · Fixed by #5964
Closed
1 of 4 tasks

Research: Custom Elements Manifest #5933

ilhan007 opened this issue Oct 13, 2022 · 0 comments · Fixed by #5964

Comments

@ilhan007
Copy link
Member

ilhan007 commented Oct 13, 2022

Feature Request Description

Custom Elements Manifest is a file format that describes the custom elements in your project. This format will allow tooling and IDEs to give rich information about the custom elements in a given project. It's a JSON file, called custom-elements.json containing metadata about the custom elements in your project; their properties, methods, attributes, inheritance, slots, CSS Shadow Parts, CSS custom properties, and a modules exports.

Tasks

  • do a research regarding the format
  • generate custom-elements.json out of our docs (even for a single class is ok)
  • find a way to test it with IDEs (this example looks promising)

Additional context

In order to allow tools to find npm packages with custom element manifests without having to download package tarballs, packages should have a "customElements" field in their package.json that points to the manifest:

{
  "name": "example-package",
  "customElements": "custom-elements.json",
}

Example of custom-elements.json can be found here.

Priority

  • Low
  • Medium
  • High
  • Very High
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Completed
Development

Successfully merging a pull request may close this issue.

2 participants