Skip to content

armgit / ente

Public Imported from GitHub
0

💚 End-to-end encrypted cloud for everything.

Add development notes

Manav Rathi703031f73c7d
diff --git a/docs/Dev.md b/docs/Dev.md
new file mode 100644
index 0000000000..03a7b444bf
--- /dev/null
+++ b/docs/Dev.md
@@ -0,0 +1,19 @@
+## Monorepo
+
+The monorepo uses Yarn (classic) workspaces.
+
+To run a command for a workspace `<ws>`, invoke `yarn workspace <ws> <cmd>` from
+the root folder instead the the `yarn <cmd>` you’d have done otherwise.
+
+To add a local package as a dependency, use `<package-name>@*`. The "*" here
+denotes any version.
+
+```sh
+yarn workspace photos add '@/utils@*'
+```
+
+To see what packages depend on each other locally, use
+
+```sh
+yarn workspaces info
+```
diff --git a/docs/README.md b/docs/README.md
new file mode 100644
index 0000000000..756f0bdcdd
--- /dev/null
+++ b/docs/README.md
@@ -0,0 +1,9 @@
+## Notes for maintainers
+
+If you just want to run ente locally or develop on it, you can do
+
+ yarn
+ yarn photos:dev
+
+The notes in this directory are for maintainers to note down more advanced or
+infrequently needed details.