node-webot / co-wechat

Wechat for Koa
427 stars 91 forks source link

add support for koa2, use async/await. #10

Closed windsome closed 7 years ago

windsome commented 8 years ago

增加对koa2的支持,session那部分注掉了。 另外,增加了源码部分,支持ES6,ES7,用babel编译成ES5

npm install
npm run build
coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 78.0% when pulling 5e4612f7e8ee57531805b8521a3732260c4625f6 on windsome:master into 9705f6e5dd4fb4645228a1b83c13b2e858eca4db on node-webot:master.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-24.02%) to 53.982% when pulling 016af106b624042d9930f2af9ae8401e0e05fcd9 on windsome:master into 9705f6e5dd4fb4645228a1b83c13b2e858eca4db on node-webot:master.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-24.02%) to 53.982% when pulling 016af106b624042d9930f2af9ae8401e0e05fcd9 on windsome:master into 9705f6e5dd4fb4645228a1b83c13b2e858eca4db on node-webot:master.

JacksonTian commented 8 years ago

不要把生成后的代码进行提交。

JacksonTian commented 8 years ago

如果支持koa2,应该是要做一个大版本的。

windsome commented 8 years ago

加一个函数可以同时支持koa1和koa2,对原来使用不影响。是否大版本您定就可以了。 把lib代码提交是因为别人npm install的时候不会编译src的代码的,人家npm install就能用了。src是开发模式用的。

JacksonTian commented 8 years ago

加个prepublish的hook就好了。

cncolder commented 7 years ago

如果要支持koa2,那就不是 co-wechat 了, 应该改名叫 koa-wechat。

我也希望能有个支持koa2的版本,但是我希望这个新版本不应该再依赖co。