yo icon indicating copy to clipboard operation
yo copied to clipboard

Update documentation and examples to Node.js 8 async/await

Open k-miras opened this issue 7 years ago • 3 comments

Type of issue

Feature request

It's kinda hard to understand where to use async/await in code

k-miras avatar Jun 25 '18 09:06 k-miras

@k-miras could you send us the link of which documentation is confusing? There's a lot of documentation, so it's hard to know which one is causing you trouble.

SBoudrias avatar Jun 25 '18 09:06 SBoudrias

@SBoudrias

  1. http://yeoman.io/authoring/running-context.html - part about async tasks. How it works with async/await?
  2. http://yeoman.io/authoring/user-interactions.html - part about user prompts with Inquirer.js. If it returns promise, is it possible to use multiple this.prompt() and handle it with async/await in one prompt method?
  3. Question not related to async/await - is it possible to write an example with multiple prompt methods and show execution sequence of them in http://yeoman.io/authoring/user-interactions.html ? I know that methods are queued and executed by it's name, but I get that later on reading documentation at http://yeoman.io/authoring/running-context.html

By the way, thanx for fast response

k-miras avatar Jun 25 '18 09:06 k-miras

I realize this is a very old bug/help request, but I have the same issue, essentially. What I'm trying to wrap my head around is how to make sure that something in my writing() section is fully executed before my install() section runs, because in this case I'm editing package.json, but it's running npm install before I've finished updating it.

flyinbutrs avatar Aug 07 '19 23:08 flyinbutrs