Generates a new generator, which is a CLI command that generates other files.


CLI command to create a new generator.


lore generate generator [generator-name]


Let's say you want to create a new generator called lore-generate-example. To do that, you would run this command:

lore generator generator lore-generate-example

This would create a new folder named lore-generate-example and place all the files inside that reflect an basic generator. You can then register this generator in .lorerc as a command while you develop it, and then (eventually, if you want) publish it to npm.