package.json 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. "watch:core-common": "lerna run --scope @vendure/common --scope @vendure/core watch --parallel",
  11. "lint": "yarn tslint --fix",
  12. "format": "prettier --write --html-whitespace-sensitivity ignore",
  13. "bootstrap": "lerna bootstrap",
  14. "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\"",
  15. "docs:build": "yarn generate-graphql-docs && yarn generate-typescript-docs && cd docs && yarn webpack --prod && node build.js && hugo",
  16. "docs:deploy": "cd docs && yarn && cd .. && yarn docs:build",
  17. "codegen": "tsc -p scripts/codegen/plugins && ts-node scripts/codegen/generate-graphql-types.ts",
  18. "generate-typescript-docs": "ts-node scripts/docs/generate-typescript-docs.ts",
  19. "generate-graphql-docs": "ts-node scripts/docs/generate-graphql-docs.ts --api=shop && ts-node scripts/docs/generate-graphql-docs.ts --api=admin",
  20. "version": "yarn check-imports && yarn check-angular-versions && yarn build && yarn generate-changelog && git add CHANGELOG.md && git add */version.ts",
  21. "dev-server:start": "cd packages/dev-server && yarn start",
  22. "test": "lerna run test --stream --no-bail",
  23. "e2e": "lerna run e2e --stream --no-bail",
  24. "build": "lerna run build",
  25. "check-imports": "ts-node scripts/check-imports.ts",
  26. "check-angular-versions": "ts-node scripts/check-angular-versions.ts",
  27. "generate-changelog": "ts-node scripts/changelogs/generate-changelog.ts",
  28. "publish-release": "lerna publish -m \"chore: Publish %s\" --no-push",
  29. "publish-local": "lerna version --no-git-tag-version && cd scripts && ./publish-to-verdaccio.sh"
  30. },
  31. "devDependencies": {
  32. "@commitlint/cli": "^12.0.1",
  33. "@commitlint/config-conventional": "^12.0.1",
  34. "@graphql-codegen/add": "2.0.2",
  35. "@graphql-codegen/cli": "1.21.1",
  36. "@graphql-codegen/fragment-matcher": "2.0.1",
  37. "@graphql-codegen/typescript": "1.21.0",
  38. "@graphql-codegen/typescript-compatibility": "2.0.1",
  39. "@graphql-codegen/typescript-operations": "1.17.14",
  40. "@graphql-tools/schema": "^6.2.4",
  41. "@types/graphql": "^14.5.0",
  42. "@types/jest": "^26.0.20",
  43. "@types/klaw-sync": "^6.0.0",
  44. "@types/node": "^14.14.31",
  45. "concurrently": "^6.0.0",
  46. "conventional-changelog-core": "^4.2.2",
  47. "find": "^0.3.0",
  48. "graphql": "15.5.0",
  49. "husky": "^4.3.0",
  50. "jest": "^26.6.3",
  51. "klaw-sync": "^6.0.0",
  52. "lerna": "^4.0.0",
  53. "lint-staged": "^10.5.4",
  54. "prettier": "^2.2.1",
  55. "ts-jest": "^26.5.3",
  56. "ts-node": "^9.1.1",
  57. "tslint": "^6.1.3",
  58. "typescript": "4.1.5"
  59. },
  60. "resolutions": {
  61. "npm-packlist": "1.1.12"
  62. },
  63. "workspaces": {
  64. "packages": [
  65. "packages/*"
  66. ],
  67. "nohoist": [
  68. "**/@types/jasmine",
  69. "**/@types/jasminewd2",
  70. "**/@angular*/**"
  71. ]
  72. },
  73. "commitlint": {
  74. "extends": [
  75. "@commitlint/config-conventional"
  76. ],
  77. "rules": {
  78. "subject-case": [
  79. 2,
  80. "always",
  81. [
  82. "sentence-case"
  83. ]
  84. ]
  85. }
  86. },
  87. "husky": {
  88. "hooks": {
  89. "commit-msg": "commitlint -e $HUSKY_GIT_PARAMS",
  90. "post-commit": "git update-index --again",
  91. "pre-commit": "lint-staged",
  92. "pre-push": "yarn check-imports && yarn check-angular-versions && yarn build && yarn test && yarn e2e"
  93. }
  94. }
  95. }