Watch mode
bunpy build --watch app.pyWatch mode polls for changes to the entry point and all imported modules. On any change, it rebuilds and prints the result:
[watch] built app.pyz (12 KB, 3.2 ms)
[watch] rebuilt app.pyz - 1 change (2.8 ms)
[watch] error in mylib/utils.py:7 - SyntaxError: invalid syntaxErrors do not stop the watch process - bunpy waits for the next save and tries again.
Combining with –compile
bunpy build --compile --watch app.pyWatch + compile is slower per rebuild (full VM link each time) but useful when testing the compiled binary.
Exit
Press Ctrl+C to stop the watcher.