Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions docs/CONTRIBUTING.md → CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ Stay **pre-rendered, declarative, and brutally fast.**
packages/
├── core -> @react-zero-ui/core (library logic + postcss)
└── cli -> create-zero-ui (npx installer)
docs/ -> Next.js + Fumadocs docs site (apps/docs replacement)
examples/demo/ -> Live performance + sprite showcase app
```

For the variant extractor / PostCSS pipeline internals (AST parsing, literal resolution, token scanning), see [packages/core/ARCHITECTURE.md](packages/core/ARCHITECTURE.md).

---

## Local Setup
Expand Down Expand Up @@ -85,6 +89,26 @@ pnpm test # Runs all of the above

---

## Bundle Size

This repo measures bundle size from the built `@react-zero-ui/core` entry.

```bash
pnpm build
pnpm size # prints the gzipped byte count
pnpm size:badge # refreshes the README badge JSON
```

The `size` script runs:

```bash
npx esbuild ./packages/core/dist/index.js --bundle --minify --format=esm --external:react --define:process.env.NODE_ENV='"production"' | gzip -c | wc -c
```

`size:badge` writes [`.github/badges/core-size.json`](.github/badges/core-size.json), which the README badge reads through a Shields endpoint. Run it after a build when you want to refresh the number.

---

## Code of Conduct

Keep it respectful and accessible. Push ideas hard, not people.
Expand Down
Loading