There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
docs: update BUILDING.md (#4087)
Alex Yang364fc517ccda
diff --git a/docs/BUILDING.md b/docs/BUILDING.mdindex f2074a833c..6fb7d0a673 100644--- a/docs/BUILDING.md+++ b/docs/BUILDING.md@@ -31,11 +31,10 @@ install [Node LTS version](https://nodejs.org/en/download)#### Option 2: Use node version manager-install [nvm](https://github.com/nvm-sh/nvm)+install [fnm](https://github.com/Schniz/fnm)```sh-nvm install 18-nvm use 18+fnm use```### Install Rust Tools@@ -68,46 +67,43 @@ Note: use `strip` from system instead of `binutils` if you are running MacOS. [syarn workspace @affine/native build```-### Build Plugins+### Build Infra-```-yarn run build:plugins+```sh+yarn run build:infra```-## Debugging the Electron App--You need to run two scripts to run the app in development mode--Firstly, run the web app which is served at :8080+### Build Plugins-```-yarn dev # you may want to chose `dev - 100.84.105.99:11001` when selecting the dev server+```sh+yarn run build:plugins```-Secondly, bring up the electron app+### Build Server Dependencies-```-yarn workspace @affine/electron dev+```sh+yarn workspace @affine/storage build```-If everything goes well, you should see the AFFiNE App window popping up in a few seconds. 🎉-## TestingAdding test cases is strongly encouraged when you contribute new features and bug fixes.We use [Playwright](https://playwright.dev/) for E2E test, and [vitest](https://vitest.dev/) for unit test.To test locally, please make sure browser binaries are already installed via `npx playwright install`.-Also make sure you have built the `@affine/web` workspace before running E2E tests.+Also make sure you have built the `@affine/core` workspace before running E2E tests.++### Unit Test```sh-yarn build-# run tests in headless mode in another terminal windowyarn test```-## Troubleshooting+### E2E Test-> I ran `yarn start -p 8080` after `yarn build` but the index page returned 404.--Try stopping your development server (initialized by `yarn dev:local` or something) and running `yarn build` again.+```shell+# there are `affine-local`, `affine-legacy/*`, `affine-local`, `affine-plugin`, `affine-prototype` e2e tests,+# which are run under different situations.+cd tests/affine-local+yarn e2e+```diff --git a/docs/building-desktop-client-app.md b/docs/building-desktop-client-app.mdindex 64bcc8ffa2..4ceb0c18d8 100644--- a/docs/building-desktop-client-app.md+++ b/docs/building-desktop-client-app.md@@ -18,7 +18,6 @@ Note that if you encounter any issues with installing Rust and crates, try folloTo run AFFiNE Desktop Client Application locally, run the following commands:```sh-# in repo rootyarn installyarn dev@@ -27,7 +26,6 @@ yarn devyarn build# in apps/electron-yarn generate-assetsyarn dev```