Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ShMcK merged 1 commit intomasterfromfeature/new-hooks
Aug 2, 2020
Merged
Show file tree
Hide file tree
Changes fromall 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 deletionCHANGELOG.md
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionpackage.json
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionssrc/services/hooks/index.ts
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionweb-app/package.json
View file
Open in desktop
Original file line numberDiff line numberDiff 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

[8]ページ先頭

©2009-2025 Movatter.jp