{"id":27434108,"url":"https://github.com/camera-2018/vitesse-electron","last_synced_at":"2026-03-09T15:33:07.063Z","repository":{"id":153827717,"uuid":"620934561","full_name":"camera-2018/vitesse-electron","owner":"camera-2018","description":"Vitesse-Electron 快速地创建 Electron 跨平台 Web 应用 魔改自用","archived":false,"fork":false,"pushed_at":"2023-07-01T16:42:02.000Z","size":1823,"stargazers_count":5,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-18T18:49:06.571Z","etag":null,"topics":[],"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/camera-2018.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":"antfu"}},"created_at":"2023-03-29T16:55:49.000Z","updated_at":"2024-11-29T00:44:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"21d45ca2-dd31-4360-9b22-f24fa18d22cf","html_url":"https://github.com/camera-2018/vitesse-electron","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/camera-2018/vitesse-electron","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camera-2018%2Fvitesse-electron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camera-2018%2Fvitesse-electron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camera-2018%2Fvitesse-electron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camera-2018%2Fvitesse-electron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/camera-2018","download_url":"https://codeload.github.com/camera-2018/vitesse-electron/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camera-2018%2Fvitesse-electron/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30301109,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T14:33:48.460Z","status":"ssl_error","status_checked_at":"2026-03-09T14:33:48.027Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-04-14T17:18:55.366Z","updated_at":"2026-03-09T15:33:07.053Z","avatar_url":"https://github.com/camera-2018.png","language":"TypeScript","funding_links":["https://github.com/sponsors/antfu"],"categories":[],"sub_categories":[],"readme":"\u003cp align='center'\u003e\n  \u003cimg src='https://user-images.githubusercontent.com/11247099/154486817-f86b8f20-5463-4122-b6e9-930622e757f2.png' alt='Vitesse - Opinionated Vite Starter Template' width='600'/\u003e\n\u003c/p\u003e\n\n\u003cp align='center'\u003e\n快速地\u003csup\u003e\u003cem\u003eVitesse-Electron\u003c/em\u003e\u003c/sup\u003e 创建 Web 应用\n\u003cbr\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n\u003cp align='center'\u003e\n\u003ca href=\"https://vitesse.netlify.app/\"\u003e在线 Demo\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n\n## 特性\n\n\n- 👼 [Electron](https://www.electronjs.org/) - 用于构建跨平台桌面应用程序的框架\n\n- ⚡️ [Vue 3](https://github.com/vuejs/core), [Vite](https://github.com/vitejs/vite), [pnpm](https://pnpm.io/), [esbuild](https://github.com/evanw/esbuild) - 就是快！\n\n- 🗂 [基于文件的路由](./src/pages)\n\n- 📦 [组件自动化加载](./src/components)\n\n- 🍍 [使用 Pinia 的状态管理](https://pinia.vuejs.org)\n\n- 📑 [布局系统](./src/layouts)\n\n- 📲 [PWA](https://github.com/antfu/vite-plugin-pwa)\n\n- 🎨 [UnoCSS](https://github.com/unocss/unocss) - 高性能且极具灵活性的即时原子化 CSS 引擎\n\n- 😃 [各种图标集为你所用](https://github.com/antfu/unocss/tree/main/packages/preset-icons)\n\n- 🌍 [I18n 国际化开箱即用](./locales)\n\n- 🗒 [Markdown 支持](https://github.com/antfu/vite-plugin-vue-markdown)\n\n- 🔥 使用 [新的 `\u003cscript setup\u003e` 语法](https://github.com/vuejs/rfcs/pull/227)\n\n- 🤙🏻 默认开启 [响应性语法糖](https://vuejs.org/guide/extras/reactivity-transform.html)\n\n- 📥 [API 自动加载](https://github.com/antfu/unplugin-auto-import) - 直接使用 Composition API 无需引入\n\n- 🖨 使用 [vite-ssg](https://github.com/antfu/vite-ssg) 进行服务端生成 (SSG)\n\n- 🦔 使用 [critters](https://github.com/GoogleChromeLabs/critters) 的生成关键 CSS\n\n- 🦾 TypeScript, 当然\n\n- ⚙️ 结合 [GitHub Actions](https://github.com/features/actions)，使用 [Vitest](https://github.com/vitest-dev/vitest) 进行单元测试, [Cypress](https://cypress.io/) 进行 E2E 测试\n\n- ☁️ 零配置部署 Netlify\n\n\u003cbr\u003e\n\n## 预配置\n\n### UI 框架\n\n- [UnoCSS](https://github.com/antfu/unocss) - 高性能且极具灵活性的即时原子化 CSS 引擎\n\n### Icons\n\n- [Iconify](https://iconify.design) - 使用任意的图标集，浏览：[🔍Icônes](https://icones.netlify.app/)\n- [UnoCSS 的纯 CSS 图标方案](https://github.com/antfu/unocss/tree/main/packages/preset-icons)\n\n### 插件\n\n- [Vue Router](https://github.com/vuejs/router)\n  - [`vite-plugin-pages`](https://github.com/hannoeru/vite-plugin-pages) - 以文件系统为基础的路由\n  - [`vite-plugin-vue-layouts`](https://github.com/JohnCampionJr/vite-plugin-vue-layouts) - 页面布局系统\n- [Pinia](https://pinia.vuejs.org) - 直接的, 类型安全的, 使用 Composition API 的轻便灵活的 Vue 状态管理\n- [`unplugin-vue-components`](https://github.com/antfu/unplugin-vue-components) - 自动加载组件\n- [`unplugin-auto-import`](https://github.com/antfu/unplugin-auto-import) - 直接使用 Composition API 等，无需导入\n- [`vite-plugin-pwa`](https://github.com/antfu/vite-plugin-pwa) - PWA\n- [`vite-plugin-vue-markdown`](https://github.com/antfu/vite-plugin-vue-markdown) - Markdown 作为组件，也可以让组件在 Markdown 中使用\n  - [`markdown-it-prism`](https://github.com/jGleitz/markdown-it-prism) - [Prism](https://prismjs.com/) 的语法高亮\n  - [`prism-theme-vars`](https://github.com/antfu/prism-theme-vars) - 利用 CSS 变量自定义 Prism.js 的主题\n- [Vue I18n](https://github.com/intlify/vue-i18n-next) - 国际化\n  - [`unplugin-vue-i18n`](https://github.com/intlify/bundle-tools/tree/main/packages/unplugin-vue-i18n) - Vue I18n 的 Vite 插件\n- [VueUse](https://github.com/antfu/vueuse) - 实用的 Composition API 工具合集\n- [`vite-ssg-sitemap`](https://github.com/jbaubree/vite-ssg-sitemap) - 站点地图生成器\n- [`@vueuse/head`](https://github.com/vueuse/head) - 响应式地操作文档头信息\n- [`vite-plugin-vue-inspector`](https://github.com/webfansplz/vite-plugin-vue-inspector) - 点击页面元素自动跳转到本地IDE对应的 Vue 组件\n\n### 编码风格\n\n- 使用 Composition API 地 [`\u003cscript setup\u003e` SFC 语法](https://github.com/vuejs/rfcs/pull/227)\n- [ESLint](https://eslint.org/) 配置为 [@antfu/eslint-config](https://github.com/antfu/eslint-config), 单引号, 无分号.\n\n### 开发工具\n- [TypeScript](https://www.typescriptlang.org/)\n- [Vitest](https://github.com/vitest-dev/vitest) - 基于 Vite 的单元测试框架\n- [Cypress](https://cypress.io/) - E2E 测试\n- [pnpm](https://pnpm.js.org/) - 快, 节省磁盘空间的包管理器\n- [`vite-ssg`](https://github.com/antfu/vite-ssg) - 服务端生成\n  - [critters](https://github.com/GoogleChromeLabs/critters) - 关键 CSS 生成器\n- [Netlify](https://www.netlify.com/) - 零配置的部署\n- [VS Code 扩展](./.vscode/extensions.json)\n  - [Vite](https://marketplace.visualstudio.com/items?itemName=antfu.vite) - 自动启动 Vite 服务器\n  - [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) - Vue 3 `\u003cscript setup\u003e` IDE 支持\n  - [Iconify IntelliSense](https://marketplace.visualstudio.com/items?itemName=antfu.iconify) - 图标内联显示和自动补全\n  - [i18n Ally](https://marketplace.visualstudio.com/items?itemName=lokalise.i18n-ally) - 多合一的 I18n 支持\n  - [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## 衍生项目\n\n由于这个模板的业务场景非常的局限，下面提供了一个精心策划的列表，列出了社区维护的具有不同偏好和功能集的衍生项目。也可以看看他们。当然也欢迎你 PR 提供自己的项目！\n\n###### 官方\n\n- [vitesse-lite](https://github.com/antfu/vitesse-lite) - Vitesse 的轻量版本\n- [vitesse-nuxt3](https://github.com/antfu/vitesse-nuxt3) - Vitesse 的 Nuxt 3 版本\n- [vitesse-nuxt-bridge](https://github.com/antfu/vitesse-nuxt-bridge) - Vitesse 的 Nuxt2 桥接版本\n- [vitesse-webext](https://github.com/antfu/vitesse-webext) - 开箱即用的浏览器扩展 vite 模板\n\n###### 社区\n\n[查看英文版](./README.md#community)\n\n## 现在可以试试!\n\n\u003e Vitesse 需要 Node 版本 \u003e=14.18\n\n### GitHub 模板\n\n[使用这个模板创建仓库](https://github.com/antfu/vitesse/generate).\n\n### 克隆到本地\n\n如果您更喜欢使用更干净的 git 历史记录手动执行此操作\n\n```bash\nnpx degit antfu/vitesse my-vitesse-app\ncd my-vitesse-app\npnpm i # 如果你没装过 pnpm, 可以先运行: npm install -g pnpm\n```\n\n## 清单\n\n使用此模板时，请尝试按照清单正确更新您自己的信息\n\n- [ ] 在 `LICENSE` 中改变作者名\n- [ ] 在 `App.vue` 中改变标题\n- [ ] 在 `vite.config.ts` 更改主机名\n- [ ] 在 `public` 目录下改变favicon\n- [ ] 移除 `.github` 文件夹中包含资助的信息\n- [ ] 整理 README 并删除路由\n\n紧接着, 享受吧 :)\n\n## 使用\n\n### 开发\n\n只需要执行以下命令就可以在 http://localhost:3333 中看到\n\n```bash\npnpm dev\n```\n\n### 构建\n\n构建该应用只需要执行以下命令\n\n```bash\npnpm build\n```\n\n然后你会看到用于发布的 `dist` 文件夹被生成。\n\n### 部署到 Netlify\n\n前往 [Netlify](https://app.netlify.com/start) 并选择你的仓库, 一路 `OK` 下去，稍等一下后，你的应用将被创建.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcamera-2018%2Fvitesse-electron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcamera-2018%2Fvitesse-electron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcamera-2018%2Fvitesse-electron/lists"}