Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add examples for single and multiple entries prompt (#162) #167

Merged
merged 1 commit into from
Jul 3, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/creator/yeoman/utils/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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 => {
Expand All @@ -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']}'`);
Expand Down