You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: consume @tiny-ui/tokens from react package and docs app
Remove duplicated style sources (fonts, themes, normalise) from the
react package in favour of the new tokens package. Update build script,
dependencies, lint-staged config, and add DEVELOPMENT.md.
A **pre-commit hook** (husky) runs `lint-staged`, which auto-fixes SCSS via stylelint.
14
+
15
+
## Build Pipeline
16
+
17
+
Turborepo handles the dependency graph via `"dependsOn": ["^build"]`:
18
+
19
+
```
20
+
@tiny-ui/tokens → @tiny-ui/react → @tiny-ui/docs
21
+
```
22
+
23
+
Each package's build step:
24
+
25
+
| Package | Build Steps |
26
+
|---------|-------------|
27
+
|**@tiny-ui/tokens**|`node scripts/build.js` — sass compiles `scss/base.scss` into `css/base.css`|
28
+
|**@tiny-ui/react**|`tsdown` (TS to JS) → `build-styles.js` (copies base.css from tokens, compiles 78 component SCSS files) → `inject-style-imports.js` (adds CSS imports into JS entry files) |
29
+
|**@tiny-ui/docs**|`vite build`|
30
+
31
+
## CI (GitHub Actions)
32
+
33
+
Three workflows triggered on push/PR to `master`:
34
+
35
+
1.**CI** (`ci.yml`) — install → lint → build → test with coverage
36
+
2.**Release** (`release.yml`) — uses `changesets/action` to either create a "Version Packages" PR or publish to npm. The docs package is excluded from publishing.
37
+
3.**Deploy Site** (`deploy-site.yml`) — builds docs with `--base /tiny-ui/`, deploys to GitHub Pages with SPA routing support.
38
+
39
+
## Release Flow
40
+
41
+
1. Add a changeset: `pnpm changeset`
42
+
2. Merge to `master`
43
+
3. The Release workflow creates a version PR (bumps versions, updates changelogs)
44
+
4. Merging that PR triggers publish to npm and site deploy
0 commit comments