feat: add Spanish and language parser
This commit is contained in:
committed by
mrugesh mohapatra
parent
c2a45b58be
commit
e3f9dc4b86
@ -36,13 +36,19 @@ async function buildCurriculum(file, curriculum) {
|
||||
curriculum[superBlock].blocks[name] = blockInfo;
|
||||
return;
|
||||
}
|
||||
if (name === 'meta.json') {
|
||||
if (name === 'meta.json' || name === '.DS_Store') {
|
||||
return;
|
||||
}
|
||||
const block = getBlockNameFromPath(filePath);
|
||||
const { name: superBlock } = superBlockInfoFromPath(filePath);
|
||||
const challenge = await parseMarkdown(fullPath);
|
||||
const challengeBlock = curriculum[superBlock].blocks[block];
|
||||
let challengeBlock;
|
||||
try {
|
||||
challengeBlock = curriculum[superBlock].blocks[block];
|
||||
} catch (e) {
|
||||
console.log(superBlock, block);
|
||||
process.exit(0);
|
||||
}
|
||||
const { meta } = challengeBlock;
|
||||
const challengeOrder = findIndex(
|
||||
meta.challengeOrder,
|
||||
|
Reference in New Issue
Block a user