ee-core
ee-core copied to clipboard
ee core
配置命令支持同步参数 如我使用ts编写代码的时候,electron文件中也使用ts 必须先执行tsc完毕后才能进行下一步 比如`ee-bin dev --serve=tsc,electron`
 
xxxx:7071:/api/do-http-request => example ... koaConfig:{ autoCamelCase: true, router:[ { api: '/api/do-http-request', method: 'get', controller: '/controller/framework/doHttpRequestt' } ] }
可配置 是否启用 静态服务 以及自定义 请求过滤 ```js { httpServer: { static: { enable: true, prefix: '/public', path: path.join(getExtraResourcesDir(), 'public'), options: {} }, filter: (uriPath, ctx) => { if (uriPath.startsWith('/public')) { return...
https://github.com/wallace5303/ee-core/blob/6e7528cc6e09fd3cc5e2d541c2310cb5eefbcba3/ee-bin/tools/serve.js#L291 这里的意思是 取 build.electron.typescript 字段作为esbuld的配置对象,但是,demo-ts中,https://github.com/dromara/electron-egg/blob/781aa1e454c081361f02ffefec6742ea2fbe3404/cmd/bin.js#L37 没有配置此字段,所以 buildSync接受的是undefined,这不是正确的使用方式,这会导致未知的错误,比如仅处理.ts文件