From 3854122a10c213fdf5d060f06513174447d46b9e Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Fri, 4 Aug 2023 12:47:46 +0000 Subject: [PATCH 1/2] Mention the nx graph in the contributing guide --- CONTRIBUTING.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 78851ed475..0d234df688 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -100,6 +100,16 @@ The repository is configured to use the Lerna caching system (via `nx`) for some This helps speed up rebuilds when running `jlpm run build` multiple times to avoid rebuilding packages that have not changed on disk. +You can generate a graph to have a better idea of the dependencies between all the packages using the following command: + +``` +npx nx graph +``` + +Running the command will open a browser tab by default with a graph that looks like the following: + +![image](https://github.com/jupyter/notebook/assets/591645/34eb46f0-b0e5-44b6-9430-ae5fbd673a4b) + To learn more about Lerna caching: - https://lerna.js.org/docs/features/cache-tasks From 81fa4b185beb5b47f3099167c36ca10d21345085 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Fri, 4 Aug 2023 13:13:34 +0000 Subject: [PATCH 2/2] add alt --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0d234df688..88a518475c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -108,7 +108,7 @@ npx nx graph Running the command will open a browser tab by default with a graph that looks like the following: -![image](https://github.com/jupyter/notebook/assets/591645/34eb46f0-b0e5-44b6-9430-ae5fbd673a4b) +![a screenshot showing the nx task graph](https://github.com/jupyter/notebook/assets/591645/34eb46f0-b0e5-44b6-9430-ae5fbd673a4b) To learn more about Lerna caching: