Skip to content

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.

chore: auto run affine before client dev

linonetwoc064006c0283
diff --git a/client-app/package.json b/client-app/package.json
index 052a8166c3..b24c87d4a9 100644
--- a/client-app/package.json
+++ b/client-app/package.json
@@ -7,6 +7,7 @@
"module": "true",
"scripts": {
"dev:app": "cross-env NODE_ENV=development tauri dev",
+ "dev:prerequisite": "concurrently \"cd ../packages/data-center && pnpm dev\" \"cd ../packages/app && pnpm dev\"",
"build:prerequisite": "pnpm build:submodules && pnpm build:rs-types && pnpm build:affine && pnpm build:preload",
"dev:web": "vite",
"build:rs-types": "zx scripts/generateTsTypingsFromJsonSchema.mjs",
@@ -39,6 +40,7 @@
"@types/react-dom": "^18.0.9",
"@typescript-eslint/eslint-plugin": "5.47.0",
"@typescript-eslint/parser": "5.47.0",
+ "concurrently": "^7.6.0",
"cross-env": "^7.0.3",
"esbuild": "^0.16.10",
"eslint": "8.30.0",
diff --git a/client-app/src-tauri/tauri.conf.json b/client-app/src-tauri/tauri.conf.json
index a7ce7f3a6c..160f7e2e5a 100644
--- a/client-app/src-tauri/tauri.conf.json
+++ b/client-app/src-tauri/tauri.conf.json
@@ -1,6 +1,6 @@
{
"build": {
- "beforeDevCommand": "",
+ "beforeDevCommand": "pnpm dev:prerequisite",
"beforeBuildCommand": "pnpm build:web",
"devPath": "http://localhost:8080",
"distDir": "../dist",