|
13 | 13 | "commands": [ |
14 | 14 | { |
15 | 15 | "commandKind": "bulk", |
16 | | - |
| 16 | + |
17 | 17 | "name": "unit-test", |
18 | 18 | "summary": "Runs Unit Tests for all packages", |
19 | 19 | "description": "This will run all the unit tests that are defined within each package.json.\nScript name should be 'unit-tests'", |
20 | | - |
| 20 | + |
21 | 21 | "safeForSimultaneousRushProcesses": false, |
22 | 22 | "enableParallelism": false, |
23 | 23 | "ignoreDependencyOrder": false, |
24 | 24 | "ignoreMissingScript": false, |
25 | | - |
| 25 | + |
26 | 26 | "allowWarningsInSuccessfulBuild": true |
27 | 27 | }, |
28 | 28 | { |
29 | 29 | "commandKind": "bulk", |
30 | | - |
| 30 | + |
31 | 31 | "name": "lint", |
32 | 32 | "summary": "Lints all packages", |
33 | 33 | "description": "This will run linting on all packages that have a `lint` script defined.", |
34 | | - |
| 34 | + |
35 | 35 | "safeForSimultaneousRushProcesses": false, |
36 | 36 | "enableParallelism": true, |
37 | 37 | "ignoreDependencyOrder": true, |
38 | 38 | "ignoreMissingScript": true, |
39 | | - |
| 39 | + |
40 | 40 | "allowWarningsInSuccessfulBuild": false |
41 | 41 | }, |
42 | 42 | { |
43 | 43 | "commandKind": "bulk", |
44 | | - |
| 44 | + |
45 | 45 | "name": "flow", |
46 | 46 | "summary": "Runs flow on all packages", |
47 | 47 | "description": "This will run flow type checking on all packages that have a `flow` script defined.", |
48 | 48 | "safeForSimultaneousRushProcesses": false, |
49 | 49 | "enableParallelism": true, |
50 | 50 | "ignoreDependencyOrder": true, |
51 | 51 | "ignoreMissingScript": true, |
52 | | - |
| 52 | + |
53 | 53 | "allowWarningsInSuccessfulBuild": false |
54 | 54 | } |
55 | | - // |
| 55 | + // |
56 | 56 | // { |
57 | 57 | // /** |
58 | 58 | // * (Required) Determines the type of custom command. |
59 | 59 | // * Rush's "global" commands are invoked once for the entire repo. |
60 | 60 | // */ |
61 | 61 | // "commandKind": "global", |
62 | | - // |
| 62 | + // |
63 | 63 | // "name": "my-global-command", |
64 | 64 | // "summary": "Example global custom command", |
65 | 65 | // "description": "This is an example custom command that runs once for the entire repo", |
66 | | - // |
| 66 | + // |
67 | 67 | // "safeForSimultaneousRushProcesses": false, |
68 | | - // |
| 68 | + // |
69 | 69 | // /** |
70 | 70 | // * (Required) A script that will be invoked using the OS shell. The working directory will be |
71 | 71 | // * the folder that contains rush.json. If custom parameters are associated with this command, their |
72 | 72 | // * values will be appended to the end of this string. |
73 | 73 | // */ |
74 | 74 | // "shellCommand": "node common/scripts/my-global-command.js", |
75 | | - // |
| 75 | + // |
76 | 76 | // /** |
77 | 77 | // * If your "shellCommand" script depends on NPM packages, the recommended best practice is |
78 | 78 | // * to make it into a regular Rush project that builds using your normal toolchain. In cases where |
|
106 | 106 | // * A "flag" is a custom command-line parameter whose presence acts as an on/off switch. |
107 | 107 | // */ |
108 | 108 | // "parameterKind": "flag", |
109 | | - // |
| 109 | + // |
110 | 110 | // /** |
111 | 111 | // * (Required) The long name of the parameter. It must be lower-case and use dash delimiters. |
112 | 112 | // */ |
113 | 113 | // "longName": "--my-flag", |
114 | | - // |
| 114 | + // |
115 | 115 | // /** |
116 | 116 | // * An optional alternative short name for the parameter. It must be a dash followed by a single |
117 | 117 | // * lower-case or upper-case letter, which is case-sensitive. |
|
122 | 122 | // * a short name if you expect the parameter to be needed very often in everyday operations. |
123 | 123 | // */ |
124 | 124 | // "shortName": "-m", |
125 | | - // |
| 125 | + // |
126 | 126 | // /** |
127 | 127 | // * (Required) A long description to be shown in the command-line help. |
128 | 128 | // * |
129 | 129 | // * Whenever you introduce commands/parameters, taking a little time to write meaningful |
130 | 130 | // * documentation can make a big difference for the developer experience in your repo. |
131 | 131 | // */ |
132 | 132 | // "description": "A custom flag parameter that is passed to the scripts that are invoked when building projects", |
133 | | - // |
| 133 | + // |
134 | 134 | // /** |
135 | 135 | // * (Required) A list of custom commands and/or built-in Rush commands that this parameter may |
136 | 136 | // * be used with. The parameter will be appended to the shell command that Rush invokes. |
137 | 137 | // */ |
138 | 138 | // "associatedCommands": ["build", "rebuild"] |
139 | 139 | // }, |
140 | | - // |
| 140 | + // |
141 | 141 | // { |
142 | 142 | // /** |
143 | 143 | // * (Required) Determines the type of custom parameter. |
|
146 | 146 | // "parameterKind": "string", |
147 | 147 | // "longName": "--my-string", |
148 | 148 | // "description": "A custom string parameter for the \"my-global-command\" custom command", |
149 | | - // |
| 149 | + // |
150 | 150 | // "associatedCommands": ["my-global-command"], |
151 | | - // |
| 151 | + // |
152 | 152 | // /** |
153 | 153 | // * The name of the argument, which will be shown in the command-line help. |
154 | 154 | // * |
|
157 | 157 | // * be comprised of upper-case letters, numbers, and underscores. It should be kept short. |
158 | 158 | // */ |
159 | 159 | // "argumentName": "SOME_TEXT", |
160 | | - // |
| 160 | + // |
161 | 161 | // /** |
162 | 162 | // * If true, this parameter must be included with the command. The default is false. |
163 | 163 | // */ |
164 | 164 | // "required": false |
165 | 165 | // }, |
166 | | - // |
| 166 | + // |
167 | 167 | // { |
168 | 168 | // /** |
169 | 169 | // * (Required) Determines the type of custom parameter. |
|
173 | 173 | // "parameterKind": "choice", |
174 | 174 | // "longName": "--my-choice", |
175 | 175 | // "description": "A custom choice parameter for the \"my-global-command\" custom command", |
176 | | - // |
| 176 | + // |
177 | 177 | // "associatedCommands": ["my-global-command"], |
178 | | - // |
| 178 | + // |
179 | 179 | // /** |
180 | 180 | // * If true, this parameter must be included with the command. The default is false. |
181 | 181 | // */ |
182 | 182 | // "required": false, |
183 | | - // |
| 183 | + // |
184 | 184 | // /** |
185 | 185 | // * Normally if a parameter is omitted from the command line, it will not be passed |
186 | 186 | // * to the shell command. this value will be inserted by default. Whereas if a "defaultValue" |
187 | 187 | // * is defined, the parameter will always be passed to the shell command, and will use the |
188 | 188 | // * default value if unspecified. The value must be one of the defined alternatives. |
189 | 189 | // */ |
190 | 190 | // "defaultValue": "vanilla", |
191 | | - // |
| 191 | + // |
192 | 192 | // /** |
193 | 193 | // * (Required) A list of alternative argument values that can be chosen for this parameter. |
194 | 194 | // */ |
|
199 | 199 | // * e.g. "vanilla" in "--flavor vanilla". |
200 | 200 | // */ |
201 | 201 | // "name": "vanilla", |
202 | | - // |
| 202 | + // |
203 | 203 | // /** |
204 | 204 | // * A detailed description for the alternative that can be shown in the command-line help. |
205 | 205 | // * |
|
208 | 208 | // */ |
209 | 209 | // "description": "Use the vanilla flavor (the default)" |
210 | 210 | // }, |
211 | | - // |
| 211 | + // |
212 | 212 | // { |
213 | 213 | // "name": "chocolate", |
214 | 214 | // "description": "Use the chocolate flavor" |
215 | 215 | // }, |
216 | | - // |
| 216 | + // |
217 | 217 | // { |
218 | 218 | // "name": "strawberry", |
219 | 219 | // "description": "Use the strawberry flavor" |
|
0 commit comments