mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-15 04:02:10 +08:00
ee-bin
This commit is contained in:
@@ -1,28 +1,33 @@
|
||||
/**
|
||||
* ee-bin config
|
||||
* ee-bin 配置
|
||||
* 仅适用于开发环境
|
||||
*/
|
||||
module.exports = {
|
||||
/**
|
||||
* 前端服务 - dev
|
||||
* 同时启动 "frontend" "electron"
|
||||
*/
|
||||
frontend: {
|
||||
directory: './frontend',
|
||||
devCommond: 'npm run dev',
|
||||
buildCommond: 'npm run build',
|
||||
protocol: 'http://',
|
||||
hostname: 'localhost',
|
||||
port: 8080,
|
||||
dev: {
|
||||
frontend: {
|
||||
directory: './frontend',
|
||||
cmd: 'npm run dev',
|
||||
protocol: 'http://',
|
||||
hostname: 'localhost',
|
||||
port: 8080,
|
||||
},
|
||||
electron: {
|
||||
directory: './',
|
||||
cmd: 'electron',
|
||||
args: ['.', '--env=local'],
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 主进程服务 - dev
|
||||
*/
|
||||
main: {
|
||||
directory: './',
|
||||
cmd: 'electron',
|
||||
args: ['.', '--env=local'],
|
||||
},
|
||||
* 前端构建
|
||||
*/
|
||||
build: {
|
||||
directory: './frontend',
|
||||
cmd: 'npm run build'
|
||||
},
|
||||
|
||||
/**
|
||||
* 加密
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
"scripts": {
|
||||
"bin-dev": "ee-bin dev",
|
||||
"bin-build": "ee-bin build",
|
||||
"bin-start": "ee-bin start",
|
||||
"dev": "electron . --env=local",
|
||||
"start": "electron . ",
|
||||
"reload": "nodemon --config ./electron/config/nodemon.json",
|
||||
|
||||
Reference in New Issue
Block a user