{"id":15375978,"url":"https://github.com/thepassle/cem-plugin-enum","last_synced_at":"2025-10-07T05:36:09.163Z","repository":{"id":98994185,"uuid":"383864209","full_name":"thepassle/cem-plugin-enum","owner":"thepassle","description":null,"archived":false,"fork":false,"pushed_at":"2021-07-07T16:40:57.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T09:29:07.757Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thepassle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-07T16:40:55.000Z","updated_at":"2021-07-07T20:05:33.000Z","dependencies_parsed_at":"2023-03-09T08:31:07.647Z","dependency_job_id":null,"html_url":"https://github.com/thepassle/cem-plugin-enum","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"b95936e521e08a2b902b12ec91fee629b19bd211"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":"open-wc/cem-plugin-template","purl":"pkg:github/thepassle/cem-plugin-enum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepassle%2Fcem-plugin-enum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepassle%2Fcem-plugin-enum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepassle%2Fcem-plugin-enum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepassle%2Fcem-plugin-enum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thepassle","download_url":"https://codeload.github.com/thepassle/cem-plugin-enum/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepassle%2Fcem-plugin-enum/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278724020,"owners_count":26034707,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T14:05:26.853Z","updated_at":"2025-10-07T05:36:09.131Z","avatar_url":"https://github.com/thepassle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cem-plugin-template\n\nThis is a starter repository to easily get set up to write custom plugins for [@custom-elements-manifest/analyzer](https://github.com/open-wc/custom-elements-manifest). For more information on authoring custom plugins, see the [authoring plugins documentation](https://github.com/open-wc/custom-elements-manifest/blob/master/packages/analyzer/docs/plugins.md).\n\n## Development\n\n```bash\n# install dependencies\nnpm install\n\n# start local development\nnpm start\n\n# run tests\nnpm test\n```\n\n\u003e **TIP:** When writing custom plugins, [ASTExplorer](https://astexplorer.net/#/gist/f99a9fba2c21e015d0a8590d291523e5/cce02565e487b584c943d317241991f19b105f94) is your friend 🙂\n\n## Usage\n\n### Install:\n\n```bash\nnpm i -D cem-plugin-\u003cpluginname\u003e\n```\n\n### Import\n\n`custom-elements-manifest.config.js`:\n```js\nimport myPlugin from 'cem-plugin-template';\n\nexport default {\n  plugins: [\n    myPlugin()\n  ]\n}\n```\n\n## Supported syntax\n\nDocument an example of the syntax your plugin supports\n\n```js\nexport class MyElement extends HTMLElement {\n  /**\n   * @foo Some custom information!\n   */ \n  message = ''\n}\n```\n\n## Expected output\n\nDocument an example of the expected output custom elements manifest\n\n```diff\n{\n  \"schemaVersion\": \"0.1.0\",\n  \"readme\": \"\",\n  \"modules\": [\n    {\n      \"kind\": \"javascript-module\",\n      \"path\": \"my-element.js\",\n      \"declarations\": [\n        {\n          \"kind\": \"class\",\n          \"description\": \"\",\n          \"name\": \"MyElement\",\n          \"members\": [\n            {\n              \"kind\": \"field\",\n              \"name\": \"message\",\n              \"default\": \"\",\n+             \"foo\": \"Some custom information!\"\n            }\n          ],\n          \"superclass\": {\n            \"name\": \"HTMLElement\"\n          },\n          \"customElement\": true\n        }\n      ],\n      \"exports\": [\n        {\n          \"kind\": \"js\",\n          \"name\": \"MyElement\",\n          \"declaration\": {\n            \"name\": \"MyElement\",\n            \"module\": \"my-element.js\"\n          }\n        }\n      ]\n    }\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthepassle%2Fcem-plugin-enum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthepassle%2Fcem-plugin-enum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthepassle%2Fcem-plugin-enum/lists"}