Skip to content

Commit 8c369b0

Browse files
committed
Add script to generate pawtograder schema, include the generated schema in repo
1 parent c078364 commit 8c369b0

File tree

3 files changed

+411
-2
lines changed

3 files changed

+411
-2
lines changed

package-lock.json

Lines changed: 34 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"package": "npx rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
3636
"package:watch": "npm run package -- --watch",
3737
"test": "NODE_OPTIONS=--experimental-vm-modules NODE_NO_WARNINGS=1 npx jest",
38-
"all": "npm run format:write && npm run lint && npm run test && npm run coverage && npm run package"
38+
"all": "npm run format:write && npm run lint && npm run test && npm run coverage && npm run package",
39+
"generate-schema": "ts-json-schema-generator --path 'src/grading/types.ts' --no-type-check --type PawtograderConfig -o pawtograder.schema.json"
3940
},
4041
"license": "MIT",
4142
"dependencies": {
@@ -80,10 +81,11 @@
8081
"ts-interface-builder": "^0.3.3",
8182
"ts-jest": "^29.2.5",
8283
"ts-jest-resolver": "^2.0.1",
84+
"ts-json-schema-generator": "^2.4.0",
8385
"ts-node": "^10.9.2",
8486
"typescript": "^5.7.3"
8587
},
8688
"optionalDependencies": {
8789
"@rollup/rollup-linux-x64-gnu": "*"
8890
}
89-
}
91+
}

0 commit comments

Comments
 (0)