air
air copied to clipboard
execute custom commands before and after a file changes or globally
Is there a way to execute custom commands before and after a file changes or globally?
For example: yarn build
if assets
folder content changes?
I think you could use Makefile to finish this, just make build
in cmd
.
build:
yarn build
go build
But now it does not support hooks around build or executing commands. Maybe it'll be implemented in the future.
Hi , I am working on a similar problem where i need to execute custom build commands for different files. Is this feature implemented yet ? Also @frederikhors Can you tell me how you made your workaround for this problem ?
The "before" can easily be solved with a little scripting, the after is something I'm missing. I'm using browser-sync to reload the browser when the server reloads, and I need to do that after the server loads.