mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
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:
parent
475823835f
commit
a0d0e9f474
@ -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`.
|
||||||
|
Loading…
Reference in New Issue
Block a user