In my development workflow I have a makefile with the following target:
build:
daml build
daml codegen js -o daml.js .daml/dist/*.dar
cd ui && yarn install --force --frozen-lockfile
I invoke this whenever my DAML model changed and I have to rerun the code generation. After that I always use daml start
to start up the sandbox and JSON API. This does another compilation, which in my large project takes a bit. Is there a way to disable the compilation step in daml start
or is there another easy way to reduce to a single compilation (other than separately starting sandbox and JSON API manually - I like the convenience of daml start
)?
A related question: does it even make sense to compile as part of daml start
? I guess it makes it easier for newcomers only having to execute a single command, but from the command name start
itself I wouldn’t expect this to also compile my code.