👩💻 Create or play Interactive coding tutorials in VSCode
Style fixes for tables & bold markdown
Support loading subtasks (#340). Subtasks are a list of tests that need to pass before a task is complete. They can be loaded by:
step.setup.filter
to a regex pattern that matches the tests you're targetingstep.setup.subtasks
variable to trueSee an example here: https://github.com/ShMcK/coderoad-tutorial-subtask-demo
testRunner.path
=> testRunner.directory
testRunner.actions
=> testRunner.setup
args
for "TAP" support, and test "filter"ing support. These changes will help lead to specific test suite presets in the future.{
"testRunner": {
"command": "mocha",
"args": {
"filter": "--grep",
"tap": "--reporter=mocha-tap-reporter"
},
"directory": ".coderoad",
"setup": {
"commits": ["410bd4f"],
"commands": ["npm install"]
}
}
}
CODEROAD_DISABLE_RUN_ON_SAVE=true // blocks saving on file system changes
CODEROAD_DISPLAY_RUN_TEST_BUTTON=true // adds a run test button to tutorial page
CODEROAD_TUTORIAL_URL='path/to/tutorial_config_file.json' // will load directly into tutorial
Improves styles for inline code blocks
Replace checkboxes with icons
Various fixes & performance improvements
Want to look back at a previous lesson's content? Navigate through text content from previous levels by clicking the "Learn" dropdown.
{
"config": {
"dependencies": [
{
"name": "node", // command line process to run
"version": "^10", // see node-semver for options
"message": "An optional message to display if the validation fails"
},
{
"name": "npm",
"version": ">5"
}
]
}
}