UofS-CEPHIL / modelcollab

A web-based application for collaborating on simulation models in real-time using Firebase
31 stars 1 forks source link

Automatically build database module as part of server and webui builds #12

Closed eRedekopp closed 1 year ago

eRedekopp commented 1 year ago

Currently it is up to the developer to remember to build the database module before the server or webui modules. Figure out how to get npm start and npm run build to build database before building self if necessary.

eRedekopp commented 1 year ago

Finished this by using TS's 'project references' features. Appears to work fine, except requires a "npm prepack" step before will correctly compile with ones that use it. Still feels a lot more ergonomic than the old solution of treating Database entirely separately. Wrote more about this in the "project structure" page of the wiki.