-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(nxdev): use shell marker for command-line (nrwl#13824)
- Loading branch information
Showing
23 changed files
with
92 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ Connect workspace to Nx Cloud | |
|
||
## Usage | ||
|
||
```terminal | ||
```shell | ||
nx connect | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ Executes any command as if it was a target on the project | |
|
||
## Usage | ||
|
||
```terminal | ||
```shell | ||
nx exec | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ Check for un-formatted files | |
|
||
## Usage | ||
|
||
```terminal | ||
```shell | ||
nx format:check | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ Overwrite un-formatted files | |
|
||
## Usage | ||
|
||
```terminal | ||
```shell | ||
nx format:write | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ Adds nx.json file and installs nx if not installed already | |
|
||
## Usage | ||
|
||
```terminal | ||
```shell | ||
nx init | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ Creates a migrations file or runs migrations from the migrations file. | |
|
||
## Usage | ||
|
||
```terminal | ||
```shell | ||
nx migrate [packageAndVersion] | ||
``` | ||
|
||
|
@@ -25,43 +25,43 @@ Install `nx` globally to invoke the command directly using `nx`, or use `npx nx` | |
|
||
Update @nrwl/workspace to "next". This will update other packages and will generate migrations.json: | ||
|
||
```terminal | ||
```shell | ||
nx migrate next | ||
``` | ||
|
||
Update @nrwl/workspace to "9.0.0". This will update other packages and will generate migrations.json: | ||
|
||
```terminal | ||
```shell | ||
nx migrate 9.0.0 | ||
``` | ||
|
||
Update @nrwl/workspace and generate the list of migrations starting with version 8.0.0 of @nrwl/workspace and @nrwl/node, regardless of what installed locally: | ||
|
||
```terminal | ||
```shell | ||
nx migrate @nrwl/[email protected] --from="@nrwl/[email protected],@nrwl/[email protected]" | ||
``` | ||
|
||
Update @nrwl/workspace to "9.0.0". If it tries to update @nrwl/react or @nrwl/angular, use version "9.0.1": | ||
|
||
```terminal | ||
```shell | ||
nx migrate @nrwl/[email protected] --to="@nrwl/[email protected],@nrwl/[email protected]" | ||
``` | ||
|
||
Update another-package to "12.0.0". This will update other packages and will generate migrations.json file: | ||
|
||
```terminal | ||
```shell | ||
nx migrate [email protected] | ||
``` | ||
|
||
Run migrations from the provided migrations.json file. You can modify migrations.json and run this command many times: | ||
|
||
```terminal | ||
```shell | ||
nx migrate --run-migrations=migrations.json | ||
``` | ||
|
||
Create a dedicated commit for each successfully completed migration. You can customize the prefix used for each commit by additionally setting --commit-prefix="PREFIX_HERE ": | ||
|
||
```terminal | ||
```shell | ||
nx migrate --run-migrations --create-commits | ||
``` | ||
|
||
|
Oops, something went wrong.