{"id":21027875,"url":"https://github.com/mollerzhu/electron-app-template","last_synced_at":"2025-05-15T10:32:59.502Z","repository":{"id":130103919,"uuid":"538752114","full_name":"mollerzhu/electron-app-template","owner":"mollerzhu","description":"Simple template for electron app using Vue/Vite/ElementPlus.","archived":false,"fork":false,"pushed_at":"2022-09-20T03:13:03.000Z","size":143,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T08:02:44.692Z","etag":null,"topics":["electron","typescript","vite","vue"],"latest_commit_sha":null,"homepage":"","language":"Vue","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/mollerzhu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-09-20T00:49:21.000Z","updated_at":"2023-02-22T14:52:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"e8f304c5-ad26-4903-9686-a60ee5933338","html_url":"https://github.com/mollerzhu/electron-app-template","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/mollerzhu%2Felectron-app-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mollerzhu%2Felectron-app-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mollerzhu%2Felectron-app-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mollerzhu%2Felectron-app-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mollerzhu","download_url":"https://codeload.github.com/mollerzhu/electron-app-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254323205,"owners_count":22051744,"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":["electron","typescript","vite","vue"],"created_at":"2024-11-19T11:52:59.231Z","updated_at":"2025-05-15T10:32:59.490Z","avatar_url":"https://github.com/mollerzhu.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# electron-app-template\n\n🥳 `Electron` + `Vue` + `Vite` template with several functions.\n\n![GitHub stars](https://img.shields.io/github/stars/mollerzhu/electron-app-template?color=fa6470\u0026style=flat)\n![GitHub forks](https://img.shields.io/github/forks/mollerzhu/electron-app-template?style=flat)\n\n## Features\n\n📦 Base on [electron-vue-vite](https://github.com/electron-vite/electron-vite-vue)  \n🎯 Build-in Element-plus UI modules  \n🌱 SQLite3 support  \n🌞 Light/Dark mode change  \n🔩 Update function  \n🖥 Child window management  \n🎱 Internationalization support\n\n## Directory\n\n```diff\n+ ├─┬ electron\n+ │ ├─┬ main\n+ │ │ ├── index.ts    entry of Electron-main\n+ │ │ ├── config.ts    default window config\n+ │ │ ├── ipc.ts    window controller ipc event\n+ │ │ ├── window.ts    window controller\n+ │ │ └── updater.ts    updater function\n+ │ └─┬ preload\n+ │   └── index.ts    entry of Electron-preload\n  ├─┬ src\n  │ └─┬─ windows\n  │   └─┬─ main\n  │     └─── main.ts       entry of Electron-renderer\n  ├── index.html\n  ├── package.json\n  └── vite.config.ts\n```\n\n## 🥳 `npmRebuild`\n\n** In electron-builder.json5, here is a setting `npmRebuild`, if you want to rebuild some modules like sqlite3, set it to `true`.\n\n## 🚨 `dependencies` vs `devDependencies`\n\n**Put Node.js packages in `dependencies`**\n\n**e.g.** `electron-store` `sqlite3` `serilaport` `mongodb` ...others\n\n**Put Web packages in `devDependencies`**\n\n**e.g.** `vue` `vue-router` `vuex` `pinia` `element-plus` `ant-design-vue` `axios` ...others\n\nSee more 👉 [dependencies vs devDependencies](https://github.com/electron-vite/vite-plugin-electron-renderer#dependencies-vs-devdependencies)\n\n## 🚨 ESM packages\n\n**e.g.** `node-fetch` `execa` `got` ...others\n\n1. `npm i vite-plugin-esmodule -D`\n2. Configure in vite.config.ts\n\n```ts\nimport esmodule from 'vite-plugin-esmodule'\nexport default {\n  plugins: [\n    esmodule(['got', 'execa', 'node-fetch']),\n  ],\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmollerzhu%2Felectron-app-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmollerzhu%2Felectron-app-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmollerzhu%2Felectron-app-template/lists"}