-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); |