mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-03-26 22:16:28 +08:00
add docs
This commit is contained in:
0
docs/README.md
Normal file
0
docs/README.md
Normal file
12
docs/plugin-package-zh.md
Normal file
12
docs/plugin-package-zh.md
Normal file
@@ -0,0 +1,12 @@
|
||||
RootPanel 的每个插件都是一个 Node.js 包,拥有一个 `package.json`, 包含下列字段:
|
||||
|
||||
* name
|
||||
* auhtor
|
||||
* version
|
||||
* homepage
|
||||
* repository
|
||||
* description
|
||||
* dependencies
|
||||
* devDependencies
|
||||
|
||||
`dependencies` 字段中定义的依赖会在运行 `npm run install-plugins` 时被安装。
|
||||
10
docs/usages-zh.md
Normal file
10
docs/usages-zh.md
Normal file
@@ -0,0 +1,10 @@
|
||||
## Scripts
|
||||
|
||||
* `install` 安装核心和所有插件的依赖
|
||||
* `plguins install` 安装位于配置文件中的插件
|
||||
* `plguins install [name]` 安装一个来自 NPM 的新插件
|
||||
* `test` 运行自动测试
|
||||
* `test-plguins` 运行所有插件的自动测试
|
||||
* `migrate` 在更新后同步数据库和其他信息
|
||||
* `reconfigre` 重新同步所有插件对系统的修改
|
||||
* `start` 启动 RootPanel
|
||||
Reference in New Issue
Block a user