This repository is the frontend application for {project name}, built with Svelte 5 and TypeScript.
- Framework: Svelte 5
- Language: TypeScript
- Styling: SCSS
- Package Manager: pnpm
- Deployment: Cloudflare Pages
We follow a 4-tier branching strategy to ensure stability.
main: Production. Only stable code is deployed here. (Reflects the live website)qa: Staging/Final Testing. Merged fromdev. The entire team performs QA here before production.dev: Development Integration. Merged fromfeature/*. Developers merge here first to test integration.feature/*,fix/*: Workspaces. Create branches fromdevand merge back todev.
Flow: feature → dev (Dev Test) → qa (Final QA) → main (Production)
Ensure you have the following installed:
- Node.js (v18.x or higher recommended)
- pnpm (Required)
git clone -b dev {project clone}
cd front-end
pnpm install
pnpm run dev
To maintain code quality and stability, please follow these steps strictly.
We follow the Conventional Commits structure.
- Format:
type: subject - Types:
feat: New feature (e.g.,feat: add login page)fix: Bug fix (e.g.,fix: navigation bar overflow)style: Formatting, missing semi-colons, etc. (no code change)refactor: Refactoring code without changing functionalitychore: Maintenance, build tasks, etc.
- Base Branch: Ensure your PR targets
dev(NOTqaormain). - Push your branch to the remote repository.
- Title: Must match your commit message (e.g.,
feat: implement collaboration room UI). - Description:
- Explain what changed and why.
- If UI changes are involved, attach screenshots or GIFs.
After creating a PR, Cloudflare Pages will automatically trigger a build test.
-
Wait for Checks:
- 🛑 DO NOT MERGE immediately.
- Wait until the Cloudflare build finishes and shows "No conflicts" or "All checks passed".
-
Code Review:
- Tag @Elijah for a review.
- Scenario A (Sync): We will review the code together and then proceed to merge.
- Scenario B (Async): If I(Elijah) review it alone, I will leave a comment with
emoji.
- Only after seeing
, you may proceed to merge.
- Only after seeing
-
Merging:
- Always use "Squash and Merge" to keep the main history clean.