feat(curriculum): add project creation tool (#42410)

* refactor: extract help category map as JSON

* refactor: extract block names as json

* feat: add create-project script

* fix: correct case for tsconfig target

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

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
This commit is contained in:
Oliver Eyton-Williams
2021-06-08 21:27:45 +02:00
committed by GitHub
parent bd88d9f7ce
commit bd4d46915a
13 changed files with 1031 additions and 96 deletions

View File

@ -79,10 +79,11 @@ ${seedHeads}`
${seedTails}`
: '';
const challengeId = ObjectID();
const template =
`---
id: ${ObjectID()}
id: ${challengeId}
title: Part ${stepNum}
challengeType: 0
dashedName: part-${stepNum}
@ -107,6 +108,7 @@ Test 1
let finalStepNum = padWithLeadingZeros(stepNum);
finalStepNum += stepBetween ? 'a' : '';
fs.writeFileSync(`${projectPath}part-${finalStepNum}.md`, template);
return challengeId;
};
const reorderSteps = () => {