koa-generator icon indicating copy to clipboard operation
koa-generator copied to clipboard

Koa' application generator for 1.x and 2.x( Express-style and support all middlewares include async/await )

Results 17 koa-generator issues
Sort by recently updated
recently updated
newest added

还在更新吗,现在koa版本都2.13.1了

使用最新的 koa-generator 生成的项目 app.js 文件中,有如下一段代码: // routes app.use(index.routes(), index.allowedMethods()) app.use(users.routes(), users.allowedMethods()) IDE 提示 Invalid number of arguments, expected 1 查看了相关文档和 koa 源码,其中 app.use 只接收一个参数 fn。 index.allowedMethods() 等操作是否可以放在 routers 的相关文件中,在 module.exports...

我学习你写的koa2,写了一个es6格式的模版,欢迎批评指正

version: 1.1.16 ---------- 通过`koa2 project_name`创建项目后,在app.js中,出现了`app.use(router.routes(), router.allowedMethods());` app.use()不是只接受第一个参数的吗?

``` diff --git a/package.json b/package.json index 16b6b46..556d519 100644 --- a/package.json +++ b/package.json @@ -9,19 +9,19 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "dependencies": { + "@koa/router":...

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨 To enable Greenkeeper, you need to make sure that a [commit status](https://help.github.com/articles/about-statuses/) is reported on all...

greenkeeper

npm run dev浏览器好像也不能更新,要刷新