Skip to content

Commit

Permalink
docs(plugin): add details for plugin.js (eggjs#2780)
Browse files Browse the repository at this point in the history
  • Loading branch information
atian25 authored and fengmk2 committed Jul 12, 2018
1 parent 8d0b29c commit 67d538e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/source/en/basics/plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ A plugin is actually a "mini-application", almost the same as an app:

* It contains [Services](./service.md), [middleware] (./ middleware.md), [config](./config.md), [framework extensions] (./ extend.md), etc.
* It does not have separate [Router] (./ router.md) and [Controller](./controller.md).
* It does not have `plugin.js`, it could only define dependencies with others, but could not deside whether other plugin is enable or not.


Their relationship is:

Expand Down
1 change: 1 addition & 0 deletions docs/source/zh-cn/basics/plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ title: 插件
一个插件其实就是一个『迷你的应用』,和应用(app)几乎一样:
- 它包含了 [Service](./service.md)[中间件](./middleware.md)[配置](./config.md)[框架扩展](./extend.md)等等。
- 它没有独立的 [Router](./router.md)[Controller](./controller.md)
- 它没有 `plugin.js`,只能声明跟其他插件的依赖,而**不能决定**其他插件的开启与否。

他们的关系是:
- 应用可以直接引入 Koa 的中间件。
Expand Down

0 comments on commit 67d538e

Please sign in to comment.