'use strict';

/**
 * 开发环境配置，覆盖 config.default.js
 */
module.exports = (appInfo) => {
  const config = {};
  /**
   * Cross-language service
   * 跨语言服务
   * 如果有cmd参数，则执行该命令且需要指定 directory
   */
  config.cross = {
    python: {
      enable: false,
      name: "pyapp",
      cmd: "python",
      directory: "./python",
      args: ["./main.py", "--port=7074"],
      stdio: "ignore",
      appExit: true,
    },
  };
  /**
   * 开发者工具
   */
  config.openDevTools = {
    mode: "undocked",
  };

  /**
   * 应用程序顶部菜单
   */
  config.openAppMenu = true;

  /**
   * jobs
   */
  config.jobs = {
    messageLog: true,
  };

  return {
    ...config,
  };
};
