first commit
This commit is contained in:
1
vant/.github/.pydio
vendored
Normal file
1
vant/.github/.pydio
vendored
Normal file
@@ -0,0 +1 @@
|
||||
feb5e4e1-a588-4699-9fa8-169f3165ecdd
|
||||
45
vant/.github/CONTRIBUTING.md
vendored
Normal file
45
vant/.github/CONTRIBUTING.md
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
# Contributing to Vant
|
||||
|
||||
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 behaviour.
|
||||
|
||||
- Rebase before creating a PR to keep commit history clear.
|
||||
|
||||
- Add some descriptions and refer relative issues for you PR.
|
||||
|
||||
## Getting started
|
||||
|
||||
```bash
|
||||
git clone git@github.com:youzan/vant.git
|
||||
|
||||
cd vant
|
||||
|
||||
npm run bootstrap
|
||||
|
||||
npm run dev
|
||||
|
||||
# open http://localhost:8080
|
||||
```
|
||||
|
||||
## Contribute from the browser with a single click
|
||||
|
||||
You can use gitpod (A free online IDE) with a single click it will launch a ready to code workspace with dependencies pre-installed and the web server running so that you don't have to waste any time on the dev setup and start contributing straight away.
|
||||
|
||||
[](https://gitpod.io/#https://github.com/youzan/vant)
|
||||
9
vant/.github/ISSUE_TEMPLATE.md
vendored
Normal file
9
vant/.github/ISSUE_TEMPLATE.md
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
你好,请使用下面的链接创建 issue 以帮助我们更快的排查问题,不规范的 issue 会被关闭,感谢配合。
|
||||
|
||||
https://youzan.github.io/vant-issue-generater
|
||||
|
||||
---
|
||||
|
||||
Please use the link below to create a new issue, the non-standard issue will be closed.
|
||||
|
||||
https://youzan.github.io/vant-issue-generater
|
||||
30
vant/.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
30
vant/.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
### Before submitting a pull request, please make sure the following is done:
|
||||
|
||||
1. Read the [contributing guide](https://github.com/youzan/vant/blob/dev/.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
|
||||
1
vant/.github/workflows/.pydio
vendored
Normal file
1
vant/.github/workflows/.pydio
vendored
Normal file
@@ -0,0 +1 @@
|
||||
0b39112d-5550-4d22-aea6-7f7930c6651c
|
||||
51
vant/.github/workflows/test.yml
vendored
Normal file
51
vant/.github/workflows/test.yml
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
name: CI
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '12.x'
|
||||
|
||||
- name: Install dependencies
|
||||
uses: bahmutov/npm-install@v1
|
||||
|
||||
- name: Run linter
|
||||
run: npm run lint
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '12.x'
|
||||
|
||||
- name: Install dependencies
|
||||
uses: bahmutov/npm-install@v1
|
||||
|
||||
- name: Run test cases
|
||||
run: npm test
|
||||
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '12.x'
|
||||
|
||||
- name: Install dependencies
|
||||
uses: bahmutov/npm-install@v1
|
||||
|
||||
- name: Build
|
||||
run: npm run build
|
||||
Reference in New Issue
Block a user