Skip to content

CLI Usage | Watching

bansheerubber edited this page Sep 14, 2020 · 1 revision

The eggscript program has a feature that allows it to "watch" over the files or directories you provide to it, waiting for changes to be made. Once a change is made, the file you made a change to will be re-transpiled and automatically put into the output directory you have specified. This is a very useful feature, since you will only have to run the eggscript transpiler program once instead of multiple times as you make changes to your source code. To activate the watcher, use the -w or --watch argument. An example may look like eggscript --watch -o ./Add-Ons/Server_Example/ ./Server_Example-dev/. This will transpile everything in the ./Server_Example-dev/ directory and then keep a close eye on any changes that are made in that directory. Once a change is made, eggscript will detect it and automatically transpile the individual file you have changed and output it to where it belongs in ./Add-Ons/Server_Example/.

Clone this wiki locally