mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-14 19:52:10 +08:00
chore: modify config
This commit is contained in:
14
cmd/bin.js
14
cmd/bin.js
@@ -12,26 +12,12 @@ module.exports = {
|
||||
directory: './frontend',
|
||||
cmd: 'npm',
|
||||
args: ['run', 'dev'],
|
||||
protocol: 'http://',
|
||||
hostname: 'localhost',
|
||||
port: 8080,
|
||||
indexPath: 'index.html',
|
||||
},
|
||||
bundler: {
|
||||
directory: './', // ./node_modules/.bin/
|
||||
cmd: 'esbuild',
|
||||
args: ['./electron/**/*.js', '--platform=node', '--minify', '--outdir=runtime', '--watch', '--packages=external'], // '--config==./cmd/esbuild.config.js'
|
||||
},
|
||||
bundlerts: {
|
||||
directory: './', // ./node_modules/.bin/
|
||||
cmd: 'esbuild',
|
||||
args: ['./electronts/**/*.ts', '--platform=node', '--minify', '--format=cjs', '--outdir=runtime', '--tsconfig=./electronts/tsconfig.json', '--packages=external'], // '--config==./cmd/esbuild.config.js'
|
||||
},
|
||||
electron: {
|
||||
directory: './',
|
||||
cmd: 'electron',
|
||||
args: ['.', '--env=local'],
|
||||
loadingPage: '/public/html/loading.html',
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
module.exports = {
|
||||
entryPoints: ['electron/main.js'],
|
||||
//bundle: true,
|
||||
minify: true,
|
||||
outdir: 'runtime',
|
||||
watch: true
|
||||
//outfile: 'runtime/main.js'
|
||||
};
|
||||
@@ -1,6 +0,0 @@
|
||||
module.exports = {
|
||||
entryPoints: ['src/index.js'],
|
||||
bundle: true,
|
||||
minify: true,
|
||||
outfile: 'dist/bundle.js'
|
||||
};
|
||||
@@ -8,8 +8,8 @@
|
||||
"ts-dev": "tsc -p ./electronts/tsconfig.json",
|
||||
"dev-esbuild": "ee-bin dev --serve=bundlerts",
|
||||
"dev": "ee-bin dev",
|
||||
"dev-frontend": "ee-bin dev --serve=frontend",
|
||||
"dev-electron": "ee-bin dev --serve=electron",
|
||||
"dev-frontend": "cross-env DEBUG=ee-bin* ee-bin dev --serve=frontend",
|
||||
"dev-electron": "cross-env DEBUG=ee-bin* ee-bin dev --serve=electron",
|
||||
"dev-go": "ee-bin exec --cmds=go",
|
||||
"dev-go-w": "ee-bin exec --cmds=go_w",
|
||||
"dev-python": "ee-bin exec --cmds=python",
|
||||
|
||||
@@ -24,13 +24,9 @@
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
//"outDir": "../outttt/electron"
|
||||
},
|
||||
"include": [
|
||||
"**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"tsconfig.json"
|
||||
],
|
||||
"./electronts/**/*"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user