NodeJS - 20.9+
- Clone the repo:
git clone https://github.com/GabenGar/todos.git
- Switch to the repo:
cd ./todos - Create a pruned output for the extension package:
npx turbo prune "link-overwatch" --out-dir "./dist"
- Switch into it
cd dist - Install dependencies:
npm install
- Build extension:
npm run build
- The extension archive will be located in
/apps/extension/dist.
-
Clone the repo:
git clone https://github.com/GabenGar/todos.git
-
Switch to the repo:
cd ./todos -
Install all dependencies:
npm install
-
Build the project:
npm run build
-
Start the server:
npm run start
npm run dev- Open git config:
open ./.git/config
- Add
usersection:[user] name = <username> email = <email>
- Add ssh key to
coresection:sshCommand = ssh -i <ssh_key_path> -F /dev/null - Change
pushremote to ssh endpoint:git remote set-url --push origin git@github.com:<username>/todos.git
Turborepo claims that the invocation from global install will invoke local install if applicable, so it can be installed globally:
npm install turbo --globalAnd then instead of npm run ... commands it can be used as turbo run ....
turbo generate workspace --type=package --name=<name> --empty --destination=<path>
npm install- I get
npm ERR! code ENOWORKSPACES frontend:dev: npm ERR! This command does not support workspaces.error when starting development. Runcd apps/frontend && npx next telemetry disable.
The repo has a bunch of singleteon packages or the packages which don't work well when there are different versions of them across worspaces. These packages have to be pinned up to minor versions across all workspaces which depend on them and updated to the same versions at the same time.
The packages in question:
-
turboRunnpx @turbo/codemod migrateafter updating to new version. -
biomeRunnpx biome migrate --writeafter updating to new version. -
typescript -
@types/nodeMust matchenginesfield. -
i18next -
i18next-resources-to-backend -
react-i18nexti18nextstuff. -
react -
react-dom -
@types/react -
@types/react-domReactJS stuff. -
@next/env -
nextNextJS stuff. -
@tanstack/react-router -
@tanstack/react-startTankStack stuff. -
react-router -
@react-router/express -
@react-router/node -
@react-router/serve -
@react-router/devReact Router stuff.
Always run npm update after all version manipualtions are complete, and npm install afterwards, because reasons.