Bug fix pull requests always welcome! For new features, please open an issue first to discuss.
git clone https://github.com/janosh/matterviz
cd matterviz
npm installStart the dev server:
npx vite
# or
npm run devRun all tests:
npx vitest
# or
npm testRun Playwright end-to-end (E2E) tests:
npx playwright testNew features should include tests. Bug fixes should include a test that fails on the old code and passes with your fix.
- Unit tests go in
tests/vitest/ - E2E tests go in
tests/playwright/ - Test functions should have typing annotations and concise docstrings explaining what they test.
Before you start committing, create and check out a descriptively named branch:
git checkout -b cool-new-feature
# or
git checkout -b bug-fix-for-something-
Update version in
package.json(follows semver) -
Generate changelog (requires
deno):deno run -A https://github.com/janosh/workflows/raw/refs/heads/main/scripts/make-release-notes.ts
-
Commit and tag:
git add package.json changelog.md readme.md git commit -m "v1.2.3" git tag v1.2.3 git push && git push --tags