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.

107 lines
3.2 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
  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": "cross-env NODE_ENV=production pm2 start ./src/index.js",
  15. "dev": "nodemon ./src/index.js",
  16. "lint": "eslint ./src/ --ignore-path .gitignore --ignore-pattern internals/scripts",
  17. "lint:fix": "yarn lint --fix",
  18. "lint:watch": "yarn lint --watch",
  19. "test": "cross-env NODE_ENV=test nyc --reporter=html --reporter=text mocha --timeout 20000 --exit --recursive src/api/tests",
  20. "test:unit": "cross-env NODE_ENV=test mocha src/api/tests/unit",
  21. "test:integration": "cross-env NODE_ENV=test mocha --timeout 20000 --exit src/api/tests/integration",
  22. "test:watch": "cross-env NODE_ENV=test mocha --watch src/api/tests/unit",
  23. "coverage": "nyc report --reporter=text-lcov | coveralls",
  24. "postcoverage": "open-cli coverage/lcov-report/index.html",
  25. "validate": "yarn lint && yarn test",
  26. "postpublish": "git push --tags",
  27. "deploy": "sh ./deploy.sh",
  28. "docs": "apidoc -i src -o docs",
  29. "postdocs": "open-cli docs/index.html",
  30. "docker:start": "cross-env NODE_ENV=production pm2-docker start ./src/index.js",
  31. "docker:prod": "docker-compose -f docker-compose.yml -f docker-compose.prod.yml up",
  32. "docker:dev": "docker-compose -f docker-compose.yml -f docker-compose.dev.yml up",
  33. "docker:test": "docker-compose -f docker-compose.yml -f docker-compose.test.yml up --abort-on-container-exit"
  34. },
  35. "repository": {
  36. "type": "git",
  37. "url": "https://krishbhatt@bitbucket.org/krishbhatt/sg-node-express-rest-api.git"
  38. },
  39. "keywords": [
  40. "express",
  41. "node",
  42. "node.js",
  43. "mongodb",
  44. "mongoose",
  45. "passport",
  46. "es6",
  47. "es7",
  48. "es8",
  49. "es2017",
  50. "mocha",
  51. "istanbul",
  52. "nyc",
  53. "eslint",
  54. "Travis CI",
  55. "coveralls",
  56. "REST",
  57. "API",
  58. "boilerplate",
  59. "generator",
  60. "starter project"
  61. ],
  62. "dependencies": {
  63. "axios": "^0.24.0",
  64. "bcryptjs": "2.4.3",
  65. "bluebird": "^3.7.2",
  66. "body-parser": "^1.19.1",
  67. "compression": "^1.7.4",
  68. "cors": "^2.8.5",
  69. "cross-env": "^7.0.3",
  70. "dotenv-safe": "^8.2.0",
  71. "email-templates": "^8.0.8",
  72. "express": "^4.17.2",
  73. "express-validation": "^3.0.8",
  74. "helmet": "^4.6.0",
  75. "http-status": "^1.5.0",
  76. "joi": "^17.5.0",
  77. "jwt-simple": "^0.5.6",
  78. "method-override": "^3.0.0",
  79. "mongoose": "^6.1.2",
  80. "morgan": "^1.10.0",
  81. "nodemailer": "^6.7.2",
  82. "passport": "^0.5.2",
  83. "passport-http-bearer": "^1.0.1",
  84. "passport-jwt": "4.0.0",
  85. "pm2": "^5.1.2",
  86. "pug": "^3.0.2",
  87. "uuid": "^8.3.2",
  88. "winston": "^3.3.3"
  89. },
  90. "devDependencies": {
  91. "apidoc": "^0.50.2",
  92. "chai": "^4.3.4",
  93. "chai-as-promised": "^7.1.1",
  94. "coveralls": "^3.1.1",
  95. "eslint": "^8.5.0",
  96. "eslint-config-airbnb-base": "^15.0.0",
  97. "eslint-plugin-import": "^2.25.3",
  98. "husky": "^7.0.4",
  99. "mocha": "^9.1.3",
  100. "nodemon": "^2.0.15",
  101. "nyc": "^15.1.0",
  102. "opn-cli": "^5.0.0",
  103. "sinon": "^12.0.1",
  104. "sinon-chai": "^3.7.0",
  105. "supertest": "^6.1.6"
  106. }
  107. }