{"id":13604539,"url":"https://github.com/bodjay/svelte-library-template","last_synced_at":"2025-04-12T02:30:52.676Z","repository":{"id":56552713,"uuid":"237806418","full_name":"bodjay/svelte-library-template","owner":"bodjay","description":"This is a project template for Svelte libraries. ","archived":false,"fork":false,"pushed_at":"2020-11-01T01:27:29.000Z","size":11,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-21T10:02:53.297Z","etag":null,"topics":["hacktoberfest"],"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/bodjay.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":"2020-02-02T17:15:04.000Z","updated_at":"2020-11-01T15:12:24.000Z","dependencies_parsed_at":"2022-08-15T20:50:25.014Z","dependency_job_id":null,"html_url":"https://github.com/bodjay/svelte-library-template","commit_stats":null,"previous_names":["bodjay/svelte-library-template","henriquecaraujo/svelte-library-template"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodjay%2Fsvelte-library-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodjay%2Fsvelte-library-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodjay%2Fsvelte-library-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodjay%2Fsvelte-library-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bodjay","download_url":"https://codeload.github.com/bodjay/svelte-library-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248506901,"owners_count":21115503,"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":["hacktoberfest"],"created_at":"2024-08-01T19:00:47.481Z","updated_at":"2025-04-12T02:30:52.344Z","avatar_url":"https://github.com/bodjay.png","language":"JavaScript","funding_links":[],"categories":["Bibliotecas"],"sub_categories":["Comunidade Global"],"readme":"# svelte library template\n\nThis is a project template for [Svelte](https://svelte.dev) libraries. It lives at https://github.com/henriquecaraujo/svelte-library-template.\n\nTo create a new project based on this template using [degit](https://github.com/Rich-Harris/degit):\n\n```bash\nnpx degit henriquecaraujo/svelte-library-template svelte-library\ncd svelte-library\n```\n\n_Note that you will need to have [Node.js](https://nodejs.org) installed._\n\n## Get started\n\nInstall the dependencies...\n\n```bash\ncd svelte-library\nnpm install\n```\n\n...then start [Rollup](https://rollupjs.org):\n\n```bash\nnpm run dev\n```\n\nNavigate to [localhost:5000](http://localhost:5000). You should see your library running on a example application. Edit a component file in `src`, save it, and reload the page to see your changes.\n\nBy default, the server will only respond to requests from localhost. To allow connections from other computers, edit the `sirv` commands in package.json to include the option `--host 0.0.0.0`.\n\n## Building and running in production mode\n\nTo create an optimised version of the library:\n\n```bash\nnpm run build\n```\n\nYou can run the newly built app with `npm run start`. This uses [sirv](https://github.com/lukeed/sirv), which is included in your package.json's `dependencies` so that the app will work when you deploy to platforms like [Heroku](https://heroku.com).\n\n## Single-page app mode\n\nBy default, sirv will only respond to requests that match files in `public`. This is to maximise compatibility with static fileservers, allowing you to deploy your app anywhere.\n\n## Deploying to the web\n\n### On [NPMjs](https://www.npmjs.com/)\n\nAfter finish your awesome library, yarn the follow command\n\n```bash\nnpm run build\n```\n\nThen, from the `dist` folder, generated by build command, execute the follow command:\n\n```bash\nnpm publish\n```\n\n\u003cem\u003eNote: to use this library in sapper, install as devDependency. See the [link](https://github.com/sveltejs/sapper-template#using-external-components).\u003c/em\u003e\n\nFeel free to contribute!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbodjay%2Fsvelte-library-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbodjay%2Fsvelte-library-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbodjay%2Fsvelte-library-template/lists"}