Skip to content

Commit

Permalink
Added precommit hook (Girl-Code-It#67)
Browse files Browse the repository at this point in the history
* Added precommit hook

* Updated and tested husky

* added pre-commit and updated package.json
  • Loading branch information
Samridhi-98 committed Apr 30, 2021
1 parent 613293f commit 333c4fa
Showing 1 changed file with 50 additions and 39 deletions.
89 changes: 50 additions & 39 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,57 @@
{
"name": "opportunity-calendar-backend",
"version": "1.0.0",
"description": "Opportunity Calendar is the one-stop place to refer important opportunities available in tech-space like newly posted jobs, internships, hackathons, tech-conferences, scholarships etc.",
"main": "index.js",
"type": "module",
"scripts": {
"preinstall": "npx husky-init",
"prepare": "husky install",
"start": "node index.js",
"test": "mocha './tests/*/*'",
"start:dev": "nodemon –experimental-modules index.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Manvityagi/Opportunity-Calendar-Backend.git"
},
"author": "ManviTyagi",
"license": "ISC",
"bugs": {
"url": "https://github.com/Manvityagi/Opportunity-Calendar-Backend/issues"
},
"homepage": "https://github.com/Manvityagi/Opportunity-Calendar-Backend#readme",
"dependencies": {
"body-parser": "^1.19.0",
"cluster": "^0.7.7",
"cors": "^2.8.5",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"method-override": "^3.0.0",
"mongoose": "^5.12.1",
"mongoose-type-url": "^2.1.0",
"nodemon": "^2.0.7",
"swagger-jsdoc": "^6.0.0",
"swagger-ui-express": "^4.1.6"
},
"devDependencies": {
"chai": "^4.3.4",
"faker": "^5.5.2",
"husky": "^6.0.0",
"name": "opportunity-calendar-backend",
"version": "1.0.0",
"description": "Opportunity Calendar is the one-stop place to refer important opportunities available in tech-space like newly posted jobs, internships, hackathons, tech-conferences, scholarships etc.",
"main": "index.js",
"type": "module",
"scripts": {
"preinstall": "npx husky-init",
"start": "node index.js",
"test": "mocha './tests/*/*'",
"start:dev": "nodemon –experimental-modules index.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Manvityagi/Opportunity-Calendar-Backend.git"
},
"author": "ManviTyagi",
"license": "ISC",
"bugs": {
"url": "https://github.com/Manvityagi/Opportunity-Calendar-Backend/issues"
},
"homepage": "https://github.com/Manvityagi/Opportunity-Calendar-Backend#readme",
"dependencies": {
"body-parser": "^1.19.0",
"cluster": "^0.7.7",
"cors": "^2.8.5",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"method-override": "^3.0.0",
"mongoose": "^5.12.1",
"mongoose-type-url": "^2.1.0",
"nodemon": "^2.0.7",
"swagger-jsdoc": "^6.0.0",
"swagger-ui-express": "^4.1.6"
},
"devDependencies": {
"chai": "^4.3.4",
"faker": "^5.5.2",
"husky": "^6.0.0",
<<
<< << < HEAD ===
=== =
"mocha": "^8.3.2",
>>>
>>> > fe446cf(Added precommit hook(#67))

"prettier": "^2.2.1",

"pretty-quick": "^3.1.0",

"mocha": "^8.3.2",

"sinon": "^10.0.0"

}

}

0 comments on commit 333c4fa

Please sign in to comment.