From a0d0e9f474fdd97e35ecc52e3feb88f6e5971fa7 Mon Sep 17 00:00:00 2001 From: SoheilRezaei <113804552+SoheilRezaei@users.noreply.github.com> Date: Thu, 21 Dec 2023 14:51:17 -0500 Subject: [PATCH] Update contributingToFrontend.md The project is no longer using yarn as a package manager and have moved to pnpm, So I wanted to update the documentation on the contribution page. --- .../contribution_guides/contributingToFrontend.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/contributing/contribution_guides/contributingToFrontend.md b/docs/contributing/contribution_guides/contributingToFrontend.md index d1f0fb7d387..b485fb9a8d0 100644 --- a/docs/contributing/contribution_guides/contributingToFrontend.md +++ b/docs/contributing/contribution_guides/contributingToFrontend.md @@ -46,17 +46,18 @@ We encourage you to ping @psychedelicious and @blessedcoolant on [Discord](http ```bash node --version ``` -2. Install [yarn classic](https://classic.yarnpkg.com/lang/en/) and confirm it is installed by running this: + +2. Install [pnpm](https://pnpm.io/) and confirm it is installed by running this: ```bash -npm install --global yarn -yarn --version +npm install --global pnpm +pnpm --version ``` -From `invokeai/frontend/web/` run `yarn install` to get everything set up. +From `invokeai/frontend/web/` run `pnpm install` to get everything set up. Start everything in dev mode: 1. Ensure your virtual environment is running -2. Start the dev server: `yarn dev` +2. Start the dev server: `pnpm dev` 3. Start the InvokeAI Nodes backend: `python scripts/invokeai-web.py # run from the repo root` 4. Point your browser to the dev server address e.g. [http://localhost:5173/](http://localhost:5173/) @@ -72,4 +73,4 @@ For a number of technical and logistical reasons, we need to commit UI build art If you submit a PR, there is a good chance we will ask you to include a separate commit with a build of the app. -To build for production, run `yarn build`. \ No newline at end of file +To build for production, run `pnpm build`.