Development Workflow
April 9, 2025 ยท View on GitHub
We use corepack with pnpm for development. Please make sure you have node.js, npm installed and corepack enabled.
After cloning Milkdown, run pnpm install to install dependencies.
- Run
pnpm build. - Run
pnpm startin one terminal to see storybook.
Commands
You can run several commands:
pnpm clearremove all build dist.pnpm test:unitruns unit test.pnpm test:e2eruns e2e test.pnpm test:e2e:debugruns e2e test with UI.pnpm test:lintchecks the code style.pnpm test:tscruns typescript type checks.pnpm buildruns build for all packages.pnpm commitruns commit with git hooks.
Pre Check
Before you create a pull request, please check the following todo:
- Pre commit hooks passed, please don't ignore it.
pnpm testpassed.
License
By contributing to Milkdown, you agree that your contributions will be licensed under its MIT license.