webhook-config-manager
Consolidates all webhook configs found in given directory in a single new one.
Looks for all hook.json
found in <cwd>/**/*
. Loads the content of all of them, concatenate them in on single array
and writes the output in a file <cwd>/web-hooks.json
.
Example
Take the following file structure:
my-projects/
├── project-a/
│ ├── hook.json
│ ├── index.js
│ └── package.json
├── project-b/
│ ├── hook.json
│ ├── index.js
│ └── package.json
└── project-c/
├── hook.json
├── index.js
└── package.json
project-a/hooks.json
<cwd>/project-b/hooks.js
<cwd>/project-c/hooks.js
...and the following script:
$ npx webhook-config-manager
<cwd>/web-hooks.json
License
© 2020-present Martin Rafael Gonzalez tin@devtin.io