Skip to content

Commit

Permalink
draft assessments dictionary for @ds26gte (#2183)
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Schanzer committed Sep 14, 2024
1 parent 89310ed commit 07db374
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions shared/langs/en-us/assessments.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// Define various individual assessments here that will be combined by the
// build into a JSON file. Comments are allowed, as this file is not JSON itself.

// Assessments should be named according to the material they assess
// Desmos file titles should end with (Desmos)

const DataScience = {
"histograms": {
"title": "Making and Interpreting Histograms",
"learningObjectives" : [
"...key from the learningObjective dictionary"...,
"...key from the learningObjective dictionary"...,
"...key from the learningObjective dictionary"...,
]
"urls" : {
"pyret" : "...some url...",
"wescheme" : "...some url...",
"codap" : "...some url...",
}
},
};
const Algebra = {
"writing-examples": {
"title": "Writing Examples from Word Problems",
"learningObjectives" : [
"...key from the learningObjective dictionary"...,
"...key from the learningObjective dictionary"...,
"...key from the learningObjective dictionary"...,
]
"urls" : {
"pyret" : "...some url...",
"wescheme" : "...some url...",
"codap" : "...some url...",
}
},
};

const allAssessments = {
...DataScience,
...Algebra
}

////////////////////////////////////////////////////////////////////////////////
//
// Don't edit below this!
//
////////////////////////////////////////////////////////////////////////////////

const fs = require('fs');

const jsFile = process.argv[2];

if (fs.existsSync(jsFile)) {
fs.unlinkSync(jsFile);
}

const jsonString = JSON.stringify(allAssessments);

fs.writeFileSync(jsFile, 'var assessments = ' + jsonString + ';\n');

0 comments on commit 07db374

Please sign in to comment.