Add deployment reading windows and progress-aware quiz unlock
This commit is contained in:
1 parent
edbc9c6056
commit
d8eba9169f
15 files changed
+471
-5
No files matched your search
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env node
|
||||
'use strict';
|
||||
const path = require('path');
|
||||
const { loadQuestionBank } = require('../reading-access');
|
||||
const file = process.argv[2];
|
||||
if (!file) { console.error('Usage: node tools/validate-reading-quiz.js <catalog.json>'); process.exit(2); }
|
||||
try {
|
||||
const bank = loadQuestionBank(path.resolve(file));
|
||||
console.log(JSON.stringify({ works: Object.keys(bank).length,
|
||||
questions: Object.values(bank).reduce((count, questions) => count + questions.length, 0) }));
|
||||
} catch (error) { console.error(error.message); process.exitCode = 1; }
|
||||
Reference in new issue
Block a user