chore(@vant/cli): bump commander v8 and other deps (#9302)

This commit is contained in:
neverland 2021-08-21 13:56:28 +08:00 committed by GitHub
parent 82d4a512b3
commit 5966584a92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 1171 additions and 1304 deletions

View File

@ -59,7 +59,7 @@
"vue": "^3.0.0" "vue": "^3.0.0"
}, },
"devDependencies": { "devDependencies": {
"@vant/cli": "^4.0.0-beta.0", "@vant/cli": "^4.0.0-beta.1",
"@vant/area-data": "^1.1.1", "@vant/area-data": "^1.1.1",
"@vue/compiler-sfc": "^3.2.1", "@vue/compiler-sfc": "^3.2.1",
"vue": "^3.2.1" "vue": "^3.2.1"

View File

@ -11,6 +11,7 @@
- ts-jest v27 - ts-jest v27
- postcss v8 - postcss v8
- clean-css v5 - clean-css v5
- commander v8
- css-loader v6 - css-loader v6
- babel-jest v27 - babel-jest v27
- sass-loader v12 - sass-loader v12

View File

@ -1,6 +1,6 @@
{ {
"name": "@vant/cli", "name": "@vant/cli",
"version": "4.0.0-beta.0", "version": "4.0.0-beta.1",
"main": "lib/index.js", "main": "lib/index.js",
"typings": "lib/index.d.ts", "typings": "lib/index.d.ts",
"bin": { "bin": {
@ -32,65 +32,65 @@
"vue": "^3.0.0" "vue": "^3.0.0"
}, },
"devDependencies": { "devDependencies": {
"@types/fs-extra": "^9.0.11", "@types/fs-extra": "^9.0.12",
"@types/lodash": "^4.14.170", "@types/lodash": "^4.14.172",
"@types/postcss-load-config": "^3.0.1" "@types/postcss-load-config": "^3.0.1"
}, },
"dependencies": { "dependencies": {
"@babel/core": "^7.14.5", "@babel/core": "^7.15.0",
"@babel/preset-env": "^7.14.5", "@babel/preset-env": "^7.15.0",
"@babel/preset-typescript": "^7.14.5", "@babel/preset-typescript": "^7.15.0",
"@docsearch/css": "3.0.0-alpha.33", "@docsearch/css": "3.0.0-alpha.33",
"@docsearch/js": "3.0.0-alpha.33", "@docsearch/js": "3.0.0-alpha.33",
"@types/jest": "^27.0.1", "@types/jest": "^27.0.1",
"@vant/eslint-config": "^3.3.2", "@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/markdown-vetur": "^2.2.0",
"@vant/stylelint-config": "^1.4.2", "@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/babel-plugin-jsx": "^1.0.6",
"@vue/test-utils": "2.0.0-rc.6", "@vue/test-utils": "2.0.0-rc.6",
"autoprefixer": "^10.0.0", "autoprefixer": "^10.3.1",
"babel-jest": "^27.0.6", "babel-jest": "^27.0.6",
"babel-loader": "^8.2.2", "babel-loader": "^8.2.2",
"babel-plugin-import": "^1.13.3", "babel-plugin-import": "^1.13.3",
"chokidar": "^3.5.1", "chokidar": "^3.5.2",
"clean-css": "^5.1.5", "clean-css": "^5.1.5",
"commander": "^6.2.1", "commander": "^8.1.0",
"consola": "^2.15.3", "consola": "^2.15.3",
"conventional-changelog": "^3.1.24", "conventional-changelog": "^3.1.24",
"css-loader": "^6.2.0", "css-loader": "^6.2.0",
"eslint": "^7.28.0", "eslint": "^7.32.0",
"fast-glob": "^3.2.5", "fast-glob": "^3.2.7",
"fork-ts-checker-webpack-plugin": "^6.2.10", "fork-ts-checker-webpack-plugin": "^6.3.2",
"gh-pages": "^3.2.0", "gh-pages": "^3.2.3",
"hash-sum": "^2.0.0", "hash-sum": "^2.0.0",
"html-webpack-plugin": "^5.3.1", "html-webpack-plugin": "^5.3.2",
"husky": "^7.0.0", "husky": "^7.0.1",
"jest": "^27.0.6", "jest": "^27.0.6",
"jest-canvas-mock": "^2.3.1", "jest-canvas-mock": "^2.3.1",
"jest-serializer-html": "^7.1.0", "jest-serializer-html": "^7.1.0",
"less": "^4.1.1", "less": "^4.1.1",
"less-loader": "^10.0.1", "less-loader": "^10.0.1",
"lint-staged": "^11.0.0", "lint-staged": "^11.1.2",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"ora": "^5.4.1", "ora": "^5.4.1",
"portfinder": "^1.0.28", "portfinder": "^1.0.28",
"postcss": "^8.0.0", "postcss": "^8.3.6",
"postcss-load-config": "^3.0.1", "postcss-load-config": "^3.1.0",
"postcss-loader": "^6.1.1", "postcss-loader": "^6.1.1",
"prettier": "2.1.0", "prettier": "2.3.2",
"release-it": "^14.8.0", "release-it": "^14.11.5",
"sass": "^1.34.1", "sass": "^1.38.0",
"sass-loader": "^12.1.0", "sass-loader": "^12.1.0",
"style-loader": "^3.2.1", "style-loader": "^3.2.1",
"stylelint": "^13.13.1", "stylelint": "^13.13.1",
"ts-jest": "^27.0.5", "ts-jest": "^27.0.5",
"typescript": "^4.3.2", "typescript": "^4.3.5",
"vue3-jest": "^27.0.0-alpha.2", "vue3-jest": "^27.0.0-alpha.2",
"vue-loader": "^16.1.2", "vue-loader": "^16.5.0",
"vue-router": "^4.0.0", "vue-router": "^4.0.0",
"webpack": "^5.38.1", "webpack": "^5.51.1",
"webpack-dev-server": "^4.0.0", "webpack-dev-server": "^4.0.0",
"webpack-merge": "^5.8.0", "webpack-merge": "^5.8.0",
"webpackbar": "^5.0.0-3" "webpackbar": "^5.0.0-3"

View File

@ -1,5 +1,5 @@
#!/usr/bin/env node #!/usr/bin/env node
import { command, parse, version } from 'commander'; import { Command } from 'commander';
import { import {
dev, dev,
@ -14,13 +14,16 @@ import {
cliVersion, cliVersion,
} from '.'; } 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') .description('Run unit tests through jest')
.option( .option(
'--watch', '--watch',
@ -45,26 +48,33 @@ command('test')
.option('--debug', 'Print debugging info about your Jest config') .option('--debug', 'Print debugging info about your Jest config')
.action(test); .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') .description('Compile components in production mode')
.option('--watch', 'Watch file change') .option('--watch', 'Watch file change')
.action(build); .action(build);
command('release') program
.command('release')
.description('Compile components and release it') .description('Compile components and release it')
.option('--tag <tag>', 'Release tag') .option('--tag <tag>', 'Release tag')
.action(release); .action(release);
command('build-site') program
.command('build-site')
.description('Compile site in production mode') .description('Compile site in production mode')
.action(buildSite); .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') .description('Lint commit message')
.action(commitLint); .action(commitLint);
parse(); program.parse();

File diff suppressed because it is too large Load Diff

1237
yarn.lock

File diff suppressed because it is too large Load Diff