{"id":22881296,"url":"https://github.com/frogo/electron-vue-template","last_synced_at":"2025-03-31T15:50:17.818Z","repository":{"id":93631651,"uuid":"460263966","full_name":"frogo/electron-vue-template","owner":"frogo","description":"基于Electron + vue2 + webpack 的脚手架","archived":false,"fork":false,"pushed_at":"2022-04-22T04:35:07.000Z","size":437,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-06T21:31:08.648Z","etag":null,"topics":[],"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/frogo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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-02-17T03:13:04.000Z","updated_at":"2022-05-03T10:10:02.000Z","dependencies_parsed_at":"2023-08-27T01:01:01.821Z","dependency_job_id":null,"html_url":"https://github.com/frogo/electron-vue-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/frogo%2Felectron-vue-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frogo%2Felectron-vue-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frogo%2Felectron-vue-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frogo%2Felectron-vue-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frogo","download_url":"https://codeload.github.com/frogo/electron-vue-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246491532,"owners_count":20786196,"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":[],"created_at":"2024-12-13T17:32:42.274Z","updated_at":"2025-03-31T15:50:17.786Z","avatar_url":"https://github.com/frogo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"集成webpack4 + vue2\n打包使用electron-builder\n## Usage\n```bash\n# install resource manager(Option)\n$ npm i -g nrm\n$ nrm use taobao\n\n# web install and run\n$ npm i\n$ npm run serve\n$ npm run build\n\n# electron install and run\n$ npm i\n$ npm run electron-dev electron开发\n$ npm run electron-package 打包成exe\n```\n## Structure\n\n```tree\n├── electron                  electron 相关配置文件   \n│   ├── config\n│   │   ├── electron-build.js   electron编译打包配置文件\n│   │   ├── electron-dev.js     electron开发配置文件\n│   ├── dev\n│   │   ├── main.js      electron入口文件    \n│   │   ├── preload.js   electron预加载文件\n├── public\n│   ├── config.js          挂在window上的config文件,在index.html引用\n│   ├── config.json        通过http请求的config json文件\n│   ├── favicon.ico        浏览器TAB显示的icon\n│   └── index.html         index.html 模板\n├── src\n│   ├── assets\n│   │   ├── image          公共图片\n│   │   ├── style \n│   │   │   ├── common.scss 公共样式\n│   └── components\n│   │   ├── SvgIcon      SvgIcon全局组件\n│   │   │   ├── index.vue\n│   └── icons              \n│   │   ├── svg            icon的svg 文件存放位置\n│   │   ├── index.js       \n│   └── request\n│   │   ├── api.js         接口函数定义\n│   │   ├── config.js      api地址管理\n│   │   ├── http.js        axios 拦截器和get post 封装\n│   └── router             路由信息\n│   └── store              vuex\n│   └── utils            公共函数方法\n│   └── views              页面级vue文件\n│   └── App.vue            入口vue\n│   └── main.js            入口函数\n├── .browserslistrc        浏览器兼容规则文件\n├── .editorconfig          编辑器配置文件，统一开发编码风格\n├── .eslintrc.js           ESLINT的规则\n├── .gitignore             gitlab忽略文件\n├── .huskyrc.js            commit 提交前和提交格式检查\n├── .stylelintrc.js        CSS检查规则\n├── babel.config.js        babel编译配置\n├── commitlint.config.js   git commit message 提交规范\n├── lint-staged.config.js  git 暂存区文件校验\n├── mock.js                前端开发环境下的mock数据和方案\n├── postcss.config.js      postcss 一种对css编译的工具，类似babel对js的处理\n├── stylelint.config.js    各种样式的检查和校验\n├── package-lock.json      锁定node-modules依赖包版本和源的文件，可删除，可ignore\n├── package.json           该项目的描述文件\n├── readme.md           \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrogo%2Felectron-vue-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrogo%2Felectron-vue-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrogo%2Felectron-vue-template/lists"}