Project Structure
You can structure your project however you like, however, here is some basic guidance you might find useful.
If you define all your targets in a ./targets
directory like so:
Then, in ./index.js
you just need to include the following to auto register any new target file modules.
With this structure in place, so long as each file module inside the ./targets
directory exports a function, the filename (minus the extension) will become the target's name.
Last updated