The motivation was to separate the server and client dependencies from each other. In the process the electron build process was refactored as well. The most noteworthy changes are:
The sisyfos project now uses yarn workspaces and have 4 workspaces: client, server, shared and desktop. Each workspace has its own package.json for dependency management.
The shared workspace consists of extracted code from the server which both the client and server relied on.
The desktop workspace contains the electron setup.
Each workspace now have a src folder.
/dist is now split into /client/dist and /server/dist.
/releaseis moved to /desktop/dist.
require statements have been converted to imports. We are now typechecking usage of external packages!
Changes to the package.json scripts for building and running sisyfos (see table below).
Updated github actions to accomodate the above changes.
<!DOCTYPE html>
Sisyfos refactor changes
The motivation was to separate the server and client dependencies from each other. In the process the electron build process was refactored as well. The most noteworthy changes are:
The sisyfos project now uses yarn workspaces and have 4 workspaces: client, server, shared and desktop. Each workspace has its own package.json for dependency management.
The shared workspace consists of extracted code from the server which both the client and server relied on.
The desktop workspace contains the electron setup.
Each workspace now have a
src
folder./dist
is now split into/client/dist
and/server/dist
./release
is moved to/desktop/dist
.require
statements have been converted to imports. We are now typechecking usage of external packages!Changes to the package.json scripts for building and running sisyfos (see table below).
Updated github actions to accomodate the above changes.
Minor refactors of code (from boy scouting).
Package.JSON scripts