docs(core): update node tutorial schemas (#12619)

This commit is contained in:
Benjamin Cabanes 2022-10-14 16:05:57 -04:00 committed by GitHub
parent 59c4160b23
commit aa1cf86607
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 56 additions and 6 deletions

View File

@ -25,7 +25,7 @@ In this tutorial you'll create a backend-focused workspace with Nx.
For this tutorial, you'll create an Express API application, a CLI (command-line interface) application, and a library for a data client that these two applications will use to interact with a data-source.
![Our Workspace Requirements](/shared/node-tutorial/requirements-diagram.png)
![Our Workspace Requirements](/shared/node-tutorial/requirements-diagram.svg)
## Creating an Nx Workspace
@ -64,7 +64,7 @@ CREATE apps/products-cli/jest.config.ts
CREATE apps/products-cli/tsconfig.spec.json
```
![Nx Generator Syntax](/shared/node-tutorial/generator-syntax.png)
![Nx Generator Syntax](/shared/node-tutorial/generator-syntax.svg)
## Generating Libraries

View File

@ -6,7 +6,7 @@ Run the command: `npx nx graph`. A browser should open up with the following con
This is still different from the design from the start of Part 1:
![Our Workspace Requirements](/shared/node-tutorial/requirements-diagram.png)
![Our Workspace Requirements](/shared/node-tutorial/requirements-diagram.svg)
The Project Graph is derived from the source code of your workspace. Make the following adjustments to your existing projects, so that our Project Graph will match the design:
@ -115,7 +115,7 @@ Now run `npx nx graph` again:
{% side-by-side %}
![Matching Graph](/shared/node-tutorial/matching-graph.png)
![Our Workspace Requirements](/shared/node-tutorial/requirements-diagram.png)
![Our Workspace Requirements](/shared/node-tutorial/requirements-diagram.svg)
{% /side-by-side %}
Your graph now matches the original design.

View File

@ -60,7 +60,7 @@ The properties inside each of these these targets is defined as follows:
## Running Tasks
![Syntax for Running Tasks in Nx](/shared/node-tutorial/run-target-syntax.png)
![Syntax for Running Tasks in Nx](/shared/node-tutorial/run-target-syntax.svg)
Run the `build` target for your `products-data-client` project:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 61 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 54 KiB