Add pre-commit hook to run eslint, jest and webpack build before commiting
This commit is contained in:
+17
-1
@@ -7,21 +7,37 @@
|
||||
"dev": "webpack-dev-server --mode development --open",
|
||||
"build": "webpack --optimize-minimize --config webpack.production.config.js",
|
||||
"webpack": "webpack --config webpack.config.js --watch",
|
||||
"lint": "eslint src",
|
||||
"test": "jest",
|
||||
"test-watch": "jest --watch"
|
||||
"test-watch": "jest --watch",
|
||||
"test-coverage": "jest --coverage"
|
||||
},
|
||||
"pre-commit": [
|
||||
"lint",
|
||||
"test",
|
||||
"build"
|
||||
],
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.5.5",
|
||||
"@babel/core": "^7.5.5",
|
||||
"@babel/plugin-proposal-class-properties": "^7.5.5",
|
||||
"@babel/plugin-proposal-private-methods": "^7.4.4",
|
||||
"@babel/preset-env": "^7.5.5",
|
||||
"@babel/preset-react": "^7.0.0",
|
||||
"babel-eslint": "^11.0.0-beta.0",
|
||||
"babel-loader": "^8.0.6",
|
||||
"babel-plugin-styled-components": "^1.10.6",
|
||||
"eslint": "^6.3.0",
|
||||
"eslint-plugin-import": "^2.18.2",
|
||||
"eslint-plugin-node": "^10.0.0",
|
||||
"eslint-plugin-promise": "^4.2.1",
|
||||
"eslint-plugin-react": "^7.14.3",
|
||||
"eslint-plugin-standard": "^4.0.1",
|
||||
"jest": "^24.9.0",
|
||||
"pre-commit": "^1.2.2",
|
||||
"react-hot-loader": "^4.12.11",
|
||||
"webpack": "^4.39.2",
|
||||
"webpack-cli": "^3.3.7",
|
||||
|
||||
Reference in New Issue
Block a user