自定义(多)命令,jobs日志是否打印

This commit is contained in:
gaoshuaixing
2023-10-09 18:59:31 +08:00
parent 15d0631327
commit 09d95806d0
6 changed files with 34 additions and 0 deletions

View File

@@ -84,5 +84,15 @@ module.exports = {
cmd: 'go',
args: ['run', './main.go', '--env=dev'],
},
node_version: {
directory: './',
cmd: 'node',
args: ['-v'],
},
npm_version: {
directory: './',
cmd: 'npm',
args: ['-v'],
},
},
};

View File

@@ -132,6 +132,13 @@ module.exports = (appInfo) => {
mainExit: false,
childExit: true,
rendererExit: true,
};
/**
* jobs
*/
config.jobs = {
messageLog: true
};
/**

View File

@@ -18,6 +18,13 @@ module.exports = (appInfo) => {
*/
config.openAppMenu = true;
/**
* jobs
*/
config.jobs = {
messageLog: true
};
return {
...config
};

View File

@@ -18,6 +18,13 @@ module.exports = (appInfo) => {
*/
config.openAppMenu = false;
/**
* jobs
*/
config.jobs = {
messageLog: false
};
return {
...config
};

View File

@@ -241,6 +241,8 @@ class FrameworkController extends Controller {
/**
* 上传文件
* 不建议使用请使用electron的api来获取文件的本机路径然后读取并上传
* 使用http的files属性实际上多余拷贝一次文件
*/
async uploadFile() {
const { CoreApp } = EE;

View File

@@ -8,6 +8,7 @@
"dev-frontend": "ee-bin dev --serve=frontend",
"dev-electron": "ee-bin dev --serve=electron",
"dev-go": "ee-bin exec --command=go",
"dev-cmd": "ee-bin exec --command=node_version,npm_version",
"build-frontend": "ee-bin build",
"start": "ee-bin start",
"rd": "ee-bin rd",