inserts files and configuration for autograding
npm install @dci-edtech/autograding-setup__tests__ directorytasks.*.js i.e. tasks.1.js
"scripts": {
"preinstall": "npm_config_yes=true npx @dci-edtech/autograding-setup --no"
}
`
What it does
$3
`
|
| .gitignore
|___.husky
| | pre-commit
|___.github
|___classroom
| | autograding.json
|___workflows
| | classroom.yml
| .keep
`
$3
- .github/classroom/autograding.json is generated based on the matching test files in __tests__
- package.json is expanded with
- devDependencies
- prepare script: husky install
- scripts for testing
- eslint settings
- jest settings
- README.md receives a line to include the result score of the autograding
$3
- husky install
- git add . && git commit -m "added autograding setup"Options
$3
BooleanSee dev mode
$3
`['low' | 'medium' | 'high']`Default: 'high'
Modifies eslint settings. 'low' and 'medium' levels turn off several rules to allow leniency in coding style in beginner and intermediate modules. For details on settings see /settings/linting-levels.js
dev mode
DEV mode is automatically detected by checking where the repo was cloned from. Using the --dev option is only necessary to force dev mode in case your repo is not in the DigitalCareerInstitute org.
`
"scripts": {
"preinstall": "npm_config_yes=true npx @dci-edtech/autograding-setup --no --dev"
}
``