From 17f127ea2f42529ca0b43b7cccf8d098b731e062 Mon Sep 17 00:00:00 2001 From: shmck Date: Sun, 2 Aug 2020 14:58:15 -0700 Subject: [PATCH] update version/changelog Signed-off-by: shmck --- CHANGELOG.md | 7 ++++++- package.json | 2 +- src/services/hooks/index.ts | 30 ++++++++++++++---------------- web-app/package.json | 2 +- 4 files changed, 22 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b3be1f8a..4fa6ebaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package.json b/package.json index af56107c..1953081c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coderoad", - "version": "0.12.0", + "version": "0.13.0", "description": "Play interactive coding tutorials in your editor", "keywords": [ "tutorial", diff --git a/src/services/hooks/index.ts b/src/services/hooks/index.ts index 91d58810..cc6fc640 100644 --- a/src/services/hooks/index.ts +++ b/src/services/hooks/index.ts @@ -9,32 +9,30 @@ import { onError as telemetryOnError } from '../telemetry' import { onRunTest } from '../../actions/onTest' export const onInit = async (actions: TT.StepActions): Promise => { - 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 => { - await loadCommits(actions.commits) - await runCommands(actions.commands) + await loadCommits(actions?.commits) + await runCommands(actions?.commands) } export const onSetupEnter = async (actions: TT.StepActions): Promise => { - // 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 => { - // 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() } diff --git a/web-app/package.json b/web-app/package.json index 6ab5f1dc..440a84bf 100644 --- a/web-app/package.json +++ b/web-app/package.json @@ -1,6 +1,6 @@ { "name": "coderoad-app", - "version": "0.12.0", + "version": "0.13.0", "private": true, "scripts": { "build": "react-app-rewired build",