Skip to content

Commit 035d7cf

Browse files
authored
Merge pull request #4 from DesterLib/dev
feat:setup versioning
2 parents ac61441 + 15972df commit 035d7cf

39 files changed

Lines changed: 7702 additions & 2802 deletions

.changeset/QUICK_REFERENCE.md

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
# Changeset Quick Reference
2+
3+
## Quick Commands
4+
5+
```bash
6+
# Add a changeset for your changes
7+
pnpm changeset
8+
9+
# Check what will be versioned
10+
pnpm changeset:status
11+
12+
# Apply version bumps (maintainers only)
13+
pnpm version
14+
15+
# Build and publish (maintainers only)
16+
pnpm release
17+
```
18+
19+
## When to Use Each Bump Type
20+
21+
### Patch (0.0.X) - Bug Fixes
22+
- 🐛 Bug fixes
23+
- 📝 Documentation
24+
- 🎨 Style/formatting
25+
- ♻️ Refactoring (no API change)
26+
- ⚡ Performance (no breaking change)
27+
28+
**Example:**
29+
```
30+
🦋 Summary: Fix authentication token expiry bug
31+
🦋 Bump: patch
32+
```
33+
34+
### Minor (0.X.0) - New Features
35+
- ✨ New features
36+
- 🔥 Deprecations
37+
- 🚀 Enhancements
38+
- 📦 New optional parameters
39+
40+
**Example:**
41+
```
42+
🦋 Summary: Add user profile image upload endpoint
43+
🦋 Bump: minor
44+
```
45+
46+
### Major (X.0.0) - Breaking Changes
47+
- 💥 Breaking API changes
48+
- ❌ Removed features
49+
- 🔄 Changed behavior
50+
- ⚠️ Required parameter changes
51+
52+
**Example:**
53+
```
54+
🦋 Summary: Replace REST auth with OAuth2 (BREAKING)
55+
🦋 Bump: major
56+
```
57+
58+
## Changeset Flow
59+
60+
```mermaid
61+
graph LR
62+
A[Make Changes] --> B[Create Changeset]
63+
B --> C[Commit & Push]
64+
C --> D[Create PR to dev]
65+
D --> E[Review & Merge]
66+
E --> F[Version Bump]
67+
F --> G[Merge to main]
68+
G --> H[Auto Release]
69+
```
70+
71+
## Example Changeset File
72+
73+
```markdown
74+
---
75+
"api": minor
76+
---
77+
78+
Add WebSocket support for real-time notifications
79+
80+
- New `/ws` endpoint for WebSocket connections
81+
- Real-time event streaming
82+
- Connection management utilities
83+
```
84+
85+
## Commit Message Examples
86+
87+
With `pnpm commit`:
88+
89+
```bash
90+
# Feature
91+
feat(api): add user search endpoint
92+
93+
# Bug fix
94+
fix(api): resolve JWT validation error
95+
96+
# Breaking change
97+
feat(api)!: redesign authentication API
98+
99+
BREAKING CHANGE: Replace /auth/login with OAuth2
100+
```
101+
102+
## PR Workflow
103+
104+
1. **Create feature branch from `dev`**
105+
```bash
106+
git checkout dev && git pull
107+
git checkout -b feat/my-feature
108+
```
109+
110+
2. **Make changes and commit**
111+
```bash
112+
git add .
113+
pnpm commit
114+
```
115+
116+
3. **Add changeset**
117+
```bash
118+
pnpm changeset
119+
git add .changeset
120+
git commit -m "chore: add changeset"
121+
```
122+
123+
4. **Push and create PR**
124+
```bash
125+
git push -u origin feat/my-feature
126+
```
127+
128+
5. **After merge to dev → version bump**
129+
```bash
130+
pnpm version
131+
git commit -am "chore: version packages"
132+
```
133+
134+
6. **Merge to main → auto-release**
135+
136+
## Tips
137+
138+
**DO**
139+
- Create changesets for user-facing changes
140+
- Write clear, descriptive summaries
141+
- One changeset per logical change
142+
- Review generated CHANGELOGs
143+
144+
**DON'T**
145+
- Skip changesets for features/fixes
146+
- Bundle multiple features in one changeset
147+
- Forget to commit the changeset file
148+
- Edit CHANGELOGs manually
149+
150+
## Need Help?
151+
152+
- 📖 [Full Documentation](../VERSIONING.md)
153+
- 🔗 [Changesets Docs](https://github.com/changesets/changesets)
154+
- 🔗 [Semantic Versioning](https://semver.org/)
155+

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{
6+
"repo": "DesterLib/desterlib"
7+
}
8+
],
9+
"commit": false,
10+
"fixed": [],
11+
"linked": [],
12+
"access": "public",
13+
"baseBranch": "dev",
14+
"updateInternalDependencies": "patch",
15+
"ignore": []
16+
}

.changeset/six-baths-thank.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
"docs": minor
3+
---
4+
5+
Add comprehensive project documentation and community contribution guidelines
6+
7+
New Documentation:
8+
9+
- Contributing guide for external contributors with fork workflow
10+
- API overview with Swagger documentation links
11+
- Development guides (structure, versioning, commits, quick reference)
12+
- Installation and quick start guides
13+
14+
Infrastructure:
15+
16+
- AGPL-3.0 license for copyleft protection
17+
- Changesets for version management
18+
- GitHub Actions workflows for releases
19+
- PR template with changeset reminders
20+
21+
Improvements:
22+
23+
- Add DesterLib logo to docs navbar
24+
- Fix Swagger URL references (api/docs)
25+
- Remove web platform (not supported)
26+
- Add complete documentation site with Starlight

0 commit comments

Comments
 (0)