mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
run build checks only when relevant FE changes (#1664)
This commit is contained in:
8
frontend/lint-staged.config.js
Normal file
8
frontend/lint-staged.config.js
Normal file
@@ -0,0 +1,8 @@
|
||||
module.exports = {
|
||||
'**/*.{js,ts,html,md,json}': 'prettier --write',
|
||||
'*.ts': 'tslint --fix',
|
||||
'projects/ui/**/*.ts': () => 'npm run check:ui',
|
||||
'projects/shared/**/*.ts': () => 'npm run check:shared',
|
||||
'projects/diagnostic-ui/**/*.ts': () => 'npm run check:diagnostic-ui',
|
||||
'projects/setup-wizard/**/*.ts': () => 'npm run check:setup-wizard',
|
||||
}
|
||||
@@ -84,11 +84,7 @@
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged && npm run check"
|
||||
"pre-commit": "lint-staged --concurrent false"
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
"**/*.{js,ts,html,md,less,json}": "prettier --write",
|
||||
"*.ts": "tslint --fix"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user