Refactor: remove Golang and Git dumping (#37)
* ci: setup lint-staged * refactor: remove golang and git dumping
This commit is contained in:
parent
c3970dfbdd
commit
e194c83989
File diff suppressed because it is too large
Load Diff
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\""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,8 +8,6 @@ async function run() {
|
|||
const dump = async () => {
|
||||
// Show version
|
||||
await exec.exec('hugo version');
|
||||
await exec.exec('go version');
|
||||
await exec.exec('git --version');
|
||||
};
|
||||
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue