air icon indicating copy to clipboard operation
air copied to clipboard

execute custom commands before and after a file changes or globally

Open frederikhors opened this issue 5 years ago • 3 comments

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?

frederikhors avatar Dec 28 '18 23:12 frederikhors

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.

cosmtrek avatar Dec 30 '18 03:12 cosmtrek

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 ?

0xquark avatar Nov 13 '22 19:11 0xquark

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.

andrioid avatar Dec 18 '23 08:12 andrioid