chore: add cache for prettier and eslint (#6813)

This commit is contained in:
三咲智子 2022-10-04 14:27:54 +08:00 committed by GitHub
parent 35a113eda4
commit 45782df349
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 7 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@ explorations
TODOs.md
*.log
.idea
.eslintcache

View File

@ -8,8 +8,8 @@
"size": "run-s size-global size-baseline",
"size-global": "node scripts/build.js vue runtime-dom -f global -p",
"size-baseline": "node scripts/build.js runtime-dom runtime-core reactivity shared -f esm-bundler && cd packages/size-check && vite build && node brotli",
"lint": "eslint --ext .ts packages/*/{src,__tests__}/**.ts",
"format": "prettier --write --parser typescript \"packages/**/*.ts?(x)\"",
"lint": "eslint --cache --ext .ts packages/*/{src,__tests__}/**.ts",
"format": "prettier --write --cache --parser typescript \"packages/**/*.ts?(x)\"",
"test": "run-s \"test-unit {@}\" \"test-e2e {@}\"",
"test-unit": "jest --filter ./scripts/filter-unit.js",
"test-e2e": "node scripts/build.js vue -f global -d && jest --filter ./scripts/filter-e2e.js --runInBand",
@ -80,7 +80,7 @@
"marked": "^4.0.10",
"minimist": "^1.2.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.3.1",
"prettier": "^2.7.1",
"puppeteer": "^10.0.0",
"rollup": "~2.38.5",
"rollup-plugin-node-builtins": "^2.1.2",

View File

@ -35,7 +35,7 @@ importers:
marked: ^4.0.10
minimist: ^1.2.0
npm-run-all: ^4.1.5
prettier: ^2.3.1
prettier: ^2.7.1
puppeteer: ^10.0.0
rollup: ~2.38.5
rollup-plugin-node-builtins: ^2.1.2
@ -84,7 +84,7 @@ importers:
marked: 4.0.10
minimist: 1.2.5
npm-run-all: 4.1.5
prettier: 2.5.1
prettier: 2.7.1
puppeteer: 10.4.0
rollup: 2.38.5
rollup-plugin-node-builtins: 2.1.2
@ -5841,8 +5841,8 @@ packages:
engines: {node: '>= 0.8.0'}
dev: true
/prettier/2.5.1:
resolution: {integrity: sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg==}
/prettier/2.7.1:
resolution: {integrity: sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==}
engines: {node: '>=10.13.0'}
hasBin: true
dev: true