mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-01-24 02:37:29 +01:00
Refactor: remove Golang and Git dumping (#37)
* ci: setup lint-staged * refactor: remove golang and git dumping
This commit is contained in:
23
package.json
23
package.json
@@ -12,6 +12,21 @@
|
||||
"format": "prettier --write **/*.ts",
|
||||
"format:check": "prettier --check **/*.ts"
|
||||
},
|
||||
"husky": {
|
||||
"skipCI": true,
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged",
|
||||
"post-commit": "npm run tsc && npm run build && git add ./lib/**/*.js ./node_modules && git commit -m \"deps: Husky commit correct node modules\""
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
"src/**/*.ts": [
|
||||
"prettier --check",
|
||||
"eslint",
|
||||
"jest --bail --findRelatedTests",
|
||||
"git add"
|
||||
]
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/peaceiris/actions-hugo.git"
|
||||
@@ -45,15 +60,9 @@
|
||||
"husky": "^3.0.5",
|
||||
"jest": "^24.9.0",
|
||||
"jest-circus": "^24.9.0",
|
||||
"lint-staged": "^9.2.5",
|
||||
"prettier": "1.18.2",
|
||||
"ts-jest": "^24.1.0",
|
||||
"typescript": "^3.6.3"
|
||||
},
|
||||
"husky": {
|
||||
"skipCI": true,
|
||||
"hooks": {
|
||||
"pre-commit": "npm run tsc && npm run format",
|
||||
"post-commit": "npm run build && git add node_modules/* && git commit -m \"deps: Husky commit correct node modules\""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user