Add steps relating to the weirdness that is the common module

This commit is contained in:
Oliver Akins 2022-03-07 00:01:00 -06:00
parent e253a71b67
commit 22ed95983e
No known key found for this signature in database
GPG key ID: 3C2014AF9457AF99

View file

@ -5,8 +5,13 @@ Below are the steps required to run the code in development mode:
1. Clone the git repository 1. Clone the git repository
2. Go into the common code module: `cd common` 2. Go into the common code module: `cd common`
3. Tell the Typescript compiler to watch for all updates in the module using: 3. Build the code for commonjs and ES module distribution with: `make`
`tsc --watch`
4. In a new terminal: `cd web-svelte` 4. In a new terminal: `cd web-svelte`
5. Install the required dependencies: `pnpm install` 5. Install the required dependencies: `pnpm install`
- If the `common` module fails to import, link it with `pnpm link ../common/esm`
6. Run Vite: `pnpm dev` 6. Run Vite: `pnpm dev`
7. In a new terminal: `cd server`
8. Install the required dependencies: `pnpm install`
- If the `common` modules fails to import, link it with `pnpm link ../common/cjs`
9. Compile the server code with `tsc`
10. Run the server code with `pnpm start`