forked from youzan/vant
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'youzan:main' into main
- Loading branch information
Showing
795 changed files
with
45,968 additions
and
36,203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,4 @@ | ||
# Contributing to Vant | ||
# Vant Contributing Guide | ||
|
||
The following is a set of guidelines for contributing to Vant. Please spend several minutes in reading these guidelines before you create an issue or pull request. | ||
|
||
Anyway, these are just guidelines, not rules, use your best judgment and feel free to propose changes to this document in a pull request. | ||
|
||
## Opening an Issue | ||
|
||
If you think you have found a bug, or have a new feature idea, please start by making sure it hasn't already been reported or fixed. You can search through existing issues and PRs to see if someone has reported one similar to yours. | ||
|
||
Next, create a new issue that briefly explains the problem, and provides a bit of background as to the circumstances that triggered it, and steps to reproduce it. | ||
|
||
## Submitting a Pull Request | ||
|
||
It's welcomed to pull request, And there are some tips about that: | ||
|
||
- Before working on a large change, it is best to open an issue first to discuss it with the maintainers. | ||
|
||
- When in doubt, keep your pull requests small. To give a PR the best chance of getting accepted, don't bundle more than one feature or bug fix per pull request. It's always best to create two smaller PRs than one big one. | ||
|
||
- When adding new features or modifying existing, please attempt to include tests to confirm the new behavior. | ||
|
||
- Rebase before creating a PR to keep commit history clear. | ||
|
||
- Add some descriptions and refer relative issues for you PR. | ||
|
||
## Getting started | ||
|
||
You will need [Node.js >= 14](https://nodejs.org) and [pnpm](https://pnpm.io). | ||
|
||
```bash | ||
git clone [email protected]:vant-ui/vant.git | ||
|
||
# Install dependencies | ||
pnpm i | ||
|
||
# Start development | ||
pnpm dev | ||
``` | ||
- [English Version](../packages/vant/docs/markdown/contribution.en-US.md) | ||
- [中文版](../packages/vant/docs/markdown/contribution.zh-CN.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,3 @@ | ||
### Before submitting a pull request, please make sure the following is done: | ||
Before submitting a pull request, please read the [contributing guide](https://vant-contrib.gitee.io/vant/#/en-US/contribution). | ||
|
||
1. Read the [contributing guide](https://github.com/vant-ui/vant/blob/main/.github/CONTRIBUTING.md). | ||
2. If you've added code that should be tested, add tests. | ||
3. If you've changed APIs, update the documentation. | ||
4. Ensure the test suite passes (`npm test`). | ||
|
||
#### Title Format | ||
|
||
type(ComponentName?):commit message | ||
|
||
Example: | ||
|
||
- docs: fix typo in quickstart | ||
- build: optimize build speed | ||
- fix(Button): incorrect style | ||
- feat(Button): add color prop | ||
|
||
Allowed Types: | ||
|
||
- fix | ||
- feat | ||
- docs | ||
- perf | ||
- test | ||
- types | ||
- build | ||
- chore | ||
- refactor | ||
- breaking change | ||
在提交 pull request 之前,请阅读 [贡献指南](https://vant-contrib.gitee.io/vant/#/zh-CN/contribution)。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
"change: feat": | ||
- "/^(feat|types|style)/" | ||
"change: fix": | ||
- "/^fix/" | ||
"change: perf": | ||
- "/^perf/" | ||
"change: breaking": | ||
- "/^breaking change/" | ||
"change: docs": | ||
- "/^docs/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# .github/release.yml | ||
|
||
changelog: | ||
exclude: | ||
authors: | ||
# Ignore the release PR created by github-actions | ||
- github-actions | ||
categories: | ||
- title: Breaking Changes 🍭 | ||
labels: | ||
- "change: breaking" | ||
- title: New Features 🎉 | ||
labels: | ||
- "change: feat" | ||
- title: Performance 🚀 | ||
labels: | ||
- "change: perf" | ||
- title: Bug Fixes 🐞 | ||
labels: | ||
- "change: fix" | ||
- title: Document 📖 | ||
labels: | ||
- "change: docs" | ||
- title: Other Changes | ||
labels: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,14 +13,14 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: 'main' | ||
|
||
- name: Install pnpm | ||
run: corepack enable | ||
|
||
- uses: actions/setup-node@v2 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
cache: 'pnpm' | ||
|
@@ -32,10 +32,12 @@ jobs: | |
run: npm run build:site | ||
|
||
- name: Deploy for Gitee 🚀 | ||
uses: JamesIves/[email protected].0 | ||
uses: JamesIves/[email protected].1 | ||
with: | ||
branch: gh-pages | ||
folder: packages/vant/site-dist | ||
# enable single-commit to reduce the repo size | ||
single-commit: true | ||
clean: true | ||
clean-exclude: | | ||
1.x/* | ||
|
@@ -61,6 +63,8 @@ jobs: | |
token: ${{ secrets.VANT_UI_TOKEN }} | ||
repository-name: vant-ui/vant-ui.github.io | ||
target-folder: vant | ||
# enable single-commit to reduce the repo size | ||
single-commit: true | ||
clean: true | ||
clean-exclude: | | ||
1.x/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: PR Labeler | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
|
||
jobs: | ||
change-labeling: | ||
name: Labeling for changes | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: github/[email protected] | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
configuration-path: .github/pr-labeler.yml | ||
enable-versioned-regex: 0 | ||
include-title: 1 | ||
sync-labels: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,6 @@ lib | |
dist | ||
**/site-dist | ||
changelog.generated.md | ||
|
||
# temp file | ||
packages/vant/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
registry=https://registry.npmmirror.com/ | ||
registry=https://registry.npmjs.org/ | ||
|
||
strict-peer-dependencies=false | ||
auto-install-peers=false | ||
resolution-mode=highest |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.