File tree 4 files changed +36
-3
lines changed
4 files changed +36
-3
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,18 @@ export default {
80
80
additionalProperties : false ,
81
81
required : [ "uri" , "branch" ] ,
82
82
} ,
83
-
83
+ reset : {
84
+ type : "object" ,
85
+ description : "Configuration options for resetting a tutorial" ,
86
+ properties : {
87
+ command : {
88
+ type : "string" ,
89
+ description : "An optional command to run on reset" ,
90
+ examples : [ "npm install" ] ,
91
+ } ,
92
+ } ,
93
+ additionalProperties : false ,
94
+ } ,
84
95
dependencies : {
85
96
type : "array" ,
86
97
description : "A list of tutorial dependencies" ,
Original file line number Diff line number Diff line change @@ -99,7 +99,18 @@ export default {
99
99
additionalProperties : false ,
100
100
required : [ "uri" , "branch" ] ,
101
101
} ,
102
-
102
+ reset : {
103
+ type : "object" ,
104
+ description : "Configuration options for resetting a tutorial" ,
105
+ properties : {
106
+ command : {
107
+ type : "string" ,
108
+ description : "An optional command to run on reset" ,
109
+ examples : [ "npm install" ] ,
110
+ } ,
111
+ } ,
112
+ additionalProperties : false ,
113
+ } ,
103
114
dependencies : {
104
115
type : "array" ,
105
116
description : "A list of tutorial dependencies" ,
Original file line number Diff line number Diff line change @@ -998,6 +998,9 @@ Description.
998
998
uri : "https://path.to/repo" ,
999
999
branch : "aBranch" ,
1000
1000
} ,
1001
+ reset : {
1002
+ command : "some command" ,
1003
+ } ,
1001
1004
dependencies : [
1002
1005
{
1003
1006
name : "node" ,
@@ -1031,6 +1034,9 @@ Description.
1031
1034
uri : "https://path.to/repo" ,
1032
1035
branch : "aBranch" ,
1033
1036
} ,
1037
+ reset : {
1038
+ command : "some command" ,
1039
+ } ,
1034
1040
dependencies : [
1035
1041
{
1036
1042
name : "node" ,
Original file line number Diff line number Diff line change 1
1
export type Maybe < T > = T | null ;
2
2
3
+ export type ConfigReset = {
4
+ command ?: string ;
5
+ } ;
6
+
3
7
export type TutorialConfig = {
4
- appVersions : TutorialAppVersions ;
8
+ appVersions ? : TutorialAppVersions ;
5
9
testRunner : TestRunnerConfig ;
6
10
repo : TutorialRepo ;
7
11
dependencies ?: TutorialDependency [ ] ;
12
+ reset ?: ConfigReset ;
8
13
} ;
9
14
10
15
/** Logical groupings of tasks */
You can’t perform that action at this time.
0 commit comments