hook.io-herd
v0.2.5
Published
A simple hook.io hook that spawns one child hook for each json config file in a given directory
Downloads
5
Readme
hook.io Herd
A simple hook.io hook that spawns one child hook for each json config file in a given directory.
- Create a bunch of config.json files.
- Use the
childHooks
key to define the configs for hooks that will be spawned as child hooks - Use the
configFilePath
key in your child hook config to load the config from a separate file- NOTE: paths are relative to the json files as you would expect
Example Config
{
"type":"herd",
"name":"Simpsons",
"childHooks":[
{"type":"helloworld", "name":"Homer"},
{"type":"helloworld", "name":"Marge"},
{"configFilePath":"./simpson-kids/bart.config.json"},
{"configFilePath":"./simpson-kids/lisa.config.json"},
{"configFilePath":"./simpson-kids/maggie.config.json"}
]
}