diff --git a/package.json b/package.json index c44d89c..33a4f63 100755 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "@midwayjs/orm": "^3.2.0", "@midwayjs/socketio": "^3.2.0", "@midwayjs/static-file": "^3.2.0", + "@midwayjs/task": "^3.2.2", "@midwayjs/validate": "^3.2.0", "@midwayjs/view-ejs": "^3.2.0", "cfork": "^1.8.0", diff --git a/src/configuration.ts b/src/configuration.ts index 92ac67c..1bc45de 100644 --- a/src/configuration.ts +++ b/src/configuration.ts @@ -8,6 +8,7 @@ import * as view from '@midwayjs/view-ejs'; import * as orm from '@midwayjs/orm'; import * as cool from '@cool-midway/core'; import * as file from '@cool-midway/file'; +import * as localTask from '@midwayjs/task'; // import * as socketio from '@midwayjs/socketio'; // import * as task from '@cool-midway/task'; // import * as pay from '@cool-midway/pay'; @@ -20,6 +21,8 @@ import * as file from '@cool-midway/file'; koa, // 参数验证 http://midwayjs.org/docs/extensions/validate validate, + // 本地任务 http://midwayjs.org/docs/extensions/task + localTask, // 模板渲染 http://midwayjs.org/docs/extensions/render view, // 静态文件托管 http://midwayjs.org/docs/extensions/static_file