package.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. {
  2. "name": "vendure",
  3. "version": "0.0.0",
  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:core": "cd packages/core && yarn lint --fix",
  16. "lint:admin-ui": "cd admin-ui && yarn lint --fix",
  17. "precommit": "lint-staged",
  18. "postcommit": "git update-index --again",
  19. "commitmsg": "commitlint -e $GIT_PARAMS",
  20. "prepush": "yarn test:all && cd admin-ui && yarn build --prod",
  21. "version": "yarn build && yarn generate-changelog && git add CHANGELOG.md",
  22. "dev-server:start": "cd packages/dev-server && yarn start",
  23. "dev-server:populate": "cd packages/dev-server && yarn populate",
  24. "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",
  25. "test:common": "jest --config packages/common/jest.config.js",
  26. "test:core": "jest --config packages/core/jest.config.js",
  27. "test:email-plugin": "jest --config packages/email-plugin/jest.config.js --maxWorkers=1",
  28. "test:elasticsearch-plugin": "jest --config packages/elasticsearch-plugin/jest.config.js",
  29. "test:e2e": "jest --config packages/core/e2e/config/jest-e2e.json --runInBand",
  30. "test:admin-ui": "cd admin-ui && yarn test --watch=false --browsers=ChromeHeadlessCI --progress=false",
  31. "build": "lerna run build",
  32. "generate-changelog": "ts-node scripts/changelogs/generate-changelog.ts",
  33. "publish-release": "lerna publish -m \"chore: Publish %s\" --no-push"
  34. },
  35. "devDependencies": {
  36. "@commitlint/cli": "^7.6.1",
  37. "@commitlint/config-conventional": "^7.6.0",
  38. "@graphql-codegen/add": "^1.1.3",
  39. "@graphql-codegen/cli": "^1.1.3",
  40. "@graphql-codegen/typescript": "^1.1.3",
  41. "@graphql-codegen/typescript-compatibility": "^1.1.3",
  42. "@graphql-codegen/typescript-operations": "^1.1.3",
  43. "@types/graphql": "^14.0.5",
  44. "@types/klaw-sync": "^6.0.0",
  45. "@types/node": "^10.11.5",
  46. "concurrently": "^4.1.0",
  47. "conventional-changelog-core": "^3.2.2",
  48. "graphql": "^14.1.1",
  49. "graphql-tools": "^4.0.0",
  50. "husky": "^2.3.0",
  51. "jest": "^24.5.0",
  52. "klaw-sync": "^6.0.0",
  53. "lerna": "^3.14.1",
  54. "lint-staged": "^7.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. }