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.

100 lines
3.0 KiB

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.19.0",
  64. "bcryptjs": "2.4.3",
  65. "bluebird": "^3.5.0",
  66. "body-parser": "^1.17.0",
  67. "compression": "^1.6.2",
  68. "cors": "^2.8.3",
  69. "cross-env": "^6.0.3",
  70. "dotenv-safe": "^6.0.0",
  71. "email-templates": "^6.0.3",
  72. "express": "^4.15.2",
  73. "express-validation": "^1.0.2",
  74. "nodemailer": "^6.3.1",
  75. "passport": "^0.4.0",
  76. "passport-http-bearer": "^1.0.1",
  77. "passport-jwt": "4.0.0",
  78. "pm2": "^4.2.0",
  79. "pug": "^2.0.4",
  80. "uuid": "^3.1.0",
  81. "winston": "^3.1.0"
  82. },
  83. "devDependencies": {
  84. "apidoc": "^0.17.5",
  85. "chai": "^4.1.0",
  86. "chai-as-promised": "^7.1.1",
  87. "coveralls": "^3.0.0",
  88. "eslint": "^6.4.0",
  89. "eslint-config-airbnb-base": "^12.0.1",
  90. "eslint-plugin-import": "^2.2.0",
  91. "husky": "^3.0.7",
  92. "mocha": "^6.2.2",
  93. "nodemon": "^2.0.1",
  94. "nyc": "^14.1.1",
  95. "opn-cli": "^5.0.0",
  96. "sinon": "^7.5.0",
  97. "sinon-chai": "^3.0.0",
  98. "supertest": "^4.0.2"
  99. }
  100. }