-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
63 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
Contributions welcome! | ||
|
||
**1. Install** | ||
|
||
```shell | ||
git clone git@github.com:vikejs/vike-react | ||
cd vike-react/ | ||
pnpm install | ||
``` | ||
|
||
> [!NOTE] | ||
> See [System requirements](#system-requirements) for how to install pnpm. | ||
**2. Build** | ||
|
||
```shell | ||
# Build all packages/* | ||
pnpm build | ||
``` | ||
|
||
**3. Develop** | ||
|
||
To develop (watch & re-build upon file changes): | ||
|
||
```shell | ||
cd packages/vike-react # or any other packages/* | ||
pnpm dev | ||
``` | ||
|
||
In a second shell: | ||
|
||
```shell | ||
cd examples/full/ # or any other examples/* | ||
pnpm dev | ||
``` | ||
|
||
That's it. You can now view and test your modifications. | ||
|
||
> [!Warning] | ||
> After changing the source code of `vike-react(-*)`, make sure to **always clear Vite's client cache** with `$ rm -rf examples/full/node_modules/.vite/`. Otherwise you'll get a version mismatch between the server (using the latest build) and the client (using the previous cached build). | ||
> [!Warning] | ||
> When switching Git branches, make sure to **run `pnpm reset`** at the monorepo root: it will re-install and re-build everything. It's required when swtiching to a branch that, for example, requires another Vike version. | ||
<br/> | ||
|
||
## System requirements | ||
|
||
- Node.js `>=16.0.0` | ||
- pnpm `>=9.0.0` | ||
|
||
> [!NOTE] | ||
> To install [pnpm](https://pnpm.io) run: | ||
> ```shell | ||
> npm install -g pnpm | ||
> ``` | ||
> (Or see [pnpm.io > Installation](https://pnpm.io/installation#using-npm) for alternative methods.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
Source code of `vike-react`. | ||
|
||
See also: | ||
- Docs at [`vike.dev`](https://vike.dev) and [`vike.dev/vike-react`](https://vike.dev/vike-react) | ||
- [CHANGELOG.md](https://github.com/vikejs/vike-react/blob/main/packages/vike-react/CHANGELOG.md) | ||
Docs: [`vike.dev/vike-react`](https://vike.dev/vike-react). | ||
Source code: [GitHub > vikejs/vike-react](https://github.com/vikejs/vike-react). |