CLI Usage
The CLI tool can be run with the following command:
lua-anot {mode} {args} {workdir: default = .}
Modes
build: builds the project underworkdir.watch: watches for changes underworkdir; if it detects any, the project is rebuilt.init: creates a defaultannotations.config.jsonfile inside theworkdir.
Args
-c/--config: path to the config file to use, relative toworkdir(default =annotations.config.json)--watch-interval: polling interval (in seconds) for watch mode.
Generated files
Build mode deletes and recreates the generated directory for each environment root. By default this directory is named Generated.
The core extension creates runtime init files for the server and client. The game framework extension also creates files such as Index.lua, ServiceTypes.lua, _Internal/Lifecycle.lua, and Remotes.model.json.
Warning
Do not edit files under Generated manually. They are replaced on each build.