You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,21 +50,21 @@ The `demo` project is there to smoothe the dev experience
50
50
The `docsite` project is the one used on https://bedrockstreaming.github.io/forms/
51
51
52
52
In order to start on the project, you can start with the demo project:
53
-
`yarn start demo`
53
+
`pnpm start demo`
54
54
55
55
### Generate an application
56
56
57
-
Run `yarn nx g @nrwl/react:app my-app` to generate an application.
57
+
Run `pnpm nx g @nrwl/react:app my-app` to generate an application.
58
58
59
59
> You can use any of the plugins above to generate applications as well.
60
60
61
61
When using Nx, you can create multiple applications and libraries in the same workspace.
62
62
63
63
### Generate a library
64
64
65
-
Run `yarn nx g @nrwl/react:lib my-lib` to generate a react library.
66
-
Run `yarn nx g @nrwl/react:web my-lib` to generate a web library.
67
-
Run `yarn nx g @nrwl/react:node my-lib` to generate a node library.
65
+
Run `pnpm nx g @nrwl/react:lib my-lib` to generate a react library.
66
+
Run `pnpm nx g @nrwl/react:web my-lib` to generate a web library.
67
+
Run `pnpm nx g @nrwl/react:node my-lib` to generate a node library.
68
68
69
69
> You can also use any of the plugins above to generate libraries as well.
70
70
@@ -73,36 +73,36 @@ Libraries are shareable across libraries and applications. They can be imported
73
73
If you want the library to be publishable use:
74
74
75
75
```bash
76
-
yarn nx g @nrwl/react:lib my-lib --publishable --importPath="@bedrockstreaming/form-foo"
76
+
pnpm nx g @nrwl/react:lib my-lib --publishable --importPath="@bedrockstreaming/form-foo"
77
77
```
78
78
79
79
### Development server
80
80
81
-
Run `yarn nx serve my-app` for a dev server. Navigate to [http://localhost:4200/](http://localhost:4200/). The app will automatically reload if you change any of the source files.
81
+
Run `pnpm nx serve my-app` for a dev server. Navigate to [http://localhost:4200/](http://localhost:4200/). The app will automatically reload if you change any of the source files.
82
82
83
83
### Code scaffolding
84
84
85
-
Run `yarn nx g @nrwl/react:component my-component --project=my-app` to generate a new component.
85
+
Run `pnpm nx g @nrwl/react:component my-component --project=my-app` to generate a new component.
86
86
87
87
### Build
88
88
89
-
Run `yarn nx build my-app` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
89
+
Run `pnpm nx build my-app` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
90
90
91
91
### Running unit tests
92
92
93
-
Run `yarn nx test my-app` to execute the unit tests via [Jest](https://jestjs.io).
93
+
Run `pnpm nx test my-app` to execute the unit tests via [Jest](https://jestjs.io).
94
94
95
-
Run `yarn nx affected:test` to execute the unit tests affected by a change.
95
+
Run `pnpm nx affected:test` to execute the unit tests affected by a change.
96
96
97
97
### Running end-to-end tests
98
98
99
-
Run `yarn nx e2e my-app` to execute the end-to-end tests via [Cypress](https://www.cypress.io).
99
+
Run `pnpm nx e2e my-app` to execute the end-to-end tests via [Cypress](https://www.cypress.io).
100
100
101
-
Run `yarn nx affected:e2e` to execute the end-to-end tests affected by a change.
101
+
Run `pnpm nx affected:e2e` to execute the end-to-end tests affected by a change.
102
102
103
103
### Understand your workspace
104
104
105
-
Run `yarn nx dep-graph` to see a diagram of the dependencies of your projects.
105
+
Run `pnpm nx dep-graph` to see a diagram of the dependencies of your projects.
0 commit comments