MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / getAllBlocks

Function getAllBlocks

tools/challenge-helper-scripts/utils.ts:39–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37}
38
39export async function getAllBlocks() {
40 const { fullSuperblockList } = (await parseCurriculumStructure()) as {
41 fullSuperblockList: {
42 blocks: { dashedName: string }[];
43 }[];
44 };
45 const existingBlocks = fullSuperblockList.flatMap(({ blocks }) =>
46 blocks.map(({ dashedName }) => dashedName)
47 );
48
49 return uniq(existingBlocks);
50}
51
52const createStepFile = ({
53 stepNum,

Callers 4

rename-block.tsFile · 0.90
create-project.tsFile · 0.85
create-quiz.tsFile · 0.85

Calls 1

parseCurriculumStructureFunction · 0.90

Tested by

no test coverage detected