Commit Graph

17 Commits

Author SHA1 Message Date
Oliver Eyton-Williams
4a635c1b32 refactor: migrate (some) curriculum files to TypeScript (#62228)
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
2025-10-23 10:54:57 +05:30
Oliver Eyton-Williams
6fc3684049 fix(tools): prevent create-new-x overwriting old projects (#62621) 2025-10-10 15:28:26 +05:30
Oliver Eyton-Williams
054d2448fa fix(tools): insert step with appropriate challenge type (#62179) 2025-09-16 13:20:25 +05:30
Oliver Eyton-Williams
10c565828e fix(tools): curriculum command line helpers (#61831) 2025-09-02 16:03:28 +02:00
Tom
783421008d feat(tools): better language challenge helpers (#60696) 2025-06-12 14:54:43 +02:00
Anna
b8d4099796 feat(tools): create challenge helper script for quiz files (#59523) 2025-04-10 09:56:42 -05:00
Oliver Eyton-Williams
b9893bb4d6 feat(client): show demo on demand in labs (#55569)
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2024-08-13 14:56:19 +02:00
Anna
cd636a143a feat(tools/scripts): test project create tool (#55247)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2024-06-21 15:47:36 +00:00
Manabu Matsumoto
a6bd2f0981 fix(tools): make the editing steps tool keep the challenge type (#54308) 2024-04-08 11:27:42 -07:00
Tom
b3fb38acc4 feat(challenge-editor): add english/task helper scripts (#54111)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2024-03-19 15:06:22 +00:00
renovate[bot]
87e1ae21a5 chore: update TS and Fastify (#52157)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Sboonny <muhammedelruby@gmail.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-11-07 17:22:59 +05:30
Naomi Carrigan
dbcc2af39b fix(tools): update failing tests on main (#51980) 2023-10-15 23:52:54 +05:30
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
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
Oliver Eyton-Williams
339c6713d2 feat: update challenge helpers to handle id filenames (#44769)
* refactor: light tweaks for readability

* refactor: simplify metadata functions

* fix: most tests

* test: fix utils tests

* test: simplify mocks

* WIP: update get-last-step-file-content

* feat: finish create-next-step

* fix: type error

* test: provide mock meta.json for test

* refactor: get meta path from project path

* refactor: get project name from path

* refactor: simplify getProjectMetaPath further

Also removes some excessive mocking

* refactor: remove more mocks, always clear .env

* feat: update create-next-step

* feat: update create-empty steps

Also refactors slightly, so it's easier to insert steps into the meta

* docs: update challenge-helper-script docs

* feat: create-step-between

* refactor: allow metadata parse errors to propagate

* fix: convert reorderSteps to renameSteps

* refactor: create-step-between -> insert-step

* feat: update delete-step

* refactor: consolidate commands into commands.ts

* refactor: clean up and consolidation

* refactor: more cleanup

* fix: make cli args consistent

Everything accepts a single integer and nothing else

* refactor: renameSteps -> updateStepTitles

* docs: update with the names and args

* feat: add step validating meta + files are synced
2022-03-02 07:12:20 -08:00
Oliver Eyton-Williams
7216ca55cc refactor: organise TypeScript config and migrate helpers (#44747)
* feat: allow more 1000 steps to be created at once

* refactor: start migrating to typescript

* refactor: delete-step to ts

* refactor: migrated some helpers

* refactor: migrate create-empty-steps

* refactor: migrate create-step-between

* refactor: finish migrating to TS

* refactor: migrate tests

* fix: ensure mock.restore is done after each test

* fix: prevent double-tscing

* fix: repair the tests

* chore: use ts-node for scripts

We don't need the performance boost of incremental compilation and
ts-node is easier to work with

* refactor: consolidate tsconfigs

* refactor: replace gulp

* fix: use ts-node for build-curriculum

* fix: allow ts compilation of config

* feat: create and use create:config script

* fix: add /config to eslint projects

* fix: remove gulp script
2022-01-25 11:34:16 +01:00