I am glad you are considering developing Fastkit! You can follow the steps below to develop it.
To contribute to Fastkit, you need to set up a local environment.
-
Fork the @dadajam4/fastkit repository to your own GitHub account and then clone it to your local device.
-
Ensure using the latest Node.js (18.x)
-
Enable Corepack using
corepack enable
to havepnpm
-
Run
pnpm install
to install the dependencies.If you are adding a dependency, please use
pnpm add
. Thepnpm-lock.yaml
file is the source of truth for all Fastkit dependencies.
Follow the steps below to develop the package while actually running it on a web page.
-
Run
pnpm build
to pre-build all packages -
Run
pnpm dev:docs
to start the Vite server for documentation page developmentIf the package does not affect the Vite startup configuration, such as the UI package
@fastkit/vui
, it is possible to develop passively while the source code is subject to Vite's development server watcher. Before starting the development server, enter the directory of the target package and run thepnpm stub
command before starting the development server.
- You can also run
pnpm dev
to run a series ofpnpm build
andpnpm dev:docs
at once. All package builds are cached by turborepo, so the next build of a package with no source code changes will be completed in an instant.
Before I fix a bug or add a feature, I want to make sure there is a problem that explains it. I believe that clarifying the issue will save both you and me, the maintainer, time.
For more information on commit conventions and creating pull requests, please click here.