You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although Grits plans to continue to improve upon its own post-processing mechanisms, and also offers a fairly easy way for users to create plugins that have "hooking logic", it might be useful to another hooking layer that allows users to tell Grits to run external executables/commands in response to certain events.
For example, the user might add a hook that attaches to the afterCopy operation for files matching a glob (images/thumbnails/**/*.png) that runs an external command (such as generate-sprite-map {parentDir}).
Additional Notes:
We should include as many hook events as possible
Plugins should be able to extend hook events (e.g. triggering custom events) for their own purposes
Although Grits plans to continue to improve upon its own post-processing mechanisms, and also offers a fairly easy way for users to create plugins that have "hooking logic", it might be useful to another hooking layer that allows users to tell Grits to run external executables/commands in response to certain events.
For example, the user might add a hook that attaches to the
afterCopy
operation for files matching a glob (images/thumbnails/**/*.png
) that runs an external command (such asgenerate-sprite-map {parentDir}
).Additional Notes:
The text was updated successfully, but these errors were encountered: