Generates a new hook that you can use to add functionality to Lore.


CLI command to create a new hook.


lore generate hook [hook-name]


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

lore generate hook lore-hook-example

This would create a new folder named lore-hook-example and place all the files inside that reflect an empty hook. You can then register this hook in index.js while you develop it, and then (eventually, if you want) publish it to npm.