Refactor: remove Golang and Git dumping (#37)

* ci: setup lint-staged
* refactor: remove golang and git dumping
This commit is contained in:
Shohei Ueda 2019-09-22 08:13:23 +09:00 committed by GitHub
parent c3970dfbdd
commit e194c83989
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 798 additions and 12 deletions

785
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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\""
}
}
}

View File

@ -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 {