Name two npm packages typically used to publish Yeoman generators.

Prepare for the Yeoman (YN) Test. Use flashcards and multiple-choice questions, all with hints and explanations, to get ready for your upcoming exam. Enhance your learning experience!

Multiple Choice

Name two npm packages typically used to publish Yeoman generators.

Explanation:
The idea is that Yeoman generators are built with the Yeoman generator toolkit and published under a conventional package name. You use the yeoman-generator package as the base library that provides the Generator class and helper utilities to implement your generator. Then you publish your own generator as a package named generator-<name> on npm, following the standard naming convention (for example, generator-angular). So the two packages you typically work with are yeoman-generator and generator-foo. The CLI yo is what you use to run generators, but it isn’t the package you publish as your generator.

The idea is that Yeoman generators are built with the Yeoman generator toolkit and published under a conventional package name. You use the yeoman-generator package as the base library that provides the Generator class and helper utilities to implement your generator. Then you publish your own generator as a package named generator- on npm, following the standard naming convention (for example, generator-angular). So the two packages you typically work with are yeoman-generator and generator-foo. The CLI yo is what you use to run generators, but it isn’t the package you publish as your generator.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy