mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
chore(@vant/cli): bump commander v8 and other deps (#9302)
This commit is contained in:
parent
82d4a512b3
commit
5966584a92
@ -59,7 +59,7 @@
|
||||
"vue": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vant/cli": "^4.0.0-beta.0",
|
||||
"@vant/cli": "^4.0.0-beta.1",
|
||||
"@vant/area-data": "^1.1.1",
|
||||
"@vue/compiler-sfc": "^3.2.1",
|
||||
"vue": "^3.2.1"
|
||||
|
@ -11,6 +11,7 @@
|
||||
- ts-jest v27
|
||||
- postcss v8
|
||||
- clean-css v5
|
||||
- commander v8
|
||||
- css-loader v6
|
||||
- babel-jest v27
|
||||
- sass-loader v12
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@vant/cli",
|
||||
"version": "4.0.0-beta.0",
|
||||
"version": "4.0.0-beta.1",
|
||||
"main": "lib/index.js",
|
||||
"typings": "lib/index.d.ts",
|
||||
"bin": {
|
||||
@ -32,65 +32,65 @@
|
||||
"vue": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/fs-extra": "^9.0.11",
|
||||
"@types/lodash": "^4.14.170",
|
||||
"@types/fs-extra": "^9.0.12",
|
||||
"@types/lodash": "^4.14.172",
|
||||
"@types/postcss-load-config": "^3.0.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.14.5",
|
||||
"@babel/preset-env": "^7.14.5",
|
||||
"@babel/preset-typescript": "^7.14.5",
|
||||
"@babel/core": "^7.15.0",
|
||||
"@babel/preset-env": "^7.15.0",
|
||||
"@babel/preset-typescript": "^7.15.0",
|
||||
"@docsearch/css": "3.0.0-alpha.33",
|
||||
"@docsearch/js": "3.0.0-alpha.33",
|
||||
"@types/jest": "^27.0.1",
|
||||
"@vant/eslint-config": "^3.3.2",
|
||||
"@vant/markdown-loader": "^4.1.0",
|
||||
"@vant/markdown-loader": "^4.1.1",
|
||||
"@vant/markdown-vetur": "^2.2.0",
|
||||
"@vant/stylelint-config": "^1.4.2",
|
||||
"@vant/touch-emulator": "^1.3.0",
|
||||
"@vant/touch-emulator": "^1.3.2",
|
||||
"@vue/babel-plugin-jsx": "^1.0.6",
|
||||
"@vue/test-utils": "2.0.0-rc.6",
|
||||
"autoprefixer": "^10.0.0",
|
||||
"autoprefixer": "^10.3.1",
|
||||
"babel-jest": "^27.0.6",
|
||||
"babel-loader": "^8.2.2",
|
||||
"babel-plugin-import": "^1.13.3",
|
||||
"chokidar": "^3.5.1",
|
||||
"chokidar": "^3.5.2",
|
||||
"clean-css": "^5.1.5",
|
||||
"commander": "^6.2.1",
|
||||
"commander": "^8.1.0",
|
||||
"consola": "^2.15.3",
|
||||
"conventional-changelog": "^3.1.24",
|
||||
"css-loader": "^6.2.0",
|
||||
"eslint": "^7.28.0",
|
||||
"fast-glob": "^3.2.5",
|
||||
"fork-ts-checker-webpack-plugin": "^6.2.10",
|
||||
"gh-pages": "^3.2.0",
|
||||
"eslint": "^7.32.0",
|
||||
"fast-glob": "^3.2.7",
|
||||
"fork-ts-checker-webpack-plugin": "^6.3.2",
|
||||
"gh-pages": "^3.2.3",
|
||||
"hash-sum": "^2.0.0",
|
||||
"html-webpack-plugin": "^5.3.1",
|
||||
"husky": "^7.0.0",
|
||||
"html-webpack-plugin": "^5.3.2",
|
||||
"husky": "^7.0.1",
|
||||
"jest": "^27.0.6",
|
||||
"jest-canvas-mock": "^2.3.1",
|
||||
"jest-serializer-html": "^7.1.0",
|
||||
"less": "^4.1.1",
|
||||
"less-loader": "^10.0.1",
|
||||
"lint-staged": "^11.0.0",
|
||||
"lint-staged": "^11.1.2",
|
||||
"lodash": "^4.17.21",
|
||||
"ora": "^5.4.1",
|
||||
"portfinder": "^1.0.28",
|
||||
"postcss": "^8.0.0",
|
||||
"postcss-load-config": "^3.0.1",
|
||||
"postcss": "^8.3.6",
|
||||
"postcss-load-config": "^3.1.0",
|
||||
"postcss-loader": "^6.1.1",
|
||||
"prettier": "2.1.0",
|
||||
"release-it": "^14.8.0",
|
||||
"sass": "^1.34.1",
|
||||
"prettier": "2.3.2",
|
||||
"release-it": "^14.11.5",
|
||||
"sass": "^1.38.0",
|
||||
"sass-loader": "^12.1.0",
|
||||
"style-loader": "^3.2.1",
|
||||
"stylelint": "^13.13.1",
|
||||
"ts-jest": "^27.0.5",
|
||||
"typescript": "^4.3.2",
|
||||
"typescript": "^4.3.5",
|
||||
"vue3-jest": "^27.0.0-alpha.2",
|
||||
"vue-loader": "^16.1.2",
|
||||
"vue-loader": "^16.5.0",
|
||||
"vue-router": "^4.0.0",
|
||||
"webpack": "^5.38.1",
|
||||
"webpack": "^5.51.1",
|
||||
"webpack-dev-server": "^4.0.0",
|
||||
"webpack-merge": "^5.8.0",
|
||||
"webpackbar": "^5.0.0-3"
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env node
|
||||
import { command, parse, version } from 'commander';
|
||||
import { Command } from 'commander';
|
||||
|
||||
import {
|
||||
dev,
|
||||
@ -14,13 +14,16 @@ import {
|
||||
cliVersion,
|
||||
} from '.';
|
||||
|
||||
version(`@vant/cli ${cliVersion}`);
|
||||
const program = new Command();
|
||||
|
||||
command('dev').description('Run webpack dev server').action(dev);
|
||||
program.version(`@vant/cli ${cliVersion}`);
|
||||
|
||||
command('lint').description('Run eslint and stylelint').action(lint);
|
||||
program.command('dev').description('Run webpack dev server').action(dev);
|
||||
|
||||
command('test')
|
||||
program.command('lint').description('Run eslint and stylelint').action(lint);
|
||||
|
||||
program
|
||||
.command('test')
|
||||
.description('Run unit tests through jest')
|
||||
.option(
|
||||
'--watch',
|
||||
@ -45,26 +48,33 @@ command('test')
|
||||
.option('--debug', 'Print debugging info about your Jest config')
|
||||
.action(test);
|
||||
|
||||
command('clean').description('Clean all dist files').action(clean);
|
||||
program.command('clean').description('Clean all dist files').action(clean);
|
||||
|
||||
command('build')
|
||||
program
|
||||
.command('build')
|
||||
.description('Compile components in production mode')
|
||||
.option('--watch', 'Watch file change')
|
||||
.action(build);
|
||||
|
||||
command('release')
|
||||
program
|
||||
.command('release')
|
||||
.description('Compile components and release it')
|
||||
.option('--tag <tag>', 'Release tag')
|
||||
.action(release);
|
||||
|
||||
command('build-site')
|
||||
program
|
||||
.command('build-site')
|
||||
.description('Compile site in production mode')
|
||||
.action(buildSite);
|
||||
|
||||
command('changelog').description('Generate changelog').action(changelog);
|
||||
program
|
||||
.command('changelog')
|
||||
.description('Generate changelog')
|
||||
.action(changelog);
|
||||
|
||||
command('commit-lint <gitParams>')
|
||||
program
|
||||
.command('commit-lint <gitParams>')
|
||||
.description('Lint commit message')
|
||||
.action(commitLint);
|
||||
|
||||
parse();
|
||||
program.parse();
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user