Yeoman: Call Sub-Generator With User-Supplied Arguments
Let’s consider you have a generator generator-blog (BlogGenerator) with two sub generators (blog-server and blog-client): app\index.js client\index.js server\index.js So when you run yo blog you what to ask the user for some options and run (optionally) sub generators, right? To run a subgenerator you need to call this.invoke(“generator_namespace”, {options: {}}). The second argument we passed … Read more