From 6a2ca7d53e3ae681e57f2b80aa4352ae6fa92186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=9A=E5=AD=90=E7=94=B7?= Date: Wed, 7 Feb 2018 02:22:31 +0800 Subject: [PATCH] fix: correct filename change `prompt.js` to `prompts.js` --- docs/Plugin.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Plugin.md b/docs/Plugin.md index 779d04c841..b32f07da68 100644 --- a/docs/Plugin.md +++ b/docs/Plugin.md @@ -205,7 +205,7 @@ module.exports = api => { #### Prompts for 3rd Party Plugins -3rd party plugins are typically installed manually after a project is already created, and the user will initialize the plugin by calling `vue invoke`. If the plugin contains a `prompt.js` in its root directory, it will be used during invocation. The file should export an array of [Questions](https://github.com/SBoudrias/Inquirer.js#question) that will be handled by Inquirer.js. The resolved answers object will be passed to the plugin's generator as options. +3rd party plugins are typically installed manually after a project is already created, and the user will initialize the plugin by calling `vue invoke`. If the plugin contains a `prompts.js` in its root directory, it will be used during invocation. The file should export an array of [Questions](https://github.com/SBoudrias/Inquirer.js#question) that will be handled by Inquirer.js. The resolved answers object will be passed to the plugin's generator as options. Alternatively, the user can skip the prompts and directly initialize the plugin by passing options via the command line, e.g.: