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:
committed by
GitHub
parent
bd88d9f7ce
commit
bd4d46915a
@ -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 = () => {
|
||||
|
Reference in New Issue
Block a user