Excited to hear that you are interested in contributing to this project! Thanks!
This project uses pnpm to manage the dependencies, install it if you haven't via
npm i -g pnpmClone this repo to your local machine and install the dependencies.
pnpm installTo build all the packages at once, run the following command on the project root
pnpm buildBuild with watch mode
pnpm devTo run Slidev locally, you can run
pnpm demo:devOr with the starter template
pnpm demo:starterThe server will restart automatically every time the builds get updated.
We use monorepo to manage multiple packages
docs/ - The documentation site powered by VitePress
.vitepress/ - VitePress related configurations
assets/ - Static assets will be hosted under https://sli.dev/*
packages
slidev/ - main package entry, holds the code on Node.js side
client/ - main frontend app
parser/ - parser for Slidev's extended Markdown format
create-app/ - scripts and template for `npm init slidev`
create-theme/ - scripts and template for `npm init slidev-theme`
theme-*/ - official themes
Don't worry about the code style as long as you install the dev dependencies. Git hooks will format and fix them for you on committing.
Thank you again for being interested in this project! You are awesome!