From 6eeee6b7046eb804da2e48d2986cb00dc05d8f5f Mon Sep 17 00:00:00 2001 From: Steven Date: Sun, 17 Sep 2023 20:55:34 +0800 Subject: [PATCH] docs: add buf to development guide --- docs/development.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/development.md b/docs/development.md index 32d8e073..60a93ccf 100644 --- a/docs/development.md +++ b/docs/development.md @@ -10,6 +10,7 @@ Memos is built with a curated tech stack. It is optimized for developer experien - [Go](https://golang.org/doc/install) - [Air](https://github.com/cosmtrek/air#installation) for backend live reload +- [Buf](https://buf.build/docs/installation) - [Node.js](https://nodejs.org/) - [pnpm](https://pnpm.io/installation) @@ -27,7 +28,13 @@ Memos is built with a curated tech stack. It is optimized for developer experien air -c scripts/.air.toml ``` -3. start frontend dev server +3. generate TypeScript code from protobuf with `buf` + + ``` + cd proto && buf generate + ``` + +4. start frontend dev server ```bash cd web && pnpm i && pnpm dev