Commit Graph
27 Commits
Author SHA1 Message Date
Oliver Eyton-WilliamsandKristofer Koishigawa 0cd3f7671a chore(deps): add missing dependencies (#49703)
Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>
2023-03-14 17:25:15 +05:30
Oliver Eyton-Williams c498c06259 fix(deps): add missing dependencies + fix knip (#49691)
* refactor: use pnpm dlx over npx

* fix: create config before running knip

* chore: fix challenge-parser dependencies

* chore: add missing client + plugin dependencies

* chore: pin deps
2023-03-13 19:38:19 +05:30
renovate[bot] 633246f845 chore(deps): update dependency @total-typescript/ts-reset to ^0.4.0 (#49676)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-13 11:27:54 +05:30
renovate[bot] 64ef7f82fc fix(deps): update dependency @growthbook/growthbook-react to v0.13.0 (#49681)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-12 18:20:59 +05:30
renovate[bot] 61be2c68b0 fix(deps): update dependency react-router-dom to v6.9.0 2023-03-12 12:05:26 +00:00
renovate[bot] 8c15289f13 chore(deps): update dependency webpack to v5.76.1 2023-03-12 09:30:06 +00:00
renovate[bot] e315d91b0c chore(deps): update dependency eslint-config-prettier to v8.7.0 2023-03-12 06:00:42 +00:00
renovate[bot] 7de9fa55a1 chore(deps): update dependency @types/node to v18.15.0 2023-03-12 02:59:50 +00:00
renovate[bot] cc8b7da4b2 chore(deps): update automerged always - codesee to v0.531.0 2023-03-11 23:37:37 +00:00
renovate[bot] d5b87cd07d fix(deps): update dependency react-reflex to v4.0.12 2023-03-11 20:29:46 +00:00
renovate[bot] 748dea033c fix(deps): update dependency fastify to v4.14.1 2023-03-11 19:45:28 +00:00
renovate[bot] caed609114 chore(deps): update dependency autoprefixer to v10.4.14 2023-03-11 17:09:13 +00:00
renovate[bot] 4193207ce6 fix(deps): update dependency jquery to v3.6.4 2023-03-11 07:48:09 +00:00
Niraj NandishandOliver Eyton-Williams 4769a448e1 feat(api): sessions management (#49499)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-03-09 20:36:33 +05:30
Muhammed MustafaandOliver Eyton-Williams 86c215acdd feat(client): add type reset (#49628)
* feat(client): add type reset

* downgrade babel types

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

---------

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-03-09 14:25:30 +00:00
Oliver Eyton-WilliamsandShaun Hamilton 16dec4ef86 feat: use pnpm to manage pm2 (#49574)
* fix(api): use pnpm to manage pm2

This means that pm2 will get the correct NODE_PATH environment variable.
Also, if we use pnpm to manage node, this ensure that pm2 will use that
node version.

* docs(devops): update api install and update docs

* feat: set node version via npmrc

This means that all scripts (pnpm run ...) will use this node version.
The only way to get other node versions is to invoke `node` directly.

* fix(docs): update api docs for pnpm installation

* feat: use pm2 from root

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2023-03-07 14:54:31 -08:00
renovate[bot] 85d82f998f fix(deps): update dependency @growthbook/growthbook-react to v0.12.0 (#49587)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-06 07:05:39 -08:00
renovate[bot] 5c7a25ff22 chore(deps): update dependency @types/react-scrollable-anchor to v0.6.1 (#49581)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-06 16:12:38 +05:30
renovate[bot] 933b909111 fix(deps): update dependency fastify to v4.14.0 2023-03-05 10:44:01 +00:00
renovate[bot] aff312410a fix(deps): update dependency algoliasearch to v4.15.0 2023-03-05 06:53:20 +00:00
renovate[bot] ed14033d41 fix(deps): update dependency @stripe/stripe-js to v1.48.0 2023-03-05 03:39:06 +00:00
renovate[bot] 6802434ab5 chore(deps): update automerged always - codesee to v0.525.0 2023-03-05 00:13:08 +00:00
renovate[bot] a5d31659bc fix(deps): update dependency react-router-dom to v6.8.2 2023-03-04 21:10:50 +00:00
renovate[bot] 72321ad76b fix(deps): update dependency nodemon to v2.0.21 2023-03-04 17:30:13 +00:00
renovate[bot] 8bfb3d3142 chore(deps): update dependency @types/node to v18.14.6 (#49580)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-04 07:50:01 -08:00
renovate[bot] 6312069bd5 chore(deps): update react monorepo 2023-03-04 14:09:39 +00:00
Oliver Eyton-WilliamsandShaun Hamilton d7848ae01a feat: migrate to pnpm for better workspace DX (#49293)
* feat: npm -> pnpm 

This resolves the issues with the gatsby client (gatsby-plugin-pnpm
deals with the fact that gatsby is relying on its own dependencies
being de-duped)
and challenge-editor (which doesn't seem to want to automatically install
codemirror and needed its own eslint config)

* fix: correct mocha path for curriculum tests

* fix: use select workspace with -F not -w

* fix: reorganise packages and restrict hoisting

pnpm works best if the workspaces keep their own dependencies, since
dependencies are not flattened and then what node resolves from a
require is predictable.

@types seem to be a special case and more care is required to prevent
them getting smushed together in the root (hence the .npmrc)

* fix: add types for tools + root

* fix: decouple challenge-auditor from client

* fix: add ui-components types

* fix(client): use the latest types for react 16

* fix: prettify

* fix: prettierignore pnpm-lock

* fix: relax hoisting

Turns out pnpm works just fine with types. I don't know what was going
wrong before, but there are no-longer any type conflicts.

* fix: add @redux-saga/core to fix eslint issue

It seems to only be redux-saga that import/named can't cope with, so it
is probably okay to work around this one.

* chore: add chai to tools/scripts/build

* fix: add store to root for cypress

* fix: allow cypress to download binaries

If we want to keep preventing cypress from downloading binaries, we can
figure out a workaround, but I'm allowing it to ease the transition to
pnpm.

My guess about why this is happening is that npm triggers Cypress's
postinstall script, but pnpm does not (because pnpm install only
installs if necessary, perferring to link)

* chore: re-enable pre/post scripts

* fix: update build scripts for client

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* chore: update engines to use pnpm


* fix: enable choice of (super)block for tests

Only 'nix machines for now.

* chore: pin pnpm to version 7

* chore: remove last npms

Except web + curriculum-server. I'll update them when I start work on
them again.

* fix: lockfile check to catch any package-locks

* fix(action): install pnpm for upcoming tests

* chore: add nodemon to new api

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2023-03-02 18:17:44 +00:00