package.json 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. {
  2. "name": "vendure",
  3. "version": "10.2.2",
  4. "private": true,
  5. "scripts": {
  6. "core:watch": "concurrently -n tsc,gulp,common \"cd packages/core && yarn tsc:watch\" \"cd packages/core && yarn gulp:watch\" \"cd packages/common && yarn watch\"",
  7. "bootstrap": "lerna bootstrap && cd admin-ui && yarn",
  8. "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\"",
  9. "docs:build": "yarn generate-graphql-docs && yarn generate-typescript-docs && cd docs && yarn webpack --prod && node build.js && hugo",
  10. "docs:deploy": "cd docs && yarn && cd .. && yarn docs:build",
  11. "codegen": "ts-node scripts/codegen/generate-graphql-types.ts",
  12. "generate-typescript-docs": "ts-node scripts/docs/generate-typescript-docs.ts",
  13. "generate-graphql-docs": "ts-node scripts/docs/generate-graphql-docs.ts --api=shop && ts-node scripts/docs/generate-graphql-docs.ts --api=admin",
  14. "format": "prettier --write --html-whitespace-sensitivity ignore",
  15. "lint:packages": "yarn tslint --fix",
  16. "lint:admin-ui": "cd admin-ui && yarn lint --fix",
  17. "version": "yarn check-imports && yarn build && yarn generate-changelog && git add CHANGELOG.md",
  18. "dev-server:start": "cd packages/dev-server && yarn start",
  19. "dev-server:populate": "cd packages/dev-server && yarn populate",
  20. "test:all": "cd admin-ui && yarn test --watch=false --browsers=ChromeHeadlessCI --progress=false && cd ../ && yarn test:common && yarn test:core && yarn test:email-plugin && yarn test:elasticsearch-plugin && yarn test:e2e",
  21. "test:common": "jest --config packages/common/jest.config.js",
  22. "test:core": "jest --config packages/core/jest.config.js",
  23. "test:email-plugin": "jest --config packages/email-plugin/jest.config.js --maxWorkers=1",
  24. "test:elasticsearch-plugin": "jest --config packages/elasticsearch-plugin/jest.config.js",
  25. "test:e2e": "jest --config packages/core/e2e/config/jest-e2e.json --runInBand",
  26. "test:admin-ui": "cd admin-ui && yarn test --watch=false --browsers=ChromeHeadlessCI --progress=false",
  27. "build": "lerna run build",
  28. "check-imports": "ts-node scripts/check-imports.ts",
  29. "generate-changelog": "ts-node scripts/changelogs/generate-changelog.ts",
  30. "publish-release": "lerna publish -m \"chore: Publish %s\" --no-push",
  31. "publish-local": "lerna version --no-git-tag-version && cd scripts && ./publish-to-verdaccio.sh"
  32. },
  33. "devDependencies": {
  34. "@commitlint/cli": "^7.6.1",
  35. "@commitlint/config-conventional": "^7.6.0",
  36. "@graphql-codegen/add": "^1.1.3",
  37. "@graphql-codegen/cli": "^1.1.3",
  38. "@graphql-codegen/fragment-matcher": "^1.4.0",
  39. "@graphql-codegen/typescript": "^1.1.3",
  40. "@graphql-codegen/typescript-compatibility": "^1.1.3",
  41. "@graphql-codegen/typescript-operations": "^1.1.3",
  42. "@types/graphql": "^14.0.5",
  43. "@types/klaw-sync": "^6.0.0",
  44. "@types/node": "^10.11.5",
  45. "concurrently": "^4.1.0",
  46. "conventional-changelog-core": "^3.2.2",
  47. "find": "^0.3.0",
  48. "graphql": "^14.1.1",
  49. "graphql-tools": "^4.0.0",
  50. "husky": "^3.0.0",
  51. "jest": "^24.5.0",
  52. "klaw-sync": "^6.0.0",
  53. "lerna": "^3.14.1",
  54. "lint-staged": "^9.2.0",
  55. "prettier": "^1.15.2",
  56. "ts-jest": "^24.0.0",
  57. "ts-node": "^7.0.1",
  58. "tslint": "^5.11.0",
  59. "typescript": "^3.2.4"
  60. },
  61. "workspaces": [
  62. "packages/*"
  63. ],
  64. "commitlint": {
  65. "extends": [
  66. "@commitlint/config-conventional"
  67. ],
  68. "rules": {
  69. "subject-case": [
  70. 2,
  71. "always",
  72. [
  73. "sentence-case"
  74. ]
  75. ]
  76. }
  77. },
  78. "husky": {
  79. "hooks": {
  80. "commit-msg": "commitlint -e $HUSKY_GIT_PARAMS",
  81. "post-commit": "git update-index --again",
  82. "pre-commit": "lint-staged",
  83. "pre-push": "yarn test:all && cd admin-ui && yarn build --prod"
  84. }
  85. }
  86. }