Commit Graph

139 Commits

Author SHA1 Message Date
Huyen Nguyen
8a6a9859b8 chore: remove mock-fs from the dependency list (#51994) 2023-10-16 09:36:11 +00:00
Naomi Carrigan
dbcc2af39b fix(tools): update failing tests on main (#51980) 2023-10-15 23:52:54 +05:30
Krzysztof G
174865974b fix: text typos (#51876)
Co-authored-by: Viktor Szépe <viktor@szepe.net>
2023-10-09 19:36:27 +07:00
Muhammed Mustafa
4494f95803 feat: upgrade prettier dependencies (#51830) 2023-10-06 23:35:17 +07:00
Moshe
7f09c3ac97 chore: move challenge-editor to use vite (#51775)
Co-authored-by: Sboonny <MuhammedElruby@gmail.com>
2023-10-06 13:45:18 +07:00
renovate[bot]
3d9e357ed5 chore(deps): update dependency @types/mock-fs to v4.13.2 2023-09-30 04:11:01 +00:00
Oliver Eyton-Williams
391fc2e34d refactor: create shared workspace (#51454) 2023-09-07 23:06:01 +05:30
renovate[bot]
5b3ac09516 chore(deps): update dependency inquirer to v8.2.6 2023-08-05 04:31:53 +00:00
Oliver Eyton-Williams
69d6ee32bf feat: python in the browser (#50913)
Co-authored-by: Beau Carnes <1513130+beaucarnes@users.noreply.github.com>
2023-07-28 07:36:25 +02:00
Oliver Eyton-Williams
9441f781fd refactor: move challenge types to config (#51027) 2023-07-24 13:12:47 -07:00
Naomi Carrigan
ab640abee1 chore: detuplication (#50955)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-07-13 12:46:00 +02:00
Naomi Carrigan
a374c2fade feat: challenge helpers for non-step-based challenges (#50769)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2023-07-11 12:32:25 -05:00
Tom
5e04985c93 feat(curriculum): add C# superblock (#50646)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-06-14 13:36:39 +02:00
Jacques Metevier
1f9c1e9d21 chore(deps): upgrade eslint (#50614)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-06-06 17:58:27 +02:00
Naomi Carrigan
5cf2228e84 feat(tools): repair-meta script (#50475) 2023-06-01 17:42:24 +00:00
Tom
373e808938 refactor(config): superblocks and map (#50435) 2023-06-01 14:51:57 +02:00
Tom
4dfca3c560 feat: add exam environment (#50356)
* feat: add exam environment

* fix: cypress

* fix: lint-ts

* fix: lint-js

* fix: codefactor

* fix: don't translate comments from new JS spreadsheet

* fix: more tests

* fix: challenge schema

* fix: external curriculum test?

* fix: add more comments
2023-05-18 13:33:43 +02:00
Tom
d02bb663c4 refactor(curriculum): move helpCategory to block meta.json file (#50265)
* refactor: move helpCategory to block meta

* fix: test?
2023-05-04 08:46:58 +02:00
renovate[bot]
7a9f95c454 chore(deps): update dependency prettier to v2.8.8 2023-04-23 18:23:14 +00:00
Oliver Eyton-Williams
b5bcf16349 fix: blocknameify no longer (#49997)
Remove `blocknameify` function, and adjust curriculum meta as needed
2023-04-10 21:21:00 +05:30
Naomi Carrigan
d1d5b2635f fix: use superblock name in intro.md for new projects (#49897)
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2023-03-30 10:59:22 +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
renovate[bot]
95708c692a chore(deps): update dependency prettier to v2.8.7 2023-03-25 07:58:27 +00:00
Sem Bauke
87d9ade1a7 fix(curriculum,client): move the Euler Project to its own superBlock (#49294)
Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
2023-03-23 21:29:13 +05:30
Tom
b950070f80 feat(curriculum): add college algebra cert as upcoming change (#43605)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2023-03-10 10:55:50 +00: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
Oliver Eyton-Williams
4ff00922da refactor: fix hidden eslint errors (#49365)
* refactor: explicit types for validate

* refactor: explicit return types for ui-components

* refactor: use exec instead of match

* refactor: add lots more boundary types

* refactor: more eslint warnings

* refactor: more explicit exports

* refactor: more explicit types

* refactor: even more explicit types

* fix: relax type contrainsts for superblock-order

* refactor: final boundaries

* refactor: avoid using 'object' type

* fix: use named import for captureException

This uses TypeScript (which works) instead of import/namespace
(which doesn't) to check if captureException exists in sentry/gatsby
(it does)
2023-02-13 07:13:50 -08:00
renovate[bot]
8aa35385a0 chore(deps): update dependency prettier to v2.8.4 (#49341)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-11 10:47:49 +00:00
Sem Bauke
928dcbe08c feat: transfer The Odin Project to its own superblock (#49202)
* feat: the odin-project superblock

* feat: break everything

* fix: correct meta names

* fix: meta again

* fix: tests

* fix: help category and external curriculum test

* fix: file names again

* fix: help category

* fix: remove console log

---------

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-02-08 15:21:03 +01:00
renovate[bot]
e536ba5224 fix(deps): update dependency typescript to v4.9.5 2023-02-04 19:39:26 +00:00
renovate[bot]
f53b19ac95 chore(deps): update dependency prettier to v2.8.3 2023-01-14 10:49:47 +00:00
renovate[bot]
e0e8356d56 chore(deps): update dependency prettier to v2.8.2 2023-01-08 21:24:01 +05:30
renovate[bot]
a606203ae4 fix(deps): update dependency typescript to v4.9.4 2022-12-11 05:27:18 +00:00
renovate[bot]
30579809c8 chore(deps): update dependency prettier to v2.8.1 2022-12-10 05:57:34 +00:00
renovate[bot]
fc9b739772 chore(deps): update dependency bson-objectid to v2.0.4 2022-11-26 07:03:28 +00:00
renovate[bot]
5504a8cbb7 fix(deps): update dependency typescript to v4.9.3 2022-11-20 22:30:54 +00:00
renovate[bot]
617a692489 chore(deps): update dependency inquirer to v8.2.5 2022-10-29 22:50:25 +00:00
Niraj Nandish
53164e71f1 fix: circular dependencies (#46638)
* fix: circular dependency in formHelpers

* fix: circular dependency in Flash

* fix: circular dependency in helpers

* fix: circular dependency in current-challenge-saga (1/2)

* fix: circular dependency in code-lock-epic

* feat: eslint rule for circular dependencies

* fix: circular dependency in tools

* fix: import error and more circular dependencies in formHelpers

* fix prettier error

* fix: circular dependency in danger-zone-saga

* fix: circular dependency in update-email-saga

* fix: circular dependency in settings-saga

* fix: circular dependency in accept-terms-saga

* fix: circular dependency in codeally-saga

TODO: make a separate file for selectors

* fix: ci lint error

* fix: ci lint:prettier error

* fix: circular dependency in current-challenge-saga

* fix: cricular dependency in Challenges/redux

* fix: circular dependency in redux/settings

* fix: circular dependency in root redux

* fix: lint errors

* chore: remove unecessary comment

* chore: remove unused export

* fix: clear out actions and selectors

* revert changes to package.json

* test ci with maxDepth of 1

* fix: fallback to empty object

* test action if it will run for maxDepth of 2
2022-10-05 18:08:40 +01:00
renovate[bot]
12001a8eb1 fix(deps): update dependency typescript to v4.8.4 2022-10-03 04:26:03 +00:00
renovate[bot]
460335599d fix(deps): update dependency typescript to v4.8.3 2022-09-11 09:16:23 +00:00
renovate[bot]
da69ec485a fix(deps): update dependency typescript to v4.8.2 2022-08-29 13:45:42 +00:00
renovate[bot]
85b009b308 chore(deps): update dependency ts-node to v10.9.1 2022-07-17 03:52:46 +00:00
renovate[bot]
1fdfd7884b chore(deps): update dependency ts-node to v10.8.2 2022-07-02 21:38:17 +00:00
renovate[bot]
eb507ddd45 chore(deps): update dependency prettier to v2.7.1 (#46563)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-20 23:07:44 +05:30
renovate[bot]
17cc61dfe1 fix(deps): update dependency typescript to v4.7.4 (#46560)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-20 15:48:19 +05:30
Renovate Bot
902ca385ee fix(deps): update dependency typescript to v4.7.3 2022-06-05 03:43:47 +00:00
Renovate Bot
b3ed01b226 chore(deps): update dependency ts-node to v10.8.1 2022-06-04 19:54:43 +00:00
Renovate Bot
36bd34f5ca fix(deps): update dependency typescript to v4.7.2 2022-05-30 00:38:12 +00:00
Renovate Bot
5f9fd2c075 chore(deps): update dependency ts-node to v10.8.0 2022-05-22 02:09:40 +00:00
Naomi Carrigan
fe71a9cf25 feat: new js cert (#45873)
* chore: move files

* wip: i have no idea what i am doing

* feat: finish up the logic

* chore: use order from randy sheet

* chore: standardise titles

* feat: fix layout for new js projects

* fix: utils test

* fix: challenge tests

* fix: ignore show new curriculum on non-english tests

* chore: help category????

* fix: if these tests would fail locally that'd be great

* chore: duplicate ids
2022-05-16 11:53:45 +02:00