Skip to content

Commit 52e6c47

Browse files
committed
chore: migrate to pnpm monorepo with turborepo
Restructure the repository into a monorepo: - packages/react (@tiny-ui/react): component library source, build, and tests - apps/docs (@tiny-ui/docs): documentation site Tooling changes: - Switch from npm to pnpm with workspace protocol - Add Turborepo for task orchestration and caching - Shared tsconfig.base.json for workspace packages - Update CI workflows for pnpm - Update ESLint config for new paths - Update .gitignore for monorepo structure
1 parent 67df0a9 commit 52e6c47

1,358 files changed

Lines changed: 10457 additions & 468 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,23 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v4
1919

20+
- name: Install pnpm
21+
uses: pnpm/action-setup@v4
22+
2023
- name: Use Node.js ${{ matrix.node-version }}
2124
uses: actions/setup-node@v4
2225
with:
2326
node-version: ${{ matrix.node-version }}
24-
cache: 'npm'
27+
cache: 'pnpm'
2528

2629
- name: Install dependencies
27-
run: npm ci
30+
run: pnpm install --frozen-lockfile
2831

2932
- name: Lint
30-
run: npm run lint
33+
run: pnpm lint
3134

3235
- name: Build
33-
run: npm run build
36+
run: pnpm build
3437

3538
- name: Test
36-
run: npm run test -- --coverage
39+
run: pnpm test -- --coverage

.github/workflows/deploy-site.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,28 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v4
2222

23+
- name: Install pnpm
24+
uses: pnpm/action-setup@v4
25+
2326
- name: Use Node.js 22
2427
uses: actions/setup-node@v4
2528
with:
2629
node-version: 22
27-
cache: 'npm'
30+
cache: 'pnpm'
2831

2932
- name: Install dependencies
30-
run: npm ci
33+
run: pnpm install --frozen-lockfile
3134

32-
- name: Build site
33-
run: npx vite build site --base /tiny-ui/
35+
- name: Build docs site
36+
run: pnpm --filter @tiny-ui/docs build -- --base /tiny-ui/
3437

3538
- name: Copy 404.html for SPA routing
36-
run: cp site/build/index.html site/build/404.html
39+
run: cp apps/docs/build/index.html apps/docs/build/404.html
3740

3841
- name: Upload artifact
3942
uses: actions/upload-pages-artifact@v3
4043
with:
41-
path: site/build
44+
path: apps/docs/build
4245

4346
deploy:
4447
environment:

.gitignore

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
1-
# Created by .ignore support plugin (hsz.mobi)
2-
# IntelliJ project files
1+
# Dependencies
2+
node_modules
3+
4+
# Build outputs
5+
dist
6+
es
7+
lib
8+
coverage
9+
apps/docs/build
10+
11+
# Turbo
12+
.turbo
13+
14+
# IDE
315
.idea
416
*.iml
17+
.vscode
18+
19+
# OS
20+
.DS_Store
521

6-
/node_modules
7-
/site/build
8-
/site/dist
9-
/lib
10-
/es
11-
/dist
12-
/coverage
22+
# Claude
23+
.claude
1324

14-
/site/src/containers/test/index.tsx
15-
.claude
25+
# Misc
26+
*.tgz
27+
*.log

.npmignore

Lines changed: 0 additions & 25 deletions
This file was deleted.

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
registry=https://registry.npmjs.org/
2+
shamefully-hoist=true

apps/docs/CHANGELOG.md

Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)