mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-04 15:39:42 +08:00
merge: Run "style" and "test" scripts automatically when committing new changes (#918)
* feat: add style and run scripts on pre-commit hooks * Update package-lock.json
This commit is contained in:
5
.husky/pre-commit
Executable file
5
.husky/pre-commit
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
npm run style
|
||||
npm run test
|
11015
package-lock.json
generated
11015
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -6,7 +6,8 @@
|
||||
"main": "",
|
||||
"scripts": {
|
||||
"test": "jest --no-cache",
|
||||
"style": "standard"
|
||||
"style": "standard",
|
||||
"prepare": "husky install"
|
||||
},
|
||||
"author": "TheAlgorithms",
|
||||
"license": "GPL-3.0",
|
||||
@ -27,6 +28,7 @@
|
||||
"devDependencies": {
|
||||
"babel-jest": "^26.3.0",
|
||||
"globby": "^12.0.2",
|
||||
"husky": "^7.0.4",
|
||||
"jest": "^26.4.2",
|
||||
"standard": "^16.0.4"
|
||||
}
|
||||
|
Reference in New Issue
Block a user