chore(misc): sync docs changes with nx.dev
This commit is contained in:
parent
86f7f65d8e
commit
3895dfdfb7
@ -32,7 +32,7 @@ nx g page ... --dry-run
|
||||
Generate a page in the my-app application:
|
||||
|
||||
```bash
|
||||
nx g page my-new-page --project=my-app
|
||||
nx nx g page my-new-page --project=my-app
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
@ -32,7 +32,7 @@ nx g page ... --dry-run
|
||||
Generate a page in the my-app application:
|
||||
|
||||
```bash
|
||||
nx g page my-new-page --project=my-app
|
||||
nx nx g page my-new-page --project=my-app
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
@ -32,7 +32,7 @@ nx g page ... --dry-run
|
||||
Generate a page in the my-app application:
|
||||
|
||||
```bash
|
||||
nx g page my-new-page --project=my-app
|
||||
nx nx g page my-new-page --project=my-app
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
@ -57,7 +57,7 @@ export default async function (tree: Tree, schema: any) {
|
||||
|
||||
ASTs (Abstract Syntax Trees) allow you to understand exactly the code you're modifying. Replacing a string value can accidentally modify text found in a comment rather than changing the name of a variable.
|
||||
|
||||
We'll write a generator that replaces all instances of the type `Array<something>` with `something[]`. To help accomplish this, we'll use the `@phenomnominal/tsquery` npm package and the [AST Explorer](https://astexplorer.net) site. TSQuery allows you to query and modify ASTs with a syntax similar to CSS selectors. The AST Explorer tool allows you to easily examine the AST for a given snippet of code.
|
||||
We'll write a generator that replaces all instances of the type `Array<something>` with `something[]`. To help accomplish this, we'll use the `@phenomnomnominal/tsquery` npm package and the [AST Explorer](https://astexplorer.net) site. TSQuery allows you to query and modify ASTs with a syntax similar to CSS selectors. The AST Explorer tool allows you to easily examine the AST for a given snippet of code.
|
||||
|
||||
First, go to [AST Explorer](https://astexplorer.net) and paste in a snippet of code that contains the input and desired output of our generator.
|
||||
|
||||
|
||||
@ -237,9 +237,9 @@ This is what Nx offers:
|
||||
- Consistent dev experience for any framework
|
||||
- Automatic upgrade to the latest versions of all frameworks and tools
|
||||
|
||||
As you can see, there is basically no overlap. Nx is notisn't a package manager nor does it (it's not a JS-only tool),
|
||||
As you can see, there is basically no overlap. Nx isn't a package manager nor does it (it's not a JS-only tool),
|
||||
so deduping `node_modules` isn't in that list. Nx doesn't care whether your repo has multiple node_modules folders or
|
||||
not, and whether you choose to dedupe them or not. In fact, many companies use Nx and yarn-workspaces together to get
|
||||
not, or whether you choose to dedupe them or not. In fact, many companies use Nx and yarn-workspaces together to get
|
||||
the benefits of both. If you want to use Yarn Workspaces to dedupe `node_modules` in your Nx workspace, you can do it.
|
||||
Many companies do.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user