{"id":16594881,"url":"https://github.com/symind/tarojs-plugin-svelte","last_synced_at":"2025-03-16T21:30:44.294Z","repository":{"id":65299054,"uuid":"588772853","full_name":"SyMind/tarojs-plugin-svelte","owner":"SyMind","description":"使用 Svelte 开发小程序 🐰","archived":false,"fork":false,"pushed_at":"2023-06-25T22:12:25.000Z","size":2370,"stargazers_count":63,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-16T02:06:54.791Z","etag":null,"topics":["mini-program","svelte","taro","weapp"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/SyMind.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2023-01-14T00:44:28.000Z","updated_at":"2025-03-03T06:37:19.000Z","dependencies_parsed_at":"2023-02-11T05:00:39.800Z","dependency_job_id":null,"html_url":"https://github.com/SyMind/tarojs-plugin-svelte","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyMind%2Ftarojs-plugin-svelte","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyMind%2Ftarojs-plugin-svelte/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyMind%2Ftarojs-plugin-svelte/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyMind%2Ftarojs-plugin-svelte/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SyMind","download_url":"https://codeload.github.com/SyMind/tarojs-plugin-svelte/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830933,"owners_count":20354852,"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":["mini-program","svelte","taro","weapp"],"created_at":"2024-10-11T23:47:47.305Z","updated_at":"2025-03-16T21:30:43.872Z","avatar_url":"https://github.com/SyMind.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eTaro Plugin Svelte\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e使用 Svelte 开发小程序。\u003c/p\u003e\n\n\u003cimg alt=\"\" src=\"https://github.com/SyMind/tarojs-plugin-svelte/blob/main/screenshots/weapp.png\"\u003e\n\n\u003e 请 Star 🌟 这个项目来表达你的喜爱 ❤️ 和支持。\n\n# 示例项目\n\n[使用 Svelte 开发的网易云音乐小程序](https://github.com/SyMind/netease-cloud-music)\n\n# 安装与使用\n\n你需要先拥有一个 Taro 项目，如果你还不知该如何创建一个 Taro 项目，请先从这里开始：[Taro 安装及使用](https://docs.taro.zone/docs/GETTING-STARTED)。\n\n### 安装\n\n本项目以 Taro 插件的形式存在，请在你的 Taro 项目中安装**本插件**。\n\n```bash\nyarn add tarojs-plugin-svelte\n```\n\n### 配置\n\n在 Taro 项目的 `config/index.js` 中添加本插件，并将 `framework` 更改为 `svelte`。\n\n```javascript\nconst config = {\n    framework: 'svelte',\n    plugins: [\n        'tarojs-plugin-svelte'\n    ],\n}\n```\n\n# 和使用 React 的对比\n\n\u003e 比较方法的细节在这里 [svelte-react-analysis](https://github.com/SyMind/svelte-react-analysis) 。\n\n## 打包体积\n\n|             | 初始项目     |\n| ----------- | ------------ |\n| React       | 307kb (基准) |\n| Preact      | 193kb (↓37%) |\n| Svelte ⭐️ | 169kb (↓45%) |\n\n# License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymind%2Ftarojs-plugin-svelte","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsymind%2Ftarojs-plugin-svelte","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymind%2Ftarojs-plugin-svelte/lists"}