Skip to content

Prepare v0.13 release #419

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,5 +239,10 @@ Adds a review page for viewing tutorial content. The review page should be espec

### [0.13.0]

- Significant internal refactor to remove recording progress
- BREAKING CHANGE:
- `config.testRunner.setup` is now `config.setup`
- `config.setup` runs in the root workspace directory, not the `config.testRunner.directory`
- Significant internal refactor to:
- remove recording progress
- simplify structure with "hooks"
- Admin mode to allow creators to jump between tutorial levels/steps during development
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "coderoad",
"version": "0.12.0",
"version": "0.13.0",
"description": "Play interactive coding tutorials in your editor",
"keywords": [
"tutorial",
Expand Down
30 changes: 14 additions & 16 deletions src/services/hooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,30 @@ import { onError as telemetryOnError } from '../telemetry'
import { onRunTest } from '../../actions/onTest'

export const onInit = async (actions: TT.StepActions): Promise<void> => {
await loadCommits(actions.commits)
await runCommands(actions.commands)
await runVSCodeCommands(actions.vscodeCommands)
await loadCommits(actions?.commits)
await runCommands(actions?.commands)
await runVSCodeCommands(actions?.vscodeCommands)
}

export const onLevelEnter = async (actions: TT.StepActions): Promise<void> => {
await loadCommits(actions.commits)
await runCommands(actions.commands)
await loadCommits(actions?.commits)
await runCommands(actions?.commands)
}

export const onSetupEnter = async (actions: TT.StepActions): Promise<void> => {
// TODO: set position
await loadCommits(actions.commits)
await openFiles(actions.files)
await loadWatchers(actions.watchers)
await runCommands(actions.commands)
await runVSCodeCommands(actions.vscodeCommands)
await loadCommits(actions?.commits)
await openFiles(actions?.files)
await loadWatchers(actions?.watchers)
await runCommands(actions?.commands)
await runVSCodeCommands(actions?.vscodeCommands)
}

export const onSolutionEnter = async (actions: TT.StepActions): Promise<void> => {
// TODO: set position
await git.clear()
await loadCommits(actions.commits)
await openFiles(actions.files)
await runCommands(actions.commands)
await runVSCodeCommands(actions.vscodeCommands)
await loadCommits(actions?.commits)
await openFiles(actions?.files)
await runCommands(actions?.commands)
await runVSCodeCommands(actions?.vscodeCommands)
await onRunTest()
}

Expand Down
2 changes: 1 addition & 1 deletion web-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "coderoad-app",
"version": "0.12.0",
"version": "0.13.0",
"private": true,
"scripts": {
"build": "react-app-rewired build",
Expand Down