mirror of
https://gitee.com/vant-contrib/vant.git
synced 2026-07-15 10:01:06 +08:00
Compare commits
14 Commits
c4ca4ef91e
...
5ba64ae8e1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5ba64ae8e1 | ||
|
|
b3bd3260ac | ||
|
|
15d9ca734d | ||
|
|
2b0ae4766c | ||
|
|
a81874fe30 | ||
|
|
5ec7298a9d | ||
|
|
fc26767f14 | ||
|
|
648207b737 | ||
|
|
c77ecff713 | ||
|
|
60d6b41645 | ||
|
|
3f09c8e77c | ||
|
|
c936087071 | ||
|
|
12be8cb32e | ||
|
|
249863b3cb |
2
.github/workflows/deploy-v2-site.yml
vendored
2
.github/workflows/deploy-v2-site.yml
vendored
@ -26,4 +26,4 @@ jobs:
|
||||
with:
|
||||
branch: gh-pages
|
||||
folder: site
|
||||
clean: false
|
||||
target-folder: v2
|
||||
|
||||
@ -44,11 +44,11 @@
|
||||
## Install
|
||||
|
||||
```bash
|
||||
# Install Vant 2 for Vue 2 project
|
||||
# Install latest Vant for Vue 3 project
|
||||
npm i vant -S
|
||||
|
||||
# Install Vant 3 for Vue 3 project
|
||||
npm i vant@next -S
|
||||
# Install Vant 2 for Vue 2 project
|
||||
npm i vant@latest-v2 -S
|
||||
```
|
||||
|
||||
## Quickstart
|
||||
|
||||
@ -28,7 +28,7 @@
|
||||
|
||||
Vant 是**有赞前端团队**开源的移动端组件库,于 2017 年开源,已持续维护 4 年时间。Vant 对内承载了有赞所有核心业务,对外服务十多万开发者,是业界主流的移动端组件库之一。
|
||||
|
||||
目前 Vant 官方提供了 [Vue 2 版本](https://vant-contrib.gitee.io/vant)、[Vue 3 版本](https://vant-contrib.gitee.io/vant/v3)和[微信小程序版本](http://vant-contrib.gitee.io/vant-weapp),并由社区团队维护 [React 版本](https://github.com/mxdi9i7/vant-react)。
|
||||
目前 Vant 官方提供了 [Vue 2 版本](https://vant-contrib.gitee.io/vant/v2)、[Vue 3 版本](https://vant-contrib.gitee.io/vant)和[微信小程序版本](http://vant-contrib.gitee.io/vant-weapp),并由社区团队维护 [React 版本](https://github.com/mxdi9i7/vant-react)。
|
||||
|
||||
## 特性
|
||||
|
||||
@ -47,11 +47,11 @@ Vant 是**有赞前端团队**开源的移动端组件库,于 2017 年开源
|
||||
## 安装
|
||||
|
||||
```bash
|
||||
# Vue 2 项目,安装 Vant 2:
|
||||
# Vue 3 项目,安装最新版 Vant:
|
||||
npm i vant -S
|
||||
|
||||
# Vue 3 项目,安装 Vant 3:
|
||||
npm i vant@next -S
|
||||
# Vue 2 项目,安装 Vant 2:
|
||||
npm i vant@latest-v2 -S
|
||||
```
|
||||
|
||||
## 快速上手
|
||||
|
||||
@ -16,6 +16,14 @@ Vant follows [Semantic Versioning 2.0.0](https://semver.org/lang/zh-CN/).
|
||||
|
||||
## Details
|
||||
|
||||
### [v2.12.42](https://github.com/youzan/vant/compare/v2.12.41...v2.12.42)
|
||||
|
||||
`2022-02-07`
|
||||
|
||||
**Feature**
|
||||
|
||||
- switch npm tag to `latest-v2` [d84d2d](https://github.com/youzan/vant/commit/d84d2d68345bb619ab2544136ca3c763611c729d)
|
||||
|
||||
### [v2.12.39](https://github.com/youzan/vant/compare/v2.12.38...v2.12.39)
|
||||
|
||||
`2022-01-15`
|
||||
|
||||
@ -16,6 +16,14 @@ Vant 遵循 [Semver](https://semver.org/lang/zh-CN/) 语义化版本规范。
|
||||
|
||||
## 更新内容
|
||||
|
||||
### [v2.12.42](https://github.com/youzan/vant/compare/v2.12.41...v2.12.42)
|
||||
|
||||
`2022-02-07`
|
||||
|
||||
**Feature**
|
||||
|
||||
- Vant 2 对应的 npm tag 切换为 `latest-v2` [d84d2d](https://github.com/youzan/vant/commit/d84d2d68345bb619ab2544136ca3c763611c729d)
|
||||
|
||||
### [v2.12.39](https://github.com/youzan/vant/compare/v2.12.38...v2.12.39)
|
||||
|
||||
`2022-01-15`
|
||||
|
||||
@ -10,11 +10,11 @@
|
||||
|
||||
Vant 是**有赞前端团队**开源的移动端组件库,于 2017 年开源,已持续维护 4 年时间。Vant 对内承载了有赞所有核心业务,对外服务十多万开发者,是业界主流的移动端组件库之一。 <br><br>
|
||||
|
||||
目前 Vant 官方提供了 [Vue 2 版本](https://vant-contrib.gitee.io/vant)、[Vue 3 版本](https://vant-contrib.gitee.io/vant/v3)和[微信小程序版本](http://vant-contrib.gitee.io/vant-weapp),并由社区团队维护 [React 版本](https://github.com/mxdi9i7/vant-react)。
|
||||
目前 Vant 官方提供了 [Vue 2 版本](https://vant-contrib.gitee.io/vant/v2)、[Vue 3 版本](https://vant-contrib.gitee.io/vant)和[微信小程序版本](http://vant-contrib.gitee.io/vant-weapp),并由社区团队维护 [React 版本](https://github.com/mxdi9i7/vant-react)。
|
||||
|
||||
### 版本提示
|
||||
|
||||
你当前浏览的是 **Vant 2.x 版本** 的文档,适用于 Vue 2 开发。如果你在使用 Vue 3,请浏览 [Vant 3 文档](https://vant-contrib.gitee.io/vant/v3/)。
|
||||
你当前浏览的是 **Vant 2.x 版本** 的文档,适用于 Vue 2 开发。如果你在使用 Vue 3,请浏览 [Vant 3 文档](https://vant-contrib.gitee.io/vant/)。
|
||||
|
||||
### 特性
|
||||
|
||||
|
||||
@ -5,11 +5,11 @@
|
||||
### npm
|
||||
|
||||
```bash
|
||||
# Install Vant 2 for Vue 2 project
|
||||
# Install latest Vant for Vue 3 project
|
||||
npm i vant -S
|
||||
|
||||
# Install Vant 3 for Vue 3 project
|
||||
npm i vant@next -S
|
||||
# Install Vant 2 for Vue 2 project
|
||||
npm i vant@latest-v2 -S
|
||||
```
|
||||
|
||||
### CDN
|
||||
|
||||
@ -11,11 +11,11 @@
|
||||
在现有项目中使用 Vant 时,可以通过 `npm` 或 `yarn` 进行安装:
|
||||
|
||||
```bash
|
||||
# Vue 2 项目,安装 Vant 2:
|
||||
# Vue 3 项目,安装最新版 Vant:
|
||||
npm i vant -S
|
||||
|
||||
# Vue 3 项目,安装 Vant 3:
|
||||
npm i vant@next -S
|
||||
# Vue 2 项目,安装 Vant 2:
|
||||
npm i vant@latest-v2 -S
|
||||
```
|
||||
|
||||
### 通过 CDN 安装
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vant",
|
||||
"version": "2.12.39",
|
||||
"version": "2.12.42",
|
||||
"description": "Mobile UI Components built on Vue",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
@ -12,6 +12,9 @@
|
||||
"types",
|
||||
"vetur"
|
||||
],
|
||||
"npm": {
|
||||
"tag": "latest-v2"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npmjs.org/"
|
||||
},
|
||||
@ -21,7 +24,7 @@
|
||||
"lint": "vant-cli lint",
|
||||
"test": "vant-cli test",
|
||||
"build": "vant-cli build",
|
||||
"release": "vant-cli release",
|
||||
"release": "vant-cli release --tag latest-v2",
|
||||
"test:watch": "vant-cli test --watch",
|
||||
"release:site": "sh docs/site/release.sh",
|
||||
"test:coverage": "open test/coverage/index.html"
|
||||
@ -63,7 +66,7 @@
|
||||
"vue": ">= 2.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vant/cli": "^2.10.3",
|
||||
"@vant/cli": "^2.11.5",
|
||||
"prettier": "2.1.0",
|
||||
"vue": "^2.6.12",
|
||||
"vue-template-compiler": "^2.6.12"
|
||||
|
||||
@ -1,5 +1,11 @@
|
||||
# 更新日志
|
||||
|
||||
## v2.11.5
|
||||
|
||||
`2022-02-07`
|
||||
|
||||
- 支持在 release 时通过 `--tag` 指定 npm tag
|
||||
|
||||
## v2.11.4
|
||||
|
||||
`2021-11-29`
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@vant/cli",
|
||||
"version": "2.11.4",
|
||||
"version": "2.11.5",
|
||||
"description": "",
|
||||
"main": "lib/index.js",
|
||||
"typings": "lib/index.d.ts",
|
||||
|
||||
@ -4,11 +4,14 @@ import { join } from 'path';
|
||||
|
||||
const PLUGIN_PATH = join(__dirname, '../compiler/vant-cli-release-plugin.js');
|
||||
|
||||
export async function release() {
|
||||
export async function release(command: { tag?: string }) {
|
||||
await releaseIt({
|
||||
plugins: {
|
||||
[PLUGIN_PATH]: {},
|
||||
},
|
||||
npm: {
|
||||
tag: command.tag,
|
||||
},
|
||||
git: {
|
||||
tagName: 'v${version}',
|
||||
commitMessage: 'chore: release ${version}',
|
||||
|
||||
@ -19,13 +19,9 @@ version(`@vant/cli ${packageJson.version}`);
|
||||
|
||||
process.env.VANT_CLI_VERSION = packageJson.version;
|
||||
|
||||
command('dev')
|
||||
.description('Run webpack dev server')
|
||||
.action(dev);
|
||||
command('dev').description('Run webpack dev server').action(dev);
|
||||
|
||||
command('lint')
|
||||
.description('Run eslint and stylelint')
|
||||
.action(lint);
|
||||
command('lint').description('Run eslint and stylelint').action(lint);
|
||||
|
||||
command('test')
|
||||
.description('Run unit tests through jest')
|
||||
@ -49,15 +45,10 @@ command('test')
|
||||
'--runInBand',
|
||||
'Run all tests serially in the current process, rather than creating a worker pool of child processes that run tests'
|
||||
)
|
||||
.option(
|
||||
'--debug',
|
||||
'Print debugging info about your Jest config'
|
||||
)
|
||||
.option('--debug', 'Print debugging info about your Jest config')
|
||||
.action(test);
|
||||
|
||||
command('clean')
|
||||
.description('Clean all dist files')
|
||||
.action(clean);
|
||||
command('clean').description('Clean all dist files').action(clean);
|
||||
|
||||
command('build')
|
||||
.description('Compile components in production mode')
|
||||
@ -66,18 +57,15 @@ command('build')
|
||||
|
||||
command('release')
|
||||
.description('Compile components and release it')
|
||||
.option('--tag <tag>', 'Release tag')
|
||||
.action(release);
|
||||
|
||||
command('build-site')
|
||||
.description('Compile site in production mode')
|
||||
.action(buildSite);
|
||||
|
||||
command('changelog')
|
||||
.description('Generate changelog')
|
||||
.action(changelog);
|
||||
command('changelog').description('Generate changelog').action(changelog);
|
||||
|
||||
command('commit-lint')
|
||||
.description('Lint commit message')
|
||||
.action(commitLint);
|
||||
command('commit-lint').description('Lint commit message').action(commitLint);
|
||||
|
||||
parse();
|
||||
|
||||
@ -3,7 +3,7 @@ module.exports = {
|
||||
build: {
|
||||
skipInstall: ['lazyload'],
|
||||
site: {
|
||||
publicPath: process.env.PUBLIC_PATH || '/vant/',
|
||||
publicPath: process.env.PUBLIC_PATH || '/vant/v2',
|
||||
},
|
||||
vetur: {
|
||||
tagPrefix: 'van-',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user