mirror of
https://github.com/HackPlan/UUI.git
synced 2026-06-19 15:41:34 +08:00
2.1 KiB
2.1 KiB
Development Practices
Development workflow
- Follow README.md instructions for setting up the dev environment.
- Create a local contributing branch off the latest
masterand switch to it.- Use the naming scheme
<initials>/<short-kebab-case-description>(example: sc/masked-textfield). This reduces potential conflicts and signifies a responsible party for the branch so that it can be deleted when stale. - If starting a collaborative or long-lived feature branch, We use a format like
feature/[short-name]for new feature andfix/[short-name]for bug fix.
- Use the naming scheme
- Run
yarn storybookin the root project directory to start storybook dev app athttp://localhost:6006. - Write some code, do some changes.
- Update related documentation.
- Ensure your code is tested and linted.
- Linting is best handled by your editor for real-time feedback. Run yarn lint to be 100% safe.
- Some TypeScript lint errors can often be automatically fixed by ESLint. Run lint fixes with
yarn lint --fix.
- Commit your code with a descriptive message.
- If your change resolves an existing issue (usually, it should) include "Fixes #123" on a newline, where 123 is the issue number.
- Push your contributing branch to your fork of the UUI repo.
- If the
masterbranch in local is out of dated, pull the latest changes and rebase your contributing branch to latestmaster.
- If the
- Submit a Pull Request on Github.
- fill out the description template.
- If your change is visual (most UUI features are), include a screenshot or GIF demonstrating the change.
- Get approval from the Blueprint team.
- When addressing feedback, push additional commits instead of overwriting or squashing.
- Be descriptive in your commit messages: prefer "fix style nits" to "address CR feedback" because the former provides context at a glance.
- Our build bot and lint bot will run automatically on the PR.
- Before merging, make the branch is based on latest
master, you may needgit push --force-with-lease.
- Merged it! ✨