TZ | 天猪

Results 376 comments of TZ | 天猪

cc @OnedayLiu

@_@ 要问问 @fengmk2 了,是他 wrap 的 passportjs ,后者好像是 express-base 的, wrap 起来就...

就是一个 shell,其他的该怎么加它就怎么加,没啥区别

直接指向 `node_modules/.bin/egg-scripts` 或者自己写个 js 来 fork `npm start`

不用那么复杂,就是写个 `dispatch.js` ```js // dispatch.js const Command = require('egg-scripts'); new Command([ 'start', '--port=7001', ]).start(); ```

还有 README 可以补个说明和截图

@whxaxes 这个 PR 进度如何? @ShuaiShuaiguo 需要 Rebase 下

看底部,需要 rebase 处理冲突问题。

直接自己加到自己的 settings 就好了。

> 实际测试了下,child_process 中启动的 worker_threads 调用的其它文件指令会被 nyc 忽略: > > * https://github.com/eggjs/egg-cluster/pull/100/files#diff-70005bdc6996e6c69b89150d4829df5f33ecba8f279fc35c696d02cbcc6fd5adR15-R34 > > 这里实际上已经被 `lib/agent.js` 在 `worker_threads.test.js` 的 case 中调用了,但是覆盖率不显示 换为 c8 试试,egg-bin 支持 c8 了