Compare commits

...

14 Commits

Author SHA1 Message Date
chenjiahan
5ba64ae8e1 build: update publicPath 2022-02-07 17:39:46 +08:00
chenjiahan
b3bd3260ac docs: update link 2022-02-07 17:29:25 +08:00
chenjiahan
15d9ca734d chore: deploy site to v2 folder 2022-02-07 17:26:24 +08:00
chenjiahan
2b0ae4766c docs: update install guide 2022-02-07 17:24:50 +08:00
chenjiahan
a81874fe30 docs(@vant/cli): changelog 2.11.5 2022-02-07 17:24:50 +08:00
chenjiahan
5ec7298a9d docs(changelog): 2.12.42 2022-02-07 17:24:50 +08:00
chenjiahan
fc26767f14 chore: release 2.12.42 2022-02-07 17:24:50 +08:00
chenjiahan
648207b737 chore: update deps 2022-02-07 17:24:50 +08:00
chenjiahan
c77ecff713 chore: release @vant/cli@2.11.5 2022-02-07 17:24:50 +08:00
chenjiahan
60d6b41645 feat(@vant/cli): support specify tag 2022-02-07 17:24:50 +08:00
chenjiahan
3f09c8e77c chore: release 2.12.41 2022-02-07 17:24:50 +08:00
chenjiahan
c936087071 chore: update yarn.lock 2022-02-07 17:24:50 +08:00
chenjiahan
12be8cb32e chore: release 2.12.40 2022-02-07 17:24:50 +08:00
chenjiahan
249863b3cb chore: switch npm tag to latest-v2 2022-02-07 17:24:50 +08:00
15 changed files with 513 additions and 793 deletions

View File

@ -26,4 +26,4 @@ jobs:
with:
branch: gh-pages
folder: site
clean: false
target-folder: v2

View File

@ -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

View File

@ -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
```
## 快速上手

View File

@ -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`

View File

@ -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`

View File

@ -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/)。
### 特性

View File

@ -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

View File

@ -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 安装

View File

@ -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"

View File

@ -1,5 +1,11 @@
# 更新日志
## v2.11.5
`2022-02-07`
- 支持在 release 时通过 `--tag` 指定 npm tag
## v2.11.4
`2021-11-29`

View File

@ -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",

View File

@ -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}',

View File

@ -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();

View File

@ -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-',

1208
yarn.lock

File diff suppressed because it is too large Load Diff