Commit Graph

1390 Commits

Author SHA1 Message Date
renovate[bot]
6c6ca6c20c chore(deps): update babel monorepo 2023-04-29 09:50:23 +00:00
renovate[bot]
4718f9ea20 chore(deps): update dependency @types/node to v18.16.0 2023-04-24 02:27:07 +00:00
renovate[bot]
2154b40ab6 chore(deps): update dependency @types/node to v18.15.13 2023-04-22 20:28:40 +00:00
renovate[bot]
b1ac1d2baa chore(deps): update dependency @types/jest to v29.5.1 2023-04-22 16:14:16 +00:00
renovate[bot]
73da30749d chore(deps): update dependency @types/lodash to v4.14.194 2023-04-15 04:44:19 +00:00
renovate[bot]
98d055ed39 chore(deps): update dependency markdownlint to v0.28.1 (#50004)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-10 15:16:46 +05:30
renovate[bot]
bd42353841 chore(deps): update dependency @types/node to v18.15.11 2023-04-06 02:35:08 +00:00
Mrugesh Mohapatra
162336365b fix(e2e): update workflows and cypress configs (#49947)
* chore: bump cypress to v11

* fix: remove firefox downgrade

* fix: remove passing specs in the run-script
2023-04-05 08:33:22 -07:00
renovate[bot]
ec0da45e09 chore(deps): update dependency @types/lodash to v4.14.192 2023-04-05 12:33:08 +00:00
renovate[bot]
314c978524 chore(deps): update babel monorepo to v7.21.4 2023-04-04 07:21:28 +00:00
renovate[bot]
a638da6747 chore(deps): update dependency markdownlint to v0.28.0 (#49854)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-03 17:03:43 +00:00
Mrugesh Mohapatra
e5590e56d7 chore: use pnpm v8 for deps (#49892)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2023-03-29 20:18:49 +05:30
Oliver Eyton-Williams
a128dd8fcd chore(api): compile TS into /dist (#49812
* chore: compile TS into /dist

Having the output co-located with the source meant that the js would be
imported by default. Given that we don't recompile on source changes,
this means the server got 'stuck' at the point of compilation and would
only register changes on build.

Also, compiling to a dist directory should make it easier to build when
we want to deploy. That said, the motivation is mostly DX.

* fix: put schema.prisma in the default location
2023-03-28 19:42:20 +05:30
renovate[bot]
0f8a3d2ed9 chore(deps): update dependency @types/node to v18.15.10 2023-03-26 21:19:36 +00:00
renovate[bot]
52728f9a97 chore(deps): update dependency eslint-config-prettier to v8.8.0 2023-03-26 07:34:09 +00:00
renovate[bot]
14e18a8c12 chore(deps): update dependency @types/node to v18.15.9 2023-03-25 10:48:40 +00:00
Oliver Eyton-Williams
a0f958189e chore: update api test suite and include it in run test (#49794) 2023-03-23 16:57:11 +00:00
Oliver Eyton-Williams
36b06be8ce chore: extend lint:ts to cover api (#49793)
* fix: include express-session types + suppress err

* chore: add api to lint:ts

* fix: remove unnecessary typeRoots config
2023-03-22 17:59:46 +05:30
renovate[bot]
7ecf6a44bc chore(deps): update jest monorepo to v29 (major) (#49775)
* chore(deps): update jest monorepo to v29

* chore: install jest-environment-jsdom

* chore: update snapshots

* fix: update config to transform nanoid+uuid

* chore: update babel's node target

This does not seem strictly necessary, but is probably for the best.

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-03-21 12:37:23 +00:00
Lars Kappert
e5715b5948 chore: update knip config (#49778)
* chore: update knip config

* chore: stick to knip v1 in npm scripts
2023-03-21 11:23:26 +05:30
renovate[bot]
62f4b5e8ec chore(deps): replace dependency babel-eslint with @babel/eslint-parser 7.11.0 (#49748)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-20 13:29:46 +00:00
Oliver Eyton-Williams
65a7b0f9ff fix: update scripts + remove unused (#49740)
* chore: remove unused scripts

* fix: update scripts for pnpm + typescript

* fix(scripts): use localhost for start-test

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>

---------

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2023-03-20 14:28:21 +05:30
renovate[bot]
c94962a825 chore(deps): update babel monorepo 2023-03-18 21:49:50 +00:00
Mrugesh Mohapatra
c97cae27e1 feat(tools): add warnings for filename-convention 2023-03-18 22:12:47 +05:30
renovate[bot]
75a75abab4 chore(deps): update dependency @types/node to v18.15.3 2023-03-18 04:24:48 +00:00
Tom
7aeb4ab76b feat(api): setup jest in new api (#49709)
* feat(api): setup jest in new api

* feat: sample tests
2023-03-16 20:33:40 +05:30
Oliver Eyton-Williams
d65c36e4c3 feat: replace rimraf with rm -rf (#49711)
* feat: replace rimraf with rm -rf

rimraf may not be available, but rm will be

* chore(deps): remove rimraf
2023-03-16 12:34:31 +05:30
Oliver Eyton-Williams
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]
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
Oliver Eyton-Williams
4213c65670 fix: update clean commands (#49650)
* fix: update clean commands

With npx the command had to be run twice to clean node_modules.

Also, we have rimraf installed, so npx is not necessary.

* fix: include root node_modules

* fix: update script

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>

---------

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2023-03-11 01:11:28 +05:30
Oliver Eyton-Williams
3864d36e35 fix: remove use-node-version + update devops docs (#49636)
* fix: drop use-node-version + explain npmrc config

* docs(devops): go back to installing node directly

* docs(devops): update scripts + cleanup

* docs: add note about updating node

---------

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2023-03-09 14:09:13 +00:00
Mrugesh Mohapatra
50bc79fde7 fix(tools): rename and update seed user config (#49619) 2023-03-08 12:27:14 +01:00
Oliver Eyton-Williams
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]
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
Oliver Eyton-Williams
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
renovate[bot]
b45491330b chore(deps): update dependency @types/node to v18.14.2 (#49532)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-27 11:37:43 +02:00
renovate[bot]
106d7d9aab chore(deps): update dependency start-server-and-test to v1.15.5 2023-02-27 03:36:26 +00:00
renovate[bot]
aa1c875081 chore(deps): update typescript-eslint monorepo to v5.53.0 2023-02-26 02:33:26 +00:00
renovate[bot]
31a6fd9776 chore(deps): update dependency @types/node to v18.14.1 2023-02-25 09:36:42 +00:00
Shaun Hamilton
6d46f61fe9 refactor(api): shiny new api (#48432) 2023-02-24 17:23:15 +05:30
renovate[bot]
3fc306bc2b chore(deps): update typescript-eslint monorepo to v5.52.0 (#49434)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-18 15:33:10 -08:00
renovate[bot]
f6888eb3ad chore(deps): update dependency webpack-bundle-analyzer to v4.8.0 (#49432)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-18 12:12:32 -08:00
renovate[bot]
2d0d3e120e chore(deps): update dependency @types/node to v18.14.0 (#49430)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-18 12:11:44 -08:00
renovate[bot]
577c18eeaf chore(deps): update dependency start-server-and-test to v1.15.4 (#49423)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-18 12:04:54 -08:00
renovate[bot]
23e6ae6f92 chore(deps): update dependency @types/react-dom to v17.0.19 (#49422)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-18 12:04:33 -08:00
renovate[bot]
d4ef090fd6 chore(deps): update dependency @types/inquirer to v8.2.6 (#49421)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-18 11:56:15 -08:00
Naomi Carrigan
26367a17c7 chore: remove crowdin scripts (#49374) 2023-02-14 09:53:38 +02:00
renovate[bot]
f2a4f58911 chore(deps): update dependency @types/node to v18.13.0 (#49348)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-12 10:06:39 +00:00