Skip to content

Commit 926ab78

Browse files
pgonzalThomasMichon
authored andcommitted
Update docs
1 parent 3649900 commit 926ab78

4 files changed

Lines changed: 33 additions & 16 deletions

File tree

‎apps/rush-lib/assets/rush-init/rush.json‎

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -204,21 +204,37 @@
204204
},
205205

206206
/**
207-
* Variations of dependencies which may be installed other than the default.
208-
* The actual dependency configuration for a variant is specified under
209-
* /common/config/rush/variants/<variant_name>
210-
* and can include an alternate common-versions.json file.
211-
* After running "rush change --variant <variant_name>", a shrinkwrap file will be produced
212-
* under the folder for the variant, and should be committed via Git.
207+
* Installation variants allow you to maintain a parallel set of configuration files that can be
208+
* used to build the entire monorepo with an alternate set of dependencies. For example, suppose
209+
* you upgrade all your projects to use a new release of an important framework, but during a transition period
210+
* you intend to maintain compability with the old release. In this situation, you probably want your
211+
* CI validation to build the entire repo twice: once with the old release, and once with the new release.
212+
*
213+
* Rush "installation variants" correspond to sets of config files located under this folder:
214+
*
215+
* common/config/rush/variants/<variant_name>
216+
*
217+
* The variant folder can contain an alternate common-versions.json file. Its "preferredVersions" field can be used
218+
* to select older versions of dependencies (within a loose SemVer range specified in your package.json files).
219+
* To install a variant, run "rush install --variant <variant_name>".
220+
*
221+
* For more details and instructions, see this article: https://rushjs.io/pages/advanced/installation_variants/
213222
*/
214-
/*[BEGIN "HYPOTHETICAL"]*/
215223
"variants": [
224+
/*[BEGIN "HYPOTHETICAL"]*/
216225
{
217-
"variantName": "test",
218-
"description": "A variant of dependencies used when testing."
226+
/**
227+
* The folder name for this variant.
228+
*/
229+
"variantName": "old-sdk",
230+
231+
/**
232+
* An informative description
233+
*/
234+
"description": "Build this repo using the previous release of the SDK"
219235
}
236+
/*[END "HYPOTHETICAL"]*/
220237
],
221-
/*[END "HYPOTHETICAL"]*/
222238

223239
/**
224240
* Rush can collect anonymous telemetry about everyday developer activity such as

‎apps/rush-lib/src/api/EnvironmentConfiguration.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import * as os from 'os';
1010
export const enum EnvironmentVariableNames {
1111
/**
1212
* This variable overrides the temporary folder used by Rush.
13-
* The default value is "common/temp" under the repoistory root.
13+
* The default value is "common/temp" under the repository root.
1414
*/
1515
RUSH_TEMP_FOLDER = 'RUSH_TEMP_FOLDER',
1616

@@ -22,8 +22,9 @@ export const enum EnvironmentVariableNames {
2222
RUSH_PREVIEW_VERSION = 'RUSH_PREVIEW_VERSION',
2323

2424
/**
25-
* This variable selects an alternate 'variant' for Rush to use when installing
26-
* and linking package dependencies.
25+
* This variable selects a specific installation variant for Rush to use when installing
26+
* and linking package dependencies. For more information, see this article:
27+
* https://rushjs.io/pages/advanced/installation_variants/
2728
*/
2829
RUSH_VARIANT = 'RUSH_VARIANT'
2930
}

‎apps/rush-lib/src/schemas/rush.schema.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@
105105
"additionalProperties": false
106106
},
107107
"variants": {
108-
"description": "A list of allowed installation variants for this repository.",
108+
"description": "Defines the list of installation variants for this repository. For more details about this feature, see this article: https://rushjs.io/pages/advanced/installation_variants/",
109109
"type": "array",
110110
"items": {
111111
"type": "object",
112112
"properties": {
113113
"variantName": {
114-
"description": "The name of the variant. Maps to /common/rush/variants/{name} under the repository root.",
114+
"description": "The name of the variant. Maps to common/rush/variants/{name} under the repository root.",
115115
"type": "string"
116116
},
117117
"description": {

‎common/config/rush/version-policies.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"policyName": "rush",
8383
"definitionName": "lockStepVersion",
8484
"version": "5.3.4",
85-
"nextBump": "patch",
85+
"nextBump": "minor",
8686
"mainProject": "@microsoft/rush"
8787
}
8888
]

0 commit comments

Comments
 (0)