import { createProtocol } from "vue-cli-plugin-electron-builder/lib"; const { autoUpdater } = require('electron-updater'); const log = require('electron-log'); // const fs = require('fs'); // const fs_extra = require('fs-extra'); // const path = require('path'); const isDevel...
桌面端开发框架 electron electron支持插件 vue-cli-plugin-electron-builder 数据库NeDB | 一款NoSQL嵌入式数据库 代码格式规范 eslint 接下来我们来看看具体的演示效果: 具体实现过程, 内容很长, 建议先点赞收藏, 再一步步学习, 接下来会就该项目的每一个重点细节做详细的分析. 开发思路 页面: 列表页index.vue...
yarn add vue-cli-plugin-electron-builder electron # npm 或 cnpm npm i vue-cli-plugin-electron-builder electron 安装完之后完善一些配置,比如别名、eslint、prettier等等基础配置,还有一些颜色、icons等等具体可以看下面 项目的一些基础配置 eslint 使用eslint主要是规范代码风格,不推荐tslint是因为tslint已经不更新...
因为需要做一些打开和关闭的动效,因此我们需要配置electron为frame无边框和透明transparent的属性 /* eslint-disable @typescript-eslint/no-empty-function */'use strict';import{app,protocol,BrowserWindow,globalShortcut}from'electron';import{createProtocol// installVueDevtools}from'vue-cli-plugin-electron-buil...
"vue-cli-plugin-electron-builder": "^3.0.0-alpha.4" }, "commitlint": { "extends": [ "./node_modules/@picgo/bump-version/commitlint-picgo" ] }, "config": { "commitizen": { "path": "./node_modules/cz-customizable" }, "cz-customizable": { "config": "./node_modules/@picgo/bum...
"vue-cli-plugin-electron-builder": "^2.1.1", "vue-router": "^4.0.12" @@ -79,9 +79,6 @@ "path": "cz-conventional-changelog" } }, "gitHooks": { "pre-commit": "lint-staged" }, "lint-staged": { "*.{js,jsx,vue,ts,tsx}": [ "vue-cli-service lint", 14 changes: 4 ...
桌面端开发框架 electron electron支持插件 vue-cli-plugin-electron-builder 数据库 NeDB | 一款NoSQL嵌入式数据库 代码格式规范 eslint 接下来我们来看看具体的演示效果: 具体实现过程, 内容很长, 建议先点赞收藏, 再一步步学习, 接下来会就该项目的每一个重点细节做详细的分析. ...
二、Electron-vue 项目目录介绍 此项目是基于 Electron-vue 实现的,下面来看看它是怎么创建项目以及介绍它的目录结构。 # 全局安装 vue-cli npm install -g vue-cli # 这一步可能会比较慢,因为初始化项目的时候,会下载一些外服的安装包 vue init simulatedgreg/electron-vue image-compress # 进入项目并且运行 cd...
"electron:serve": "concurrently -k \"yarn dev\" \"yarn electron\"", "electron:build": "electron-builder" }, "dependencies": { "@types/lyric-parser": "^1.0.2", "ant-design-vue": "^3.0.0-alpha.14", "axios": "^0.24.0", "dayjs": "^1.10.7", "electron-reloader...
通过vue-cli-plugin-electron-builder 集成的 electron 环境 background.js webPreferences:{// webSecurity: false,// 取消跨域限制enableRemoteModule:true,// 取消 Remote 模块警告nodeIntegration:true// 是否集成 Nodejs} vue 组件 vueconst{ipcRenderer,remote}=window.require('electron')constfse=window.require...