{"id":20945451,"url":"https://github.com/mrin9/astro-lit","last_synced_at":"2025-10-06T19:49:15.613Z","repository":{"id":260971135,"uuid":"882433925","full_name":"mrin9/astro-lit","owner":"mrin9","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-05T11:37:43.000Z","size":73,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T21:43:50.962Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrin9.png","metadata":{"files":{"readme":"readme","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-11-02T19:09:11.000Z","updated_at":"2024-11-05T11:37:46.000Z","dependencies_parsed_at":"2024-11-04T00:23:07.638Z","dependency_job_id":"080f650d-ec89-43bb-9b62-3dbd150e8fe9","html_url":"https://github.com/mrin9/astro-lit","commit_stats":null,"previous_names":["mrin9/astro-lit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrin9%2Fastro-lit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrin9%2Fastro-lit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrin9%2Fastro-lit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrin9%2Fastro-lit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrin9","download_url":"https://codeload.github.com/mrin9/astro-lit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243336563,"owners_count":20275140,"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":[],"created_at":"2024-11-18T23:48:19.717Z","updated_at":"2025-10-06T19:49:10.551Z","avatar_url":"https://github.com/mrin9.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Build Process:\n\nbashCopy# In root directory\nnpm run build   # This creates dist/bundle.js\n\n# Copy bundle to docs/public\ncp dist/bundle.js docs/public/\nThe key differences and improvements from the previous version:\n\nRemoved TypeScript dependencies and configurations\nSimplified Rollup config by removing TypeScript plugin\nChanged the file extensions from .ts to .js\nUpdated the Web Component to use vanilla JavaScript class properties\nInstead of using file:.. dependency, we're manually copying the bundle to the docs' public folder\n\nFor development workflow:\nbashCopy# Terminal 1 - Watch for changes in web components\nnpm run watch\n\n# Terminal 2 - Copy bundle to docs whenever it changes\n# On macOS/Linux:\nwhile true; do cp dist/bundle.js docs/public/; sleep 2; done\n# On Windows (PowerShell):\nwhile ($true) { cp dist/bundle.js docs/public/; Start-Sleep -Seconds 2 }\n\n# Terminal 3 - Run Astro dev server\ncd docs\nnpm run dev\nThis setup ensures that:\n\nThe web component source code is bundled into dist/bundle.js\nThe bundle is copied to the docs' public folder\nAstro serves the documentation site and can access the bundle\n\nThe reason we're copying the bundle to docs/public instead of using file:.. dependency is because:\n\nWe want to test the actual bundled output that will be published\nThe file:.. approach would try to import the package as a module, which isn't what we want - we need the bundled file to be served as a static asset\nThis better reflects how the documentation site will work in production, where it will load the bundle from a CDN or local file\n\nWhen you eventually publish this as an npm package, users will install it and get the bundled file from dist/bundle.js, while the documentation site will serve the bundle as a static asset.\nWould you like me to explain any part of this setup in more detail or help with any adjustments? CopyRetryClaude does not have the ability to run the code it generates yet.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrin9%2Fastro-lit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrin9%2Fastro-lit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrin9%2Fastro-lit/lists"}