when working on a backend and a frontend simultaneously, it is often required to follow these steps when there is an breaking API change in the backend:
rebuild the backend, i.e. tyfon b
reload the backend (will be done automatically if the backend is already running using tyfon s)
reinstall SDK on client, i.e. tyfon i localhost:8000 or tyfon i localhost:8000 --env dev
so it would be a noticeable improvement to DX if we had a watch command such that:
by default, it would be like tyfon s, except that it would also rebuild current folder
it could be provided with a client folder, in which case after each rebuild it would go there, check package.json, and if the server SDK is installed (i.e. localhost:$PORT with the same package name as server is in "tyfons" entry), then re-install it after each build. could also check if the server SDK is not installed before hand and issue a warning.
when working on a backend and a frontend simultaneously, it is often required to follow these steps when there is an breaking API change in the backend:
tyfon b
tyfon s
)tyfon i localhost:8000
ortyfon i localhost:8000 --env dev
so it would be a noticeable improvement to DX if we had a
watch
command such that:tyfon s
, except that it would also rebuild current folderpackage.json
, and if the server SDK is installed (i.e.localhost:$PORT
with the same package name as server is in"tyfons"
entry), then re-install it after each build. could also check if the server SDK is not installed before hand and issue a warning.