Setting up
This page explains how to set up your development environment to start contributing to CustardUI.
MarkBind: You will need installed globally to run the development server.
Node.js & npm: You will need Node.js and a recent version of npm.
Fork and clone the CustardUI GitHub repo.
Install dependencies by running npm install in the root folder of your cloned repo.
Congratulations! Now you are ready to start modifying CustardUI code.
Once dependencies are installed, you can use these main npm scripts from the root folder:
Active Development (Watch Mode):
Runs Rollup in watch mode, automatically rebuilding files under dist/ whenever you make changes in the src/ directory:
npm run dev
Run Tests: Runs the unit tests using Vitest:
npm test
Build for Production:
Cleans the dist/ folder, builds TypeScript types, and bundles the library using Rollup:
npm run build
Format & Lint: Checks/fixes formatting and linting styles using Prettier and ESLint:
npm run format
npm run lint:fix
To preview local changes in the documentation MarkBind site of CustardUI:
npm run build
docs folder and start the dev server:cd docs
markbind serve