{"id":16117806,"url":"https://github.com/grandemayta/webcomponents-cli","last_synced_at":"2025-03-18T10:31:04.720Z","repository":{"id":34917837,"uuid":"188304798","full_name":"grandemayta/webcomponents-cli","owner":"grandemayta","description":"WebComponents CLI allow you to develop WebComponents from scratch with LitElement and Typescript.","archived":false,"fork":false,"pushed_at":"2022-12-09T03:43:31.000Z","size":1270,"stargazers_count":4,"open_issues_count":14,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T09:01:34.380Z","etag":null,"topics":["customelements","litelement","typescript","webcomponents"],"latest_commit_sha":null,"homepage":"","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/grandemayta.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}},"created_at":"2019-05-23T20:51:45.000Z","updated_at":"2023-05-01T02:09:09.000Z","dependencies_parsed_at":"2023-01-15T10:30:24.269Z","dependency_job_id":null,"html_url":"https://github.com/grandemayta/webcomponents-cli","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grandemayta%2Fwebcomponents-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grandemayta%2Fwebcomponents-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grandemayta%2Fwebcomponents-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grandemayta%2Fwebcomponents-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grandemayta","download_url":"https://codeload.github.com/grandemayta/webcomponents-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243918629,"owners_count":20368745,"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","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":["customelements","litelement","typescript","webcomponents"],"created_at":"2024-10-09T20:47:01.257Z","updated_at":"2025-03-18T10:31:04.340Z","avatar_url":"https://github.com/grandemayta.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebComponents CLI\n[![NPM version](https://d25lcipzij17d.cloudfront.net/badge.svg?id=gh\u0026type=6\u0026v=0.0.9)](http://badge.fury.io/js/badge-list)\n[![Open Source Love](https://badges.frapsoft.com/os/mit/mit.svg?v=102)](https://github.com/ellerbrock/open-source-badge/)\n[![made-with-javascript-doc](https://img.shields.io/badge/Made%20with-Javascript-1f425f.svg)](https://www.sphinx-doc.org/)\n\nWebComponents CLI allow you to develop WebComponents from scratch with LitElement and Typescript.\n\n## Install\n\n```sh\nnpm install -g @grandemayta/webcomponents-cli\n```\n\n## Create a Project\n\n```sh\nwc-cli \u003cname-of-your-project\u003e\n```\n\n## Getting Started\nLaunch the following commands to start the application:\n\n```sh\nnpm start\n```\n\n## Scripts:\n\n| Command | Description |\n| ------ | ------ |\n| npm start | Lift the application in local mode |\n| npm run dev | Generate a build in dev mode |\n| npm run prod | Generate a build in prod mode |\n| npm run dev:legacy | Generate a build in dev mode to support legacy browsers |\n| npm run prod:legacy | Generate a build in prod mode to support legacy browsers |\n\n## Integration\nBuild tasks will create the following output:\n\n#### Build for modern browsers:\n\n    ├── dist/\n        ├── vendor.min.js\n        ├── bundle.min.js\n\n#### Build with support for legacy browsers:\n\n    ├── dist/\n        ├── polyfills.min.js\n        ├── webcomponents-loader.js\n        ├── vendor.min.js\n        ├── bundle.min.js\n        ├── bundles/                               # These scripts will load at runtime\n            ├── webcomponents-ce.js\n            ├── webcomponents-sd-ce-pf.js\n            ├── webcomponents-sd-ce.js\n            ├── webcomponents-sd.js\n\n#### Html example:\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n    \u003cmeta charset=\"UTF-8\"\u003e\n    \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\u003e\n    \u003ctitle\u003eWeb Components Example Integration\u003c/title\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n\n    \u003capp-greetings fullname=\"Charlotte\"\u003e\u003c/app-greetings\u003e\n\n    \u003c!-- If you want support legacy browser just remove this comment\n    \u003cscript src=\"polyfills.min.js\" nomodule\u003e\u003c/script\u003e\n    \u003cscript src=\"webcomponents-loader.js\"\u003e\u003c/script\u003e\n    --\u003e\n    \u003cscript src=\"vendor.min.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"bundle.min.js\"\u003e\u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Polyfills\nWe support the following features:\n\n- Generics\n    - Symbol\n    - fetch\n    - Promise\n    - Async / Await\n\n- Arrays\n    - entries\n    - from\n    - find\n    - findIndex\n    - includes\n    - keys\n    - values\n\n- Objects\n    - assign\n    - entries\n    - values\n\n- Strings\n    - endsWith\n    - includes\n    - startsWith\n\n## Browsers support\n\n:white_check_mark: Chrome\n\u003cbr/\u003e\n:white_check_mark: Firefox\n\u003cbr/\u003e\n:white_check_mark: Safari\n\u003cbr/\u003e\n:white_check_mark: Edge\n\u003cbr/\u003e\n:white_check_mark: IE11\n\n## Documentation\n\nUse the [official guide](https://lit-element.polymer-project.org/guide) to create WebComponents with LitElement\n\n## Todo\n\n- [ ] Improve the documentation\n- [ ] Setup Unit Testing\n- [ ] Setup E2E Testing\n\nKeep calm and code!\n\u003cbr\u003e\n[![Open Source Love](https://badges.frapsoft.com/os/v3/open-source.svg?v=102)](https://github.com/ellerbrock/open-source-badge/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrandemayta%2Fwebcomponents-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrandemayta%2Fwebcomponents-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrandemayta%2Fwebcomponents-cli/lists"}