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

support reset command#58

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/reset-command
Jul 5, 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
support reset command
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
  • Loading branch information
@ShMcK
ShMcK committedJul 5, 2020
commit43bd233bb9e265d9b602f7de82028f28248f5afa
13 changes: 12 additions & 1 deletionsrc/schema/skeleton.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -80,7 +80,18 @@ export default {
additionalProperties: false,
required: ["uri", "branch"],
},

reset: {
type: "object",
description: "Configuration options for resetting a tutorial",
properties: {
command: {
type: "string",
description: "An optional command to run on reset",
examples: ["npm install"],
},
},
additionalProperties: false,
},
dependencies: {
type: "array",
description: "A list of tutorial dependencies",
Expand Down
13 changes: 12 additions & 1 deletionsrc/schema/tutorial.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -99,7 +99,18 @@ export default {
additionalProperties: false,
required: ["uri", "branch"],
},

reset: {
type: "object",
description: "Configuration options for resetting a tutorial",
properties: {
command: {
type: "string",
description: "An optional command to run on reset",
examples: ["npm install"],
},
},
additionalProperties: false,
},
dependencies: {
type: "array",
description: "A list of tutorial dependencies",
Expand Down
6 changes: 6 additions & 0 deletionstests/parse.test.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -998,6 +998,9 @@ Description.
uri: "https://path.to/repo",
branch: "aBranch",
},
reset: {
command: "some command",
},
dependencies: [
{
name: "node",
Expand DownExpand Up@@ -1031,6 +1034,9 @@ Description.
uri: "https://path.to/repo",
branch: "aBranch",
},
reset: {
command: "some command",
},
dependencies: [
{
name: "node",
Expand Down
7 changes: 6 additions & 1 deletiontypings/tutorial.d.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
export type Maybe<T> = T | null;

export type ConfigReset = {
command?: string;
};

export type TutorialConfig = {
appVersions: TutorialAppVersions;
appVersions?: TutorialAppVersions;
testRunner: TestRunnerConfig;
repo: TutorialRepo;
dependencies?: TutorialDependency[];
reset?: ConfigReset;
};

/** Logical groupings of tasks */
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp