From 60a7dddd8bc938ccb73e72c25cc3b4450fdfb308 Mon Sep 17 00:00:00 2001 From: Aviv Rosental Date: Sun, 25 Jun 2017 23:23:15 +0300 Subject: [PATCH] feat: add examples for single and multiple entries prompt (#162) --- lib/creator/yeoman/utils/entry.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/creator/yeoman/utils/entry.js b/lib/creator/yeoman/utils/entry.js index 3bf92b94853..b07c747a796 100644 --- a/lib/creator/yeoman/utils/entry.js +++ b/lib/creator/yeoman/utils/entry.js @@ -8,7 +8,7 @@ module.exports = (self, answer) => { result = self.prompt([ InputValidate( 'multipleEntries', - 'Type the name you want for your modules (entry files), separated by comma', + 'Type the name you want for your modules (entry files), separated by comma [example: \'app\']', validate ) ]).then( (multipleEntriesAnswer) => { @@ -41,7 +41,7 @@ module.exports = (self, answer) => { return forEachPromise(entryIdentifiers, (entryProp) => self.prompt([ InputValidate( `${entryProp}`, - `What is the location of '${entryProp}'?`, + `What is the location of '${entryProp}'? [example: '../dist/app.js']`, validate ) ])).then(propAns => { @@ -65,7 +65,7 @@ module.exports = (self, answer) => { result = self.prompt([ InputValidate( 'singularEntry', - 'Which module will be the first to enter the application?', + 'Which module will be the first to enter the application? [example: \'./index\']', validate ) ]).then( (singularAnswer) => `'${singularAnswer['singularEntry']}'`);