Skip to content

Commit 09c9d75

Browse files
Add rush update:beta (#5344)
1 parent de45f6c commit 09c9d75

File tree

6 files changed

+37
-12
lines changed

6 files changed

+37
-12
lines changed

common/config/rush/command-line.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@
8383
"shellCommand": "rush update --variant stable",
8484
"safeForSimultaneousRushProcesses": true
8585
},
86+
{
87+
"commandKind": "global",
88+
"name": "update:beta",
89+
"summary": "Update dependencies to beta versions.",
90+
"description": "Update dependencies to beta versions.",
91+
"shellCommand": "rush update",
92+
"safeForSimultaneousRushProcesses": true
93+
},
8694
{
8795
"commandKind": "global",
8896
"name": "update:all-flavors",
@@ -115,6 +123,14 @@
115123
"shellCommand": "rush update:stable",
116124
"safeForSimultaneousRushProcesses": true
117125
},
126+
{
127+
"commandKind": "global",
128+
"name": "ub",
129+
"summary": "SHORTNAME: update:beta",
130+
"description": "SHORTNAME: update:beta",
131+
"shellCommand": "rush update:beta",
132+
"safeForSimultaneousRushProcesses": true
133+
},
118134
{
119135
"commandKind": "global",
120136
"name": "build:all-flavors",

docs/contributing-guide/1. getting-set-up.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,21 @@ git clone [email protected]:Azure/communication-ui-library.git
3434

3535
### Installing dependencies
3636

37-
Navigate to your cloned repo and install dependencies for all packages and samples:
37+
Navigate to your cloned repo and install dependencies for all packages and samples. This may take a long time the first time it runs.
3838

3939
```bash
4040
# navigate to the repository
4141
cd communication-ui-library/
4242
4343
# install dependencies
44-
rush update
44+
rush update:beta
4545
```
4646

47-
> note: this may take a long time the first time it runs
47+
This repository uses two build flavors: `beta` and `stable`. These correspond to the `beta` and `stable` npm packages we release. To switch between the two, you can run `rush switch-flavor:stable` or `rush switch-flavor:beta`. These `switch-flavor` commands will perform the appropriate `rush update:stable` or `rush update:beta`.
48+
49+
`rush update` command is also available as this is a default rush command we cannot remove. We recommend using `rush update:beta` or `rush update:stable` instead to be explicit about the flavor you are updating.
50+
51+
> NOTE: When intaking new changes from main, you will often need to reupdate the installed packages. This should be done by running `rush update:beta` or `rush update:stable` depending on the flavor you are using.
4852

4953
# FAQ
5054
If you are running into issues such as "Filename too long" when setting up the repo.

docs/contributing-guide/6. submitting-a-pr.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,18 @@ If you are adding/updating dependencies in any package.json file, you will need
2323

2424
For beta:
2525
```bash
26-
rush update
26+
rush update:beta
2727
```
2828

2929
For stable:
3030
```bash
3131
rush update:stable
3232
```
33+
3334
These commands will update your dependencies locally and update the pnpm-lock.yaml. You may wish to install the correct dependencies for your current flavor (by default, run `rush switch-flavor:beta` again for switching back to beta flavor).
3435

36+
> Note: `rush update` command is also available as this is a default rush command we cannot remove. We recommend using `rush update:beta` or `rush update:stable` instead to be explicit about the flavor you are updating.
37+
3538
#### 2. Update package API files
3639

3740
To ensure we do not break any existing public APIs, we use [api-extractor](../infrastructure/api-extractor.md) across all our npm packages. This generates a file detailing all public exports of the package. You can find this file under `package-root/review/beta/package-name.api.md`. We do this to prevent any accidental breaking changes to the packages we export, and to ensure we do not accidentally publish any internal helper classes/functions.

docs/infrastructure/rush.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Ultimately with Rush we could get all the features we were looking for in our re
4747

4848
For those familiar with running `npm` commands or `yarn` commands, we have a series of `rush` commands that replace most that should be run instead:
4949

50-
* `npm install` --> `rush update`
50+
* `npm install` --> `rush update:beta` or `rush update:stable`
5151
* `npm install "package"` --> `rush add -p "package"` (add `--dev` to save to dev dependencies)
5252
* `npm run build` --> `rush build` (from anywhere), `rush build -t "package-name"` (from anywhere) or `rushx build` (from a package or sample directory)
5353
* `npm run start` --> `rushx start`
@@ -56,8 +56,8 @@ For those familiar with running `npm` commands or `yarn` commands, we have a ser
5656

5757
Other useful commands
5858

59-
* `rush update` -- run this anytime you pull new changes that have changed any package.json
60-
* `rush update -p` -- performs a purge before update
59+
* `rush update:beta` or `rush update:stable` -- run this anytime you pull new changes that have changed any package.json
60+
* `rush update:beta -p` -- performs a purge before update
6161
* `rush rebuild` -- performs a full build instead of an incremental build
6262
* `rush lint` -- perform lint across the whole repo
6363
* `rush changelog` -- generate change file for the changelog
@@ -67,7 +67,7 @@ Short commands
6767
* `rush sb` --> `rush switch-flavor:beta`
6868
* `rush sbr` --> `rush switch-flavor:beta-release`
6969
* `rush ss` --> `rush switch-flavor:stable`
70-
* `rush u` --> `rush update`
70+
* `rush ub` --> `rush update:beta`
7171
* `rush us` --> `rush update:stable`
7272
* `rush baf` --> `rush build:all-flavours`
7373
* `rush bapi` --> `rush build-api:all-flavors`

packages/react-composites/tests/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ PLAYWRIGHT_OUTPUT_DIR = "temp"
3636
```sh
3737
rush update; rush build -t .
3838
```
39-
(if there were some build failures, run `rush update -p`)
39+
(if there were some build failures, run `rush update:beta -p`)
4040
* Build the test applications.
4141
```sh
4242
rushx build:e2e

samples/StaticHtmlComposites/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ This sample shows how to embed the ready-to-use Calling, Chat, and CallWithChat
1919
## Commands
2020

2121
### Install dependencies
22-
```
23-
rush update
22+
23+
```sh
24+
rush update:beta
2425
```
2526

2627
### Bundle the app
27-
```
28+
29+
```sh
2830
rushx build
2931
```
3032

0 commit comments

Comments
 (0)