Idiomatic way to make dotnet webapp automatically build when react spa has changed #833
jvskriubakken
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Having a nx monorepo with frontends written as spa react apps and backends written as c# dotnet webapps.
In the nx monorepo we have frontends and backends as separate nx projects.
During the build process of the monorepo we copy the built js code (from the spa react app) into the dotnet webapp.
So, when a frontend is affected during build we also need the corresponding backend to be built.
To achieve this, we have configured the backend project's implicit dependencies to point to the frontend project.
Is this the best way to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions