3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Update husky & lint-staged, tweak their scripts

This commit is contained in:
Dragory 2019-04-14 13:37:29 +03:00
parent 3226aec0bf
commit 7cc4687e87
2 changed files with 467 additions and 319 deletions

763
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -7,19 +7,11 @@
"test": "jest src", "test": "jest src",
"start-dev": "ts-node src/index.ts", "start-dev": "ts-node src/index.ts",
"start-watch": "nodemon", "start-watch": "nodemon",
"precommit": "lint-staged",
"postcommit": "git update-index --again",
"format": "prettier --write \"./**/*.ts\"", "format": "prettier --write \"./**/*.ts\"",
"typeorm": "ts-node ./node_modules/typeorm/cli.js", "typeorm": "ts-node ./node_modules/typeorm/cli.js",
"build": "rimraf dist && tsc", "build": "rimraf dist && tsc",
"start-prod": "cross-env NODE_ENV=production node dist/index.js" "start-prod": "cross-env NODE_ENV=production node dist/index.js"
}, },
"lint-staged": {
"*.ts": [
"prettier --write",
"git add"
]
},
"keywords": [], "keywords": [],
"author": "", "author": "",
"license": "ISC", "license": "ISC",
@ -59,13 +51,24 @@
"@types/node": "^10.12.0", "@types/node": "^10.12.0",
"@types/tmp": "0.0.33", "@types/tmp": "0.0.33",
"babel-jest": "^24.5.0", "babel-jest": "^24.5.0",
"husky": "^0.14.3", "husky": "^1.3.1",
"jest": "^24.5.0", "jest": "^24.5.0",
"lint-staged": "^7.2.0", "lint-staged": "^8.1.5",
"nodemon": "^1.17.5", "nodemon": "^1.17.5",
"prettier": "^1.16.4", "prettier": "^1.16.4",
"rimraf": "^2.6.2", "rimraf": "^2.6.2",
"tslint": "^5.13.1", "tslint": "^5.13.1",
"tslint-config-prettier": "^1.18.0" "tslint-config-prettier": "^1.18.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.ts": [
"prettier --write",
"git add"
]
} }
} }