You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the next steps, always remember to replace {{project_name}} with your project's name (in case it isn't yet):
86
86
- [ ] Above: don't forget the `--extension` and `--name` params!
@@ -130,8 +130,8 @@ After completing ALL of the above, remove this `Project bootstrap` section from
130
130
131
131
- Open a new command line window and go to the project's directory
132
132
- Update the dependencies management files by performing any number of the following steps:
133
-
- To add a new **frontend** dependency, run `npm install <package name> --save`
134
-
> The above command will update your `package.json`, but won't make the change effective inside the container yet
133
+
- To add a new **frontend** dependency, run `pnpm add <package name>`
134
+
> The above command will update your `package.json` and `pnpm-lock.yaml`, but won't make the change effective inside the container yet
135
135
- To add a new **backend** dependency, run `docker compose run --rm backend bash` to open an interactive shell and then run `poetry add {dependency}` to add the dependency. If the dependency should be only available for development user append `-G dev` to the command.
136
136
- After updating the desired file(s), run `make docker_update_dependencies` to update the containers with the new dependencies
137
137
> The above command will stop and re-build the containers in order to make the new dependencies effective
@@ -164,10 +164,10 @@ After completing ALL of the above, remove this `Project bootstrap` section from
164
164
#### Setup and run the frontend app
165
165
166
166
- Open a new command line window and go to the project's directory
167
-
- `npm install`
168
-
- `npm run openapi-ts`
167
+
- `pnpm install`
168
+
- `pnpm run openapi-ts`
169
169
- This is used to generate the TypeScript client API code from the backend OpenAPI schema
170
-
- `npm run dev`
170
+
- `pnpm run dev`
171
171
- This is used to serve the frontend assets to be consumed by [django-webpack-loader](https://github.com/django-webpack/django-webpack-loader) and not to run the React application as usual, so don't worry if you try to check what's running on port 3000 and see an error on your browser
172
172
- Open a browser and go to `http://localhost:8000` to see the project running
173
173
@@ -221,7 +221,7 @@ We use the [`openapi-ts`](https://heyapi.vercel.app/openapi-ts/get-started.html)
221
221
>
222
222
> To update the client code, run:
223
223
> - If you are using Docker: `make docker_frontend_update_api`
224
-
> - If you are not using Docker: `npm run openapi-ts`
224
+
> - If you are not using Docker: `pnpm run openapi-ts`
225
225
226
226
> [!NOTE]
227
227
> If `pre-commit` is properly enabled, it will automatically update both schema and client before each commit whenever necessary.
@@ -329,7 +329,7 @@ After enabling dyno metadata and setting the environment variables, your next Re
329
329
## Linting
330
330
331
331
- At pre-commit time (see below)
332
-
- Manually with `poetry run ruff` and `npm run lint` on project root.
332
+
- Manually with `poetry run ruff` and `pnpm run lint` on project root.
333
333
- During development with an editor compatible with ruff and ESLint.
0 commit comments