{"id":19084368,"url":"https://github.com/coghost/electron-vue-zh-book","last_synced_at":"2026-06-17T18:31:30.664Z","repository":{"id":73322238,"uuid":"99718256","full_name":"coghost/electron-vue-zh-book","owner":"coghost","description":"electron-vue 中文文档翻译","archived":false,"fork":false,"pushed_at":"2017-08-10T10:00:40.000Z","size":43,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-11T18:32:13.537Z","etag":null,"topics":["electron","electron-vue"],"latest_commit_sha":null,"homepage":"https://www.gitbook.com/book/coghost/electron-vue-zh-book/details","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coghost.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","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":"2017-08-08T17:20:26.000Z","updated_at":"2020-09-01T16:31:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"1905efe0-6286-468a-997e-d8afee2e09ce","html_url":"https://github.com/coghost/electron-vue-zh-book","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coghost/electron-vue-zh-book","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coghost%2Felectron-vue-zh-book","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coghost%2Felectron-vue-zh-book/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coghost%2Felectron-vue-zh-book/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coghost%2Felectron-vue-zh-book/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coghost","download_url":"https://codeload.github.com/coghost/electron-vue-zh-book/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coghost%2Felectron-vue-zh-book/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34461616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"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":["electron","electron-vue"],"created_at":"2024-11-09T02:51:03.541Z","updated_at":"2026-06-17T18:31:30.633Z","avatar_url":"https://github.com/coghost.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\n![](https://simulatedgreg.gitbooks.io/electron-vue/content/images/logo.png)\n\n\u003e 这是一个用来开发 electron+vue 的框架\n\n[![Build Status](https://semaphoreci.com/api/v1/simulatedgreg/electron-vue/branches/master/badge.svg)](https://semaphoreci.com/simulatedgreg/electron-vue)\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\n[![forthebadge](http://forthebadge.com/images/badges/built-with-love.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/uses-js.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/makes-people-smile.svg)](http://forthebadge.com)\n\n## 概述\n\n`electron-vue` 使用了脚手架 `vue-cli` 来避免手动设置 electron 来支持 vue 的繁琐步骤, 并添加了 [`vue-loader`](https://github.com/vuejs/vue-loader) 和 [`electron-packager`](https://github.com/electron-userland/electron-packager)/[`electron-builder`](https://github.com/electron-userland/electron-builder)等功能支持的`webpack`, 以及 `vue-router`和`vuex` 等一些常用的插件.\n\n#### 查看文档[中文](https://coghost.gitbooks.io/electron-vue-zh/content/).\n\n框架支持功能如下:\n\n* 单个`package.json`即可的项目基础架构\n* 详尽的[文档](https://coghost.gitbooks.io/electron-vue-zh/content/)支持\n* 项目脚手架 [vue-cli](https://github.com/vuejs/vue-cli)\n* 已安装可用的库 ([axios](https://github.com/mzabriskie/axios), [vue-electron](https://github.com/SimulatedGREG/vue-electron), [vue-router](https://github.com/vuejs/vue-router), [vuex](https://github.com/vuejs/vuex))*\n* 开发工具 [vue-devtools](https://github.com/vuejs/vue-devtools) 和 [devtron](https://github.com/electron/devtron)\n* 方便快捷的打包安装工具 [electron-packager](https://github.com/electron-userland/electron-packager) 或者 [electron-builder](https://github.com/electron-userland/electron-builder)\\*\n* 方便 [electron-builder](https://github.com/electron-userland/electron-builder)\\*自动化部署的配置文件 `appveyor.yml` 和 `.travis.yml` 支持\n* 可以生成供 `Webbrowser 浏览器` 使用的代码 `译注: 某些库可能不\b支持web使用, 故需要注意`\n* 简单易用的 [NPM scripts](/npm_scripts.md)\n* 使用 [webpack](https://github.com/webpack/webpack) 和 [vue-loader](https://github.com/vuejs/vue-loader)来实现代码热重载 `译注: 如果是 npm 新安装的 module\b则需要重新运行程序`\n* Process restarting when working in electron's `main` process `译: 不是太明白`\n* 使用 [vue-loader](https://github.com/vuejs/vue-loader/) 来实现 `HTML/CSS/JS` 预处理支持 \n* ES6 默认启用 [`stage-0`](https://babeljs.io/docs/plugins/preset-stage-0/) 编译\n* 使用 [`babili`](https://github.com/babel/babili) 来避免编译到 ES5\n* ESLint 支持 [`standard`](https://github.com/feross/standard) 和 [`airbnb-base`](https://github.com/airbnb/javascript)\n* 单元测试 `Karma + Mocha`\n* 端到端测试 `Spectron + Mocha`\n\n\\* 可通过 `vue-cli` 来定制化上述插件\n\n### 开始\n该框架是可以定制你最终的APP的 `vue-cli` 脚手架, 需要使用 `node@^7` 或者更高版本. `electron-vue` 官方推荐使用 `yarn` 包管理器(`yarn` 可以更好的管理模块依赖, 通过 `yarn clean` 可以减少最终生成的app大小).\n\n```bash\n# Install vue-cli and scaffold boilerplate\nnpm install -g vue-cli\nvue init simulatedgreg/electron-vue my-project\n\n# Install dependencies and run your app\ncd my-project\nyarn # or npm install\nyarn run dev # or npm run dev\n```\n\n##### 作为 Windows 用户?\n请仔细检查 [**Windows用户须知**](https://simulatedgreg.gitbooks.io/electron-vue/content/en/getting_started.html#a-note-for-windows-users), 确保你已经安装所有必须依赖.\n\n##### 使用 Vue 1?\n`electron-vue` 官方不推荐使用, 不过你可以查看 [**1.0文档**](https://github.com/SimulatedGREG/electron-vue/tree/1.0/docs) 来获取信息. \n\n```bash\nvue init simulatedgreg/electron-vue#1.0 my-project\n```\n\n### 下一步\n请查看 [中文文档](https://coghost.gitbooks.io/electron-vue-zh/content/), 在这儿你可以找到关于 `配置/项目架构/编译APP` 的有用见意, 还有[常见问题](https://simulatedgreg.gitbooks.io/electron-vue/content/en/faqs.html)的汇总\n\n### 使用 electron-vue 的项目\n\n* [**Surfbird**](https://github.com/surfbirdapp/surfbird): A Twitter client built on Electron and Vue\n* [**Lulumi-browser**](https://github.com/qazbnm456/lulumi-browser): Lulumi-browser is a light weight browser coded with Vue.js 2 and Electron\n* [**Space-Snake**](https://github.com/ilyagru/Space-Snake): A Desktop game built with Electron and Vue.js.\n* [**Forrest**](https://github.com/stefanjudis/forrest): An npm scripts desktop client\n* [**miikun**](https://github.com/hiro0218/miikun): A Simple Markdown Editor\n* [**Dakika**](https://github.com/Madawar/Dakika): A minute taking application that makes writing minutes a breeze\n* [**Dynamoc**](https://github.com/ieiayaobb/dynamoc): Dynamoc is a GUI client for dynamodb-local, dynalite and AWS dynamodb\n* [**Dockeron**](https://github.com/dockeron/dockeron): A dockeron project, built on Electron + Vue.js for Docker\n* [**Easysubs**](https://github.com/matiastucci/easysubs): Download subtitles in a very fast and simple way","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoghost%2Felectron-vue-zh-book","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoghost%2Felectron-vue-zh-book","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoghost%2Felectron-vue-zh-book/lists"}