package.json 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. {
  2. "name": "vendure",
  3. "version": "10.2.2",
  4. "private": true,
  5. "engines": {
  6. "node": ">= 10.12.0 < 11 || >= 12.00"
  7. },
  8. "scripts": {
  9. "watch": "lerna run watch --parallel",
  10. "lint": "yarn tslint --fix",
  11. "format": "prettier --write --html-whitespace-sensitivity ignore",
  12. "bootstrap": "lerna bootstrap",
  13. "docs:watch": "concurrently --restart-tries 5 -n docgen,hugo,webpack -c green,blue,cyan \"yarn generate-graphql-docs && yarn generate-typescript-docs -w\" \"cd docs && hugo server\" \"cd docs && yarn webpack -w\"",
  14. "docs:build": "yarn generate-graphql-docs && yarn generate-typescript-docs && cd docs && yarn webpack --prod && node build.js && hugo",
  15. "docs:deploy": "cd docs && yarn && cd .. && yarn docs:build",
  16. "codegen": "tsc -p scripts/codegen/plugins && ts-node scripts/codegen/generate-graphql-types.ts",
  17. "generate-typescript-docs": "ts-node scripts/docs/generate-typescript-docs.ts",
  18. "generate-graphql-docs": "ts-node scripts/docs/generate-graphql-docs.ts --api=shop && ts-node scripts/docs/generate-graphql-docs.ts --api=admin",
  19. "version": "yarn check-imports && yarn build && yarn generate-changelog && git add CHANGELOG.md && git add */version.ts",
  20. "dev-server:start": "cd packages/dev-server && yarn start",
  21. "test": "lerna run test --stream --no-bail",
  22. "e2e": "lerna run e2e --stream --no-bail",
  23. "build": "lerna run build",
  24. "check-imports": "ts-node scripts/check-imports.ts",
  25. "generate-changelog": "ts-node scripts/changelogs/generate-changelog.ts",
  26. "publish-release": "lerna publish -m \"chore: Publish %s\" --no-push",
  27. "publish-local": "lerna version --no-git-tag-version && cd scripts && ./publish-to-verdaccio.sh"
  28. },
  29. "devDependencies": {
  30. "@commitlint/cli": "^11.0.0",
  31. "@commitlint/config-conventional": "^11.0.0",
  32. "@graphql-codegen/add": "2.0.1",
  33. "@graphql-codegen/cli": "1.17.8",
  34. "@graphql-codegen/fragment-matcher": "1.17.8",
  35. "@graphql-codegen/typescript": "1.17.9",
  36. "@graphql-codegen/typescript-compatibility": "2.0.0",
  37. "@graphql-codegen/typescript-operations": "1.17.8",
  38. "@graphql-tools/schema": "^6.2.4",
  39. "@types/graphql": "^14.0.5",
  40. "@types/jest": "^26.0.14",
  41. "@types/klaw-sync": "^6.0.0",
  42. "@types/node": "^12.12.0",
  43. "concurrently": "^5.3.0",
  44. "conventional-changelog-core": "^4.2.0",
  45. "find": "^0.3.0",
  46. "graphql": "15.3.0",
  47. "husky": "^4.3.0",
  48. "jest": "^26.5.2",
  49. "klaw-sync": "^6.0.0",
  50. "lerna": "^3.22.1",
  51. "lint-staged": "^10.4.0",
  52. "prettier": "^2.1.2",
  53. "ts-jest": "^26.4.1",
  54. "ts-node": "^9.0.0",
  55. "tslint": "^6.1.3",
  56. "typescript": "4.0.3"
  57. },
  58. "resolutions": {
  59. "npm-packlist": "1.1.12"
  60. },
  61. "workspaces": {
  62. "packages": [
  63. "packages/*"
  64. ],
  65. "nohoist": [
  66. "**/@types/jasmine",
  67. "**/@types/jasminewd2",
  68. "**/@angular*/**"
  69. ]
  70. },
  71. "commitlint": {
  72. "extends": [
  73. "@commitlint/config-conventional"
  74. ],
  75. "rules": {
  76. "subject-case": [
  77. 2,
  78. "always",
  79. [
  80. "sentence-case"
  81. ]
  82. ]
  83. }
  84. },
  85. "husky": {
  86. "hooks": {
  87. "commit-msg": "commitlint -e $HUSKY_GIT_PARAMS",
  88. "post-commit": "git update-index --again",
  89. "pre-commit": "lint-staged",
  90. "pre-push": "yarn check-imports && yarn build && yarn test && yarn e2e"
  91. }
  92. }
  93. }