From f7bc442ba5691b874aac026834e848a68861b651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Sat, 1 Apr 2023 14:18:17 +0900 Subject: [PATCH] docs(#10336): note chokidar-cli mode --- CONTRIBUTING.md | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4e8a09f814..c6b50015ff 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -207,20 +207,40 @@ vue-routerとの最大の違いは、niraxは複数のルーターが存在す Misskey uses [Storybook](https://storybook.js.org/) for UI development. -### Setup +### Setup & Run + +#### Universal + +##### Setup ```bash cd path/to/packages/misskey-js pnpm build cd path/to/packages/frontend -pnpm tsc -p .storybook && (node .storybook/generate.js & node .storybook/preload-locale.js & node .storybook/preload-theme.js) +pnpm tsc -p .storybook && (node .storybook/preload-locale.js & node .storybook/preload-theme.js) ``` -### Run +##### Run ```bash cd path/to/packages/frontend -pnpm storybook dev +node .storybook/generate.js && pnpm storybook dev +``` + +#### macOS & Linux + +##### Setup + +```bash +cd path/to/packages/misskey-js +pnpm build +``` + +##### Run + +```bash +cd path/to/packages/frontend +pnpm storybook-dev ``` ### Usage