lore-generate-hook

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

hook

CLI command to create a new hook.

Usage

lore generate hook [hook-name]

Example

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.