I had a niche need to automate yeoman, and spent a few hours trying to overcome yeoman’s insistance on interactive prompts. As far as I can tell the prompting library, Inquirer.js, has no way to read a response file, or at least be commanded to run in non-interactive mode.
Enter an old-school POSIX friend in core-utils… yes
yes utility continuously outputs ‘Y’ followed by a newline as long as another process is reading the stdout stream.
Very convenient for piping to another program.
Here’s how I automated Yeoman to generate a new AngularJS app:
1 2 3 4 5 6 7 8