Skip to content

Local Development

Here are some useful commands for working on the project locally.

Installation

To work on the project locally, first clone the repository and run bun install to install the dependencies.

Building

Vite is used to build both the docs and the script itself, but they are built separately.

Script

TaskCommandDescription
Buildbun run buildBuild the script and save the output to dist/.
Previewbun previewStart a server to test the script locally.
Developbun devStart a development server that will rebuild the script automatically when there are changes.

Docs

TaskCommandDescription
Build Docsbun docs:buildBuild the documentation site and save the output to docs/.vitepress/dist/.
Preview Docsbun docs:previewStart a server to view the documentation site locally.
Develop Docsbun docs:devStart a development server that will rebuild the site automatically when there are changes.

Linting / Formatting

TaskCommandDescription
Formatbun formatFormat the codebase using Biome.
Lintbun lintLint the codebase using Biome.
Commitbun commitUse an interactive prompt to commit changes with Commitizen.

Hooks

TaskDescription
PrepareInstall Git hooks using Husky when the package is installed.
Post VersionBuild the script and save the output to dist/ when the version is updated.