cro run
stops the server, recompiles, restarts the server when anything in the directory tree changes. That's great.
But when developing the client side UI, and using NPX/yarn/webpack, there is an additional step that is needed to produce the main.js
file.
In the Cro tutorial this step seems to be done manually, viz., we have the line "And there we have it. npm run build
, refresh, and give it a spin." Here npm run build
is a command that has to be run 'manually'.
Is there a simple way, eg., using .cro.yml
to force another command when changes in a sub-directory tree are detected? Eg, if the client side UI files are under path/to/cro-app/client-ui-directory
and the command to be run if any files change is path/to/cro-app/client-ui/directory/yarn build