Skip to content

Commit

Permalink
#9999 refact(package.json, banners.sh) install husky
Browse files Browse the repository at this point in the history
  • Loading branch information
hector-js committed Oct 25, 2020
1 parent 03d930b commit 8645e5f
Show file tree
Hide file tree
Showing 6 changed files with 318 additions and 6 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
/coverage/
/.nyc_output/
/.github/
/scripts/
CODE_OF_CONDUCT.md
changelog.md
initializer.sh
Expand Down
235 changes: 232 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test": "test"
},
"dependencies": {
"@hectorjs/stub-cli": "^1.6.0",
"@hectorjs/stub-cli": "^1.7.0",
"body-parser": "^1.19.0",
"cookie-parser": "^1.4.5",
"cors": "^2.8.5",
Expand All @@ -28,6 +28,7 @@
"eslint-config-google": "^0.14.0",
"mocha": "^7.2.0",
"nyc": "^14.1.1",
"husky": "^4.3.0",
"supertest": "^3.4.2"
},
"scripts": {
Expand All @@ -37,7 +38,7 @@
"coverage": "env KEY=test nyc --reporter=html --reporter=text-summary mocha --recursive --exit",
"eslint": "eslint ./lib/**/*.js ./test/**/*.js",
"report-coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"test-all": "rm -rf node_modules && npm i && npm audit && eslint ./lib/**/*.js ./test/**/*.js && npm run coverage"
"test-all": "sh scripts/banners/cup-tea.sh && rm -rf node_modules && npm i && npm audit && eslint ./lib/**/*.js ./test/**/*.js && npm run coverage"
},
"author": "Hector Jimenez Sanchez",
"license": "MIT",
Expand All @@ -54,5 +55,11 @@
"type": "git",
"url": "git://github.com/hector-js/stub-backend.git"
},
"homepage": "https://hectorjs.herokuapp.com"
"homepage": "https://hectorjs.herokuapp.com",
"husky": {
"hooks": {
"pre-commit": "sh scripts/banners/earth.sh",
"pre-push": "npm run test-all"
}
}
}
Loading

0 comments on commit 8645e5f

Please sign in to comment.