These requirements are only needed for developing the source code of Vike. The npm package
vike
can be used with Windows and with any package manager.
- Node.js
>= v16.0.0
. - pnpm.
Install it with
$ npm install -g pnpm
. - Unix (e.g. Linux or macOS).
Windows may work but there are no guarantees.
Download and install the entire monorepo:
git clone [email protected]:vikejs/vike
# Go to the monorepo root
cd vike/
pnpm install
Build Vike's source code:
# At the monorepo root
pnpm run build
Develop vike:
# At the monorepo root
pnpm run dev
# At the monorepo root
# Run the end-to-end tests (`/**/*.test.js`)
pnpm exec test-e2e
# Run the unit tests (`/**/*.spec.js`)
pnpm exec vitest
# Typecheck all `.ts` files
pnpm exec test-types
On Debian, these additional steps are required.
Run only the tests of one example/boilerplate:
cd examples/some-example/ # From the monorepo root
pnpm exec test-e2e
Alternatively:
# At the monorepo root
pnpm exec test-e2e ome-exampl
New examples should be minimal and implement only what you want to showcase.
Follow the setup instructions at Basics.
The
README
instructions of examples usenpm
. We usepnpm
instead if we want to install the entire monorepo and build & link Vike's source code.
To run the example:
cd examples/some-example/ # From the monorepo root
# See package.json#scripts, e.g. package.json#scripts['dev']:
pnpm run dev
Check whether the tests defined in examples/some-example/*.spec.ts
are still valid and make changes accordingly. See Basics for how to run the example's tests.
To develop Vike's documentation (https://vike.dev
):
-
Download and install the entire monorepo:
git clone [email protected]:vikejs/vike # Go to the monorepo root cd vike/ pnpm install
-
Build Vike:
# At the monorepo root pnpm run build
-
Develop Vike's docs:
cd docs/ # From the monorepo root pnpm run dev
Or build Vike's docs:
cd docs/ # From the monorepo root pnpm run build