Non-action files in actions folder
I have a number of global / scheduled actions, and I've separated out the logic within these actions into discreet classes that are imported and run in sequence or concurrently depending on what's required. I'd like to keep these classes close to the action they're being used in, but doing that means Gadget thinks these classes are actions when they're not.
Is there a way to get Gadget to ignore these files (I've got them in a subfolder called tasks)?
2 Replies
I would recommend that you mean a helper folder for things like that. The helper function can be a sibling of the actions folder. Anything in the actions will automatically be regarded as an action
Thanks Antoine, I figured it’d have to be something like that