{"id":30000692,"url":"https://github.com/abrahamspaa/wc-svelte-clock","last_synced_at":"2025-08-05T05:12:32.786Z","repository":{"id":182720472,"uuid":"367806253","full_name":"abrahamspaa/wc-svelte-clock","owner":"abrahamspaa","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-16T09:49:37.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-07-21T05:39:19.382Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://abrahamspaa.github.io/wc-svelte-clock/","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/abrahamspaa.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}},"created_at":"2021-05-16T06:54:07.000Z","updated_at":"2023-07-21T05:39:27.710Z","dependencies_parsed_at":"2023-07-21T05:53:33.786Z","dependency_job_id":null,"html_url":"https://github.com/abrahamspaa/wc-svelte-clock","commit_stats":null,"previous_names":["abrahamspaa/wc-svelte-clock"],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/abrahamspaa/wc-svelte-clock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrahamspaa%2Fwc-svelte-clock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrahamspaa%2Fwc-svelte-clock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrahamspaa%2Fwc-svelte-clock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrahamspaa%2Fwc-svelte-clock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abrahamspaa","download_url":"https://codeload.github.com/abrahamspaa/wc-svelte-clock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrahamspaa%2Fwc-svelte-clock/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268837802,"owners_count":24314984,"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-08-05T02:00:12.334Z","response_time":2576,"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":"2025-08-05T05:12:17.491Z","updated_at":"2025-08-05T05:12:32.777Z","avatar_url":"https://github.com/abrahamspaa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svelte app\n\nThis is a project template for [Svelte](https://svelte.dev) apps. It lives at https://github.com/sveltejs/template.\n\nTo create a new project based on this template using [degit](https://github.com/Rich-Harris/degit):\n\n```bash\nnpx degit sveltejs/template svelte-app\ncd svelte-app\n```\n\n*Note that you will need to have [Node.js](https://nodejs.org) installed.*\n\n\n## How it was build\n\n1. Create svelte app\n```js\nnpx degit sveltejs/template wc-svelte-clock\n```\n2. install the app \n```bash\ncd wc-svelte-clock \u0026\u0026 yarn\n```\n3. Add clock in `App.svelte` taken from [clock](https://svelte.dev/repl/clock?version=3.38.2)\n4. Add `customElement: true` inside rollup.config.js\n5. Create `svelte:options` inside `App.svelte`\n```html\n\u003csvelte:options tag=”svelte-clock” immutable={true} /\u003e\n```\n6. Remove unwanted code in main.js\n7. To test in local add below in `public/index.html`\n```html\n\u003csvelte-clock\u003e\u003c/svelte-clock\u003e\n```\n\n## How to publish in github \n\n1. Create folder as docs\n```bash\nmkdir docs \u0026\u0026 touch docs/index.html\n```\n2. Bundle up \n```bash\nyarn build\n```\n3. Copy public/build/bundle.js to docs/bundle.js\n\n## Reference \n\n- https://itnext.io/svelte-web-component-5-4kb-4afe46590d99\n- https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabrahamspaa%2Fwc-svelte-clock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabrahamspaa%2Fwc-svelte-clock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabrahamspaa%2Fwc-svelte-clock/lists"}