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.
This commit is contained in:
SoheilRezaei 2023-12-21 14:51:17 -05:00 committed by GitHub
parent 475823835f
commit a0d0e9f474
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,17 +46,18 @@ We encourage you to ping @psychedelicious and @blessedcoolant on [Discord](http
```bash ```bash
node --version 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 ```bash
npm install --global yarn npm install --global pnpm
yarn --version 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: Start everything in dev mode:
1. Ensure your virtual environment is running 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` 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/) 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. 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`. To build for production, run `pnpm build`.