Targets
Common lifecycle targets ease transitions between projects. You're free to add application-specific targets, but aim to have the following scripts defined in package.json:
Build targets
buildshould compile/transpile the code (usually fromsrctodist). If the application requires generation of any files (e.g. route maps, schema) this target should depend on those tartgets too.cleanshould remove any generated artifacts.typecheckshould typecheck the source, but not emit the resulting transpiled code.
Run targets
startshould start the application in a configuration enabling hot-reload of changes.serveshould launch a server for the transpiled output.