You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

113 lines
3.5 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. {
  2. "name": "sg-node-express-rest-api",
  3. "version": "0.0.2",
  4. "description": "Sentientgeeks Boilerplate Node Express RESTApi ES2017",
  5. "author": "sentientgeeks",
  6. "main": "src/index.js",
  7. "engines": {
  8. "node": ">=8",
  9. "yarn": "*"
  10. },
  11. "scripts": {
  12. "precommit": "yarn lint",
  13. "prestart": "yarn docs",
  14. "start:dev": "dotenv -v NODE_ENV=development -- nodemon ./src/index.js",
  15. "start:prod": "dotenv -v NODE_ENV=production -- pm2 start ./src/index.js",
  16. "lint": "eslint ./src/ --ignore-path .gitignore --ignore-pattern internals/scripts",
  17. "lint:fix": "npx eslint --fix",
  18. "lint:watch": "npx eslint --watch",
  19. "format": "npx prettier --write .",
  20. "test": "dotenv -v NODE_ENV=test -- nyc --reporter=html --reporter=text mocha --timeout 20000 --exit --recursive src/api/tests",
  21. "test:unit": "dotenv -v NODE_ENV=test -- mocha src/api/tests/unit",
  22. "test:integration": "dotenv -v NODE_ENV=test -- mocha --timeout 20000 --exit src/api/tests/integration",
  23. "test:watch": "dotenv -v NODE_ENV=test -- mocha --watch src/api/tests/unit",
  24. "coverage": "nyc report --reporter=text-lcov | coveralls",
  25. "postcoverage": "open-cli coverage/lcov-report/index.html",
  26. "validate": "yarn lint && yarn test",
  27. "postpublish": "git push --tags",
  28. "deploy": "sh ./deploy.sh",
  29. "docs": "apidoc -i src -o docs",
  30. "postdocs": "open-cli docs/index.html",
  31. "docker:start": "cross-env NODE_ENV=production pm2-docker start ./src/index.js",
  32. "docker:prod": "docker-compose -f docker-compose.yml -f docker-compose.prod.yml up",
  33. "docker:dev": "docker-compose -f docker-compose.yml -f docker-compose.dev.yml up",
  34. "docker:test": "docker-compose -f docker-compose.yml -f docker-compose.test.yml up --abort-on-container-exit"
  35. },
  36. "repository": {
  37. "type": "git",
  38. "url": "https://krishbhatt@bitbucket.org/krishbhatt/sg-node-express-rest-api.git"
  39. },
  40. "keywords": [
  41. "express",
  42. "node",
  43. "node.js",
  44. "mongodb",
  45. "mongoose",
  46. "passport",
  47. "es6",
  48. "es7",
  49. "es8",
  50. "es2017",
  51. "mocha",
  52. "istanbul",
  53. "nyc",
  54. "eslint",
  55. "Travis CI",
  56. "coveralls",
  57. "REST",
  58. "API",
  59. "boilerplate",
  60. "generator",
  61. "starter project"
  62. ],
  63. "dependencies": {
  64. "axios": "^0.24.0",
  65. "bcryptjs": "2.4.3",
  66. "bluebird": "^3.7.2",
  67. "body-parser": "^1.19.1",
  68. "compression": "^1.7.4",
  69. "cors": "^2.8.5",
  70. "dotenv": "^16.4.5",
  71. "dotenv-cli": "^7.4.1",
  72. "email-templates": "^11.1.1",
  73. "express": "^4.17.2",
  74. "express-validation": "^4.1.0",
  75. "helmet": "^7.1.0",
  76. "http-status": "^1.5.0",
  77. "joi": "^17.5.0",
  78. "jwt-simple": "^0.5.6",
  79. "method-override": "^3.0.0",
  80. "moment-timezone": "^0.5.45",
  81. "mongoose": "^8.2.1",
  82. "morgan": "^1.10.0",
  83. "nodemailer": "^6.7.2",
  84. "passport": "^0.7.0",
  85. "passport-http-bearer": "^1.0.1",
  86. "passport-jwt": "^4.0.1",
  87. "pm2": "^5.1.2",
  88. "pug": "^3.0.2",
  89. "uuid": "^9.0.1",
  90. "winston": "^3.3.3"
  91. },
  92. "devDependencies": {
  93. "apidoc": "^0.50.2",
  94. "chai": "^4.4.1",
  95. "chai-as-promised": "^7.1.1",
  96. "coveralls": "^3.1.1",
  97. "eslint": "^8.57.0",
  98. "eslint-config-standard": "^17.1.0",
  99. "eslint-plugin-import": "^2.29.1",
  100. "eslint-plugin-n": "^16.6.2",
  101. "eslint-plugin-prettier": "^5.1.3",
  102. "eslint-plugin-promise": "^6.1.1",
  103. "husky": "^9.0.11",
  104. "mocha": "^10.3.0",
  105. "nodemon": "^3.1.0",
  106. "nyc": "^15.1.0",
  107. "opn-cli": "^5.0.0",
  108. "prettier": "^3.2.5",
  109. "sinon": "^17.0.1",
  110. "sinon-chai": "^3.7.0",
  111. "supertest": "^6.1.6"
  112. }
  113. }