Skip to content

Commit

Permalink
docs(zh): correct the wrong file name. (vuejs#2902) [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
remote-star authored and haoqunjiang committed Nov 6, 2018
1 parent 45753bb commit 68bc0d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/zh/dev-guide/plugin-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ module.exports = api => {

#### 第三方插件的对话

第三方插件通常会在一个项目创建完毕后被手动安装,且用户将会通过调用 `vue invoke` 来初始化这个插件。如果这个插件在其根目录包含一个 `prompt.js`,那么它将会用在该插件被初始化调用的时候。这个文件应该导出一个用于 Inquirer.js 的[问题](https://github.com/SBoudrias/Inquirer.js#question)的数组。这些被解析的答案对象会作为选项被传递给插件的 generator。
第三方插件通常会在一个项目创建完毕后被手动安装,且用户将会通过调用 `vue invoke` 来初始化这个插件。如果这个插件在其根目录包含一个 `prompts.js`,那么它将会用在该插件被初始化调用的时候。这个文件应该导出一个用于 Inquirer.js 的[问题](https://github.com/SBoudrias/Inquirer.js#question)的数组。这些被解析的答案对象会作为选项被传递给插件的 generator。

或者,用户可以通过在命令行传递选项来跳过对话直接初始化插件,比如:

Expand Down

0 comments on commit 68bc0d8

Please sign in to comment.