mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-01 19:47:56 +08:00
build: 通过lintstaged对scss文件进行增量校验,避免npm run stylelint全量校验的时间浪费
This commit is contained in:
parent
6cfad22de3
commit
1b40a08eea
@ -2,4 +2,3 @@
|
|||||||
. "$(dirname "$0")/_/husky.sh"
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
npx lint-staged
|
npx lint-staged
|
||||||
npm run stylelint
|
|
||||||
|
@ -36,8 +36,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"{packages,examples}/**/{src,examples}/**/**/*.{tsx,jsx,ts}": [
|
"{packages,examples}/**/{src,examples}/**/**/*.{tsx,jsx,ts,scss}": [
|
||||||
"prettier --write"
|
"prettier --write"
|
||||||
|
],
|
||||||
|
"*.{scss}": [
|
||||||
|
"stylelint --fix"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
Loading…
Reference in New Issue
Block a user