diff --git a/tools/challenge-helper-scripts/helpers/get-challenge-template.ts b/tools/challenge-helper-scripts/helpers/get-challenge-template.ts index e96a0b9f03e..b3e5e9e358f 100644 --- a/tools/challenge-helper-scripts/helpers/get-challenge-template.ts +++ b/tools/challenge-helper-scripts/helpers/get-challenge-template.ts @@ -330,6 +330,19 @@ Watch the video. \`\`\` `; +const getGenericChallengeTemplate = ( + options: ChallengeOptions +): string => `${buildFrontMatter(options)} + +# --description-- + +Generic challenge description. + +# --assignment-- + +Do the assignment. +`; + type Template = (opts: ChallengeOptions) => string; export const getTemplate = (challengeType: string): Template => { @@ -375,5 +388,7 @@ const challengeTypeToTemplate: { 19: getMultipleChoiceChallengeTemplate, 20: null, 21: getDialogueChallengeTemplate, - 22: getFillInTheBlankChallengeTemplate + 22: getFillInTheBlankChallengeTemplate, + 23: null, + 24: getGenericChallengeTemplate }; diff --git a/tools/challenge-helper-scripts/helpers/new-task-prompts.ts b/tools/challenge-helper-scripts/helpers/new-task-prompts.ts index e021ee70577..89fd9ab6d53 100644 --- a/tools/challenge-helper-scripts/helpers/new-task-prompts.ts +++ b/tools/challenge-helper-scripts/helpers/new-task-prompts.ts @@ -3,7 +3,8 @@ import { challengeTypes } from '../../../shared/config/challenge-types'; const taskChallenges = [ challengeTypes.multipleChoice, - challengeTypes.fillInTheBlank + challengeTypes.fillInTheBlank, + challengeTypes.generic ]; export const newTaskPrompts = async (): Promise<{