Commit Graph

73 Commits (a196848bd0852afe67dbe657a8437a0d9683f7bb)

Author SHA1 Message Date
Renovate Bot 1a5b3c0ebb chore(deps): pin dependencies 2022-01-25 12:16:01 +00: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
Renovate Bot 188ea02fe1 fix(deps): update dependency typescript to v4.5.5 2022-01-21 02:54:40 +00:00
Renovate Bot 03c6197616 chore(deps): update dependency bson-objectid to v2.0.2 2022-01-18 02:05:59 +00:00
Mrugesh Mohapatra f9bc75cf9b
fix(tools): update order for linting errors (#44707) 2022-01-07 16:22:31 +05:30
Nicholas Carrigan (he/him) 08ad03e051
chore: create renaming script (#44692) 2022-01-07 13:20:48 +05:30
Tom 580a51f7a7
fix: simplify mobile layout tabs (#44431)
* fix: simplify mobile layout tabs

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


Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-12-15 13:52:44 +00:00
Renovate Bot 73c1ca1b4a fix(deps): update dependency typescript to v4.5.4 2021-12-14 04:46:42 +00:00
Renovate Bot 8651ee1797 fix(deps): update dependency typescript to v4.5.3 2021-12-10 02:08:02 +00:00
Renovate Bot 2455c66d1f chore(deps): update dependency prettier to v2.5.1 2021-12-04 18:24:02 +00:00
Oliver Eyton-Williams 01b354f0d1 refactor: mollify TypeScript 2021-12-02 19:57:47 +05:30
Oliver Eyton-Williams 03309bea9e chore: remove old package-locks 2021-12-02 19:57:47 +05:30
Oliver Eyton-Williams efba2e777d
chore: simplify eslint configuration (#44347)
* chore: extend import/recommended

* chore: use recommended lint rules

* refactor: apply lint rules

* chore: drop used config
2021-12-02 00:01:12 +00:00
Renovate Bot e93172b366 chore(deps): update dependency prettier to v2.5.0 2021-11-25 17:51:10 +00:00
renovate[bot] 947f7d0e18
chore(deps): update dependency inquirer to v8.2.0 (#44223)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-21 13:07:15 +05:30
renovate[bot] 933cf6684f
chore(deps): pin dependencies (#44224)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-20 00:52:38 +05:30
renovate[bot] db4bdf4478
fix(deps): update dependency @types/react to v17.0.35 (#44168)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-19 23:53:58 +05:30
Shaun Hamilton d75e43a1e7
chore: use constants for superblocks (#43886)
* chore: use constants for superblocks

* add prettier ts dec to challenge-helper-scripts

* config/ to ts. broken

* typescripterise tools/ and config/

* create global tsconfig, remove alternate configs

* delete temp ts->js, add to gitignore

* fix gitignore

* re-import SuperBlocks in super-block-intro.tsx

* remove renamed files added again

* fix config

* remove accidental files

* remove snap

* delete built files

* adjust eslintrc for enums

* add node types to root

* ignore build files in lint and prettier

* fix tools/ in tsconfig

* ignore annoying ts warnings

* prettierise Map/index.tsx

* fix enum to match lint rule

* rejig Map to render RWD superblock

* 'pretty minor' - implicitly tsc within root

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

* fix client/package.json for Gitpod

* broken: migrate @types to root

* fix: use typeRoots to prevent duplication

* fix show.tsx, try typeroots in root

* silly fix for duplicate node_modules types

* remove typeRoots from root

* fix: tsconfig or not tsconfig, that is the...

* fix: ...question: Whether 'tis nobler in the mind

to suffer the slings and arrows of outrageous configs...

* fix: Or to take Arms against a Sea of lint errors
And by opposing end them

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-11-19 19:49:40 +05:30
renovate[bot] d944fa0c8e
fix(deps): update dependency typescript to v4.5.2 (#44197)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-19 09:57:03 +05:30
renovate[bot] 8c94a26fbe
chore(deps): pin dependencies (#44191)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-17 19:32:50 +05:30
renovate[bot] 6d21f143c3
fix(deps): update dependency @types/node to v16.11.7 (#44167)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-15 20:18:53 +05:30
renovate[bot] 9dc35e4397
chore(deps): pin dependency @types/node to 16.11.7 (#44173)
* chore(deps): pin dependency @types/node to 16.11.7

* chore: install @types/node in tools

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-11-15 15:26:55 +05:30
renovate[bot] 6feeaa289b
fix(deps): update dependency @types/react-dom to v17.0.11 (#44107)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-10 20:17:39 +05:30
Mrugesh Mohapatra 466f39794b chore: update all lockfiles to v2 2021-11-03 15:06:19 +05:30
Mrugesh Mohapatra 6fef483946 chore: update all packages to node v16 & npm v8 2021-11-03 15:06:19 +05:30
Renovate Bot b4d68a9c64 chore(deps): update dependency ts-node to v10.4.0 2021-10-23 00:48:07 +00:00
Renovate Bot 558440de9d chore(deps): update dependency ts-node to v10.3.1 2021-10-21 22:02:35 +00:00
Nicholas Carrigan (he/him) b36cdbafd1
chore: rename "part" to "step" (#43934)
* chore: rename part to step

* chore: update metas

* chore: more renaming

* chore: update tooling

* chore: update frontmatter

* chore(tools): title testing
2021-10-21 18:07:52 +01:00
Oliver Eyton-Williams 22afdd1aad
fix: stop modal appearing in steps (#43728)
* fix: stop showing completion modal on steps

* feat: submit steps with ctrl+enter

* fix: handle ctrl+enter when not focussing editor

* fix: reset tests when user types

* refactor: pass showCompletionModal as an option

Otherwise we have to write executeChallenge(true) which does not mean
what you might reasonably expect.

* fix: always executeChallenge when not on step

* fix: update frontend project show

* fix: handle missing payload

* refactor: isProjectStep -> hasEditableRegion

* refactor: more renaming

* fix: make meta.json control multifile editor use

* fix: update the challengeSchema correctly

* Update client/src/templates/Challenges/classic/editor.tsx

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

* fix: remove logging

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

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-10-13 14:47:59 +03:00
Renovate Bot 588493b705 fix(deps): update dependency typescript to v4.4.4 2021-10-13 00:10:30 +00:00
Renovate Bot ba585768eb chore(deps): update dependency ts-node to v10.3.0 2021-10-11 21:43:32 +00:00
Nicholas Carrigan (he/him) d7abed9456
fix: index.md generation (#43763) 2021-10-07 18:21:55 +02:00
renovate[bot] c2792290cb
chore(deps): update dependency ansi-regex to 5.0.1 [security] (#43542)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-30 19:18:09 +02:00
Nicholas Carrigan (he/him) 02417bec07
fix: code block newline (#43600) 2021-09-28 20:00:37 -07:00
renovate[bot] 8beb26e84e
chore(deps): update dependency typescript to v4.4.3 (#43316)
* chore(deps): update dependency typescript to v4.4.3

* fix: use UserType correctly

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-09-28 10:56:46 +02:00
Nicholas Carrigan (he/him) 972c10a33d
chore: clean up comments (#43550) 2021-09-23 20:09:27 +02:00
Renovate Bot cdbbd168fd chore(deps): update dependency prettier to v2.4.1 2021-09-16 10:19:33 +00:00
Renovate Bot 5bdf6159f5 chore(deps): update dependency prettier to v2.4.0 2021-09-09 13:38:43 +00:00
Shaun Hamilton 6fd628f338
fix(tools): correct files -> challengeFiles (#43385) 2021-09-07 20:24:11 +05:30
Renovate Bot 24c482b18c chore(deps): update dependency ts-node to v10.2.1 2021-08-18 19:58:44 +00:00
Shaun Hamilton c2a11ad00d
feat: add 'back/front end' in curriculum (#42596)
* chore: rename APIs and Microservices to include "Backend" (#42515)

* fix typo

* fix typo

* undo change

* Corrected grammar mistake

Corrected a grammar mistake by removing a comma.

* change APIs and Microservices cert title

* update title

* Change APIs and Microservices certi title

* Update translations.json

* update title

* feat(curriculum): rename apis and microservices cert

* rename folder structure

* rename certificate

* rename learn Markdown

* apis-and-microservices -> back-end-development-and-apis

* update backend meta

* update i18n langs and cypress test

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

* fix: add development to front-end libraries (#42512)

* fix: added-the-word-Development-to-front-end-libraries

* fix/added-the-word-Development-to-front-end-libraries

* fix/added-word-development-to-front-end-libraries-in-other-related-files

* fix/added-the-word-Development-to-front-end-and-all-related-files

* fix/removed-typos-from-last-commit-in-index.md

* fix/reverted-changes-that-i-made-to-dependecies

* fix/removed xvfg

* fix/reverted changes that i made to package.json

* remove unwanted changes

* front-end-development-libraries changes

* rename backend certSlug and README

* update i18n folder names and keys

* test: add legacy path redirect tests

This uses serve.json from the client-config repo, since we currently use
that in production

* fix: create public dir before moving serve.json

* fix: add missing script

* refactor: collect redirect tests

* test: convert to cy.location for stricter tests

* rename certificate folder to 00-certificates

* change crowdin config to recognise new certificates location

* allow translations to be used

Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>

* add forwards slashes to path redirects

* fix cypress path tests again

* plese cypress

* fix: test different challenge

Okay so I literally have no idea why this one particular challenge
fails in Cypress Firefox ONLY. Tom and I paired and spun a full build
instance and confirmed in Firefox the page loads and redirects as
expected. Changing to another bootstrap challenge passes Cypress firefox
locally. Absolutely boggled by this.

AAAAAAAAAAAAAAA

* fix: separate the test

Okay apparently the test does not work unless we separate it into
a different `it` statement.

>:( >:( >:( >:(

Co-authored-by: Sujal Gupta <55016909+heysujal@users.noreply.github.com>
Co-authored-by: Noor Fakhry <65724923+NoorFakhry@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2021-08-13 21:57:13 -05:00
Renovate Bot e0abfc5cf6 chore(deps): update dependency ts-node to v10.2.0 2021-08-09 05:33:19 +00:00
Oliver Eyton-Williams e118dda13a
fix: order imports and remove circular dependencies (#41824)
* fix: remove circular dependency

redux depended on templates/Challenges/redux and vice versa.  This
meant that import order mattered and confusing bugs could arise.

(cherry picked from commit 7d67a4e70922bbb3051f2f9982dcc69e240d43dc)

* feat: require imports to be in alphabetical order

Import order generally does not matter, but there are edge cases
(circular  imports and css imports, for example) where changing order
changes behaviour

(cherry picked from commit b8d1393a91ec6e068caf8e8498a5c95df68c2b2c)

* chore: order imports

* fix: lift up challenge description + title comps

This brings the classic Show closer to the others as they
now all create the description and title components

* fix: remove donation-saga/index circular import

(cherry picked from commit 51a44ca668a700786d2744feffeae4fdba5fd207)

* refactor: extract action-types from settings

(cherry picked from commit 25e26124d691c84a0d0827d41dafb761c686fadd)

* fix: lint errors

* feat: prevent useless renames
2021-08-02 08:39:40 -05:00
Shaun Hamilton cefb973c14
fix(tools): fix insert-erms helper script (#42903)
* fix(tools): fix insert-erms helper script

* only throw if undefined erms

* revert last two commits

* fix insertErms the correct way
2021-07-21 11:14:22 -05:00
Renovate Bot 505c3b7c6c chore(deps): update dependency inquirer to v8.1.2 2021-07-14 18:00:36 +00:00
Renovate Bot a3395269a0 chore(deps): update dependency ts-node to v10.1.0 2021-07-09 23:13:46 +00:00
Renovate Bot 3cbb0275ae chore(deps): update dependency @types/inquirer to v7.3.3 2021-07-07 03:33:06 +00:00
Victor Duarte 82d09bd593
feat: refactor and test tools steps utilities (#42693) 2021-07-07 02:22:12 +02:00
Renovate Bot d5c1bb1233 chore(deps): update dependency typescript to v4.3.5 2021-07-01 02:33:02 +00:00
renovate[bot] 6b64502317
chore(deps): update dependency prettier to v2.3.2 (#42645)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-26 13:15:02 +02:00