Skip to content

Commit 07f144a

Browse files
authored
docs: clarify the documentation on running examples (#4818)
* docs: clarify the documentation on running examples * docs: use the proper watch command in docs for running examples
1 parent 532b90a commit 07f144a

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

CONTRIBUTING.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,21 @@ If you have been assigned to fix an issue or develop a new feature, please follo
2222
- We use [nvm](https://github.com/nvm-sh/nvm) to manage node versions - please make sure to use the version mentioned in `.nvmrc`.
2323
- Run development server using `pnpm run watch`.
2424
- Implement your changes and tests to files in the `src/` directory and corresponding test files.
25-
- To run examples, follow their individual directions.
26-
- To run examples using your local build, be sure to have development server (`pnpm run watch`) running.
2725
- Document your changes in the appropriate doc page.
2826
- Git stage your required changes and commit (see below commit guidelines).
2927
- Submit PR for review.
3028

29+
### Running examples
30+
- Make sure you've installed the dependencies by running `$ pnpm install` in the repo's root directory.
31+
- If you want to run the example against your local changes, run `pnpm run watch` in the repo's root directory. Otherwise, it will be run against the latest TanStack Query release.
32+
- Run `pnpm run dev` in the selected examples' directory.
33+
34+
#### Note on `examples/react-native`
35+
React Native example requires Expo to work. Please follow the instructions from example's README.md file to learn more.
36+
37+
#### Note on standalone execution
38+
If you want to run an example without installing dependencies for the whole repo, just follow instructions from the example's README.md file. It will be then run against the latest TanStack Query release.
39+
3140
## Online one-click setup
3241

3342
You can use Gitpod (An Online Open Source VS Code like IDE which is free for Open Source) for developing online. With a single click it will start a workspace and automatically:

0 commit comments

Comments
 (0)