Skip to content

Commit ca3d2f4

Browse files
author
levy
authored
release (#21)
1 parent 232104f commit ca3d2f4

File tree

1,008 files changed

+81392
-26522
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,008 files changed

+81392
-26522
lines changed

.editorconfig

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,13 @@
1+
# http://editorconfig.org
12
root = true
23

34
[*]
45
indent_style = space
6+
indent_size = 2
57
end_of_line = lf
68
charset = utf-8
79
trim_trailing_whitespace = true
810
insert_final_newline = true
911

1012
[*.md]
1113
trim_trailing_whitespace = false
12-
13-
[*.js]
14-
indent_size = 2
15-
16-
[*.vue]
17-
indent_size = 2
18-
19-
[*.css]
20-
indent_size = 2
21-
22-
[Makefile]
23-
indent_style = tab

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
es
22
lib
33
dist
4-
types
54
node_modules

.eslintrc

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/CONTRIBUTING.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ It's welcomed to pull request, And there are some tips about that:
1818

1919
- 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.
2020

21-
- When adding new features or modifying existing, please attempt to include tests to confirm the new behaviour.
21+
- When adding new features or modifying existing, please attempt to include tests to confirm the new behaviour.
2222

2323
- Rebase before creating a PR to keep commit history clear.
2424

@@ -27,7 +27,7 @@ It's welcomed to pull request, And there are some tips about that:
2727
## Getting started
2828

2929
```bash
30-
git clone git@github.com:youzan/vant.git
30+
git clone https://github.com/FEMessage/vant.git
3131

3232
cd vant
3333

@@ -37,3 +37,13 @@ npm run dev
3737

3838
# open http://localhost:8080
3939
```
40+
41+
## Contribute online with a single click
42+
43+
You can use Gitpod (A free online VS Code-like IDE) for contributing, With a single click it will launch a workspace and automatically:
44+
45+
- clone the vant repo.
46+
- run `npm run bootstrap`.
47+
- run `npm run dev`.
48+
49+
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/youzan/vant)

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
你好,请使用下面的链接创建 issue 以帮助我们更快的排查问题,不规范的 issue 会被关闭,感谢配合。
22

3-
https://youzan.github.io/vant-issue-generater
3+
http://vant-contrib.gitee.io/vant-issue-generater
44

55
---
66

.github/workflows/preview.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: 🔂 Surge PR Preview
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
preview:
7+
runs-on: ubuntu-latest
8+
env:
9+
PUBLIC_PATH: '/'
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: afc163/surge-preview@v1
13+
with:
14+
surge_token: ${{ secrets.SURGE_TOKEN }}
15+
github_token: ${{ secrets.GITHUB_TOKEN }}
16+
build: |
17+
npm install
18+
./node_modules/.bin/vant-cli build-site
19+
dist: site

.github/workflows/release-tag.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on:
2+
push:
3+
tags:
4+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
5+
6+
name: Create Release
7+
8+
jobs:
9+
build:
10+
name: Create Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@master
15+
- name: Create Release for Tag
16+
id: release_tag
17+
uses: yyx990803/release-tag@master
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
with:
21+
tag_name: ${{ github.ref }}
22+
body: |
23+
更新内容参见 [CHANGELOG](https://youzan.github.io/vant/#/zh-CN/changelog)。
24+
25+
Please refer to [CHANGELOG](https://youzan.github.io/vant/#/en-US/changelog) for details.

.github/workflows/sync.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Sync to Gitee
2+
3+
on:
4+
push:
5+
branches: [dev]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Sync to Gitee
12+
uses: wearerequired/git-mirror-action@master
13+
env:
14+
# 注意在 Settings->Secrets 配置 GITEE_RSA_PRIVATE_KEY
15+
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
16+
with:
17+
# 注意替换为你的 GitHub 源仓库地址
18+
source-repo: 'git@github.com:FEMessage/vant.git'
19+
# 注意替换为你的 Gitee 目标仓库地址
20+
destination-repo: 'git@gitee.com:vant-contrib/vant.git'
21+
22+
- name: Build Gitee Pages
23+
uses: yanglbme/gitee-pages-action@master
24+
with:
25+
# 注意替换为你的 Gitee 用户名
26+
gitee-username: chenjiahan
27+
# 注意在 Settings->Secrets 配置 GITEE_PASSWORD
28+
gitee-password: ${{ secrets.GITEE_PASSWORD }}
29+
# 注意替换为你的 Gitee 仓库
30+
gitee-repo: vant-contrib/vant

.github/workflows/test.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- uses: actions/setup-node@v1
11+
with:
12+
node-version: '12.x'
13+
14+
- name: Install dependencies
15+
uses: bahmutov/npm-install@v1
16+
17+
- name: Run linter
18+
run: npm run lint
19+
20+
test:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v1
24+
- uses: actions/setup-node@v1
25+
with:
26+
node-version: '12.x'
27+
28+
- name: Install dependencies
29+
uses: bahmutov/npm-install@v1
30+
31+
- name: Run test cases
32+
run: npm test
33+
34+
- name: Upload coverage to Codecov
35+
uses: codecov/codecov-action@v1
36+
with:
37+
token: ${{ secrets.CODECOV_TOKEN }}
38+
39+
build:
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v1
43+
- uses: actions/setup-node@v1
44+
with:
45+
node-version: '12.x'
46+
47+
- name: Install dependencies
48+
uses: bahmutov/npm-install@v1
49+
50+
- name: Build
51+
run: npm run build

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ package-lock.json
1212
es
1313
lib
1414
dist
15-
docs/dist
15+
/site
1616
changelog.generated.md
1717
test/coverage
1818
vetur

0 commit comments

Comments
 (0)