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: 300/300/README.md
+83-25Lines changed: 83 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -151,47 +151,94 @@ This will generate the following file and directory structure underneath the ```
151
151
152
152
**IMPORTANT**: Modify **nx.json** so it can connect with Nx Cloud.
153
153
154
-
Here’s a sample `nx.json` configuration that supports Nx Cloud for your workspace:
154
+
To support the nested directory structure correctly in your ```/hatch-project/nx.json```, you should adjust the paths to reflect the correct locations within the nested workspace. Here’s a revised example:
-**`projects` section**: Explicitly defines the project structure, setting the `root` and `sourceRoot` to the correct paths within the nested directory.
239
+
- Ensure that all paths reflect the actual structure of your workspace.
240
+
241
+
This configuration will help Nx Cloud properly identify and manage your nested workspace.
195
242
196
243
Notice that it prepends paths with ```src/``` (e.g., ```"root": "src/hatch_project",```) to allow for our **nested** directory structure.
197
244
@@ -229,3 +276,14 @@ Finish the CI setup by visiting: https://cloud.nx.app/connect/lvaFjW0bDV # **Not
229
276
## Nested app directories
230
277
231
278
You can have nested folders, no problems. 👍 Here's a [live example](https://github.com/codyslexia/nexa/tree/main/apps/graphql). You can see that apps/graphql/users is a nested directory where users is the actual project. There's also this [other example](https://github.com/nrwl/nx-incremental-large-repo/tree/master/libs/app0/lib1) from the ```nrwl``` family.
279
+
280
+
## Nx ignore
281
+
282
+
You can place a ```.nxignore``` in the root of the project directory, here ```/hatch-project/src/hatch_project/.nxignore```.
0 commit comments