Hi! We are really excited that you are interested in contributing to @vite-pwa/astro
. Before submitting your contribution, please make sure to take a moment and read through the following guide.
Refer also to https://github.com/antfu/contribute.
The @vite-pwa/astro
repo is a monorepo using pnpm workspaces. The package manager used to install and link dependencies must be pnpm.
To develop and test the @vite-pwa/astro
package:
-
Fork the
@vite-pwa/astro
repository to your own GitHub account and then clone it to your local device. -
Ensure using the latest Node.js (^14.18.0 || >=16.12.0)
-
@vite-pwa/astro
uses pnpm v7. If you are working on multiple projects with different versions of pnpm, it's recommend to enable Corepack by runningcorepack enable
. -
Check out a branch where you can work and commit your changes:
git checkout -b my-new-branch
-
Run
pnpm i
in@vite-pwa/astro
's root folder -
Run
pnpm run build
in@vite-pwa/astro
's root folder.
From the terminal, change to one of the examples folder and run pnpm run build && pnpm run preview
.