package.json 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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: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. },
  32. "devDependencies": {
  33. "@commitlint/cli": "^7.6.1",
  34. "@commitlint/config-conventional": "^7.6.0",
  35. "@graphql-codegen/add": "^1.1.3",
  36. "@graphql-codegen/cli": "^1.1.3",
  37. "@graphql-codegen/fragment-matcher": "^1.4.0",
  38. "@graphql-codegen/typescript": "^1.1.3",
  39. "@graphql-codegen/typescript-compatibility": "^1.1.3",
  40. "@graphql-codegen/typescript-operations": "^1.1.3",
  41. "@types/graphql": "^14.0.5",
  42. "@types/klaw-sync": "^6.0.0",
  43. "@types/node": "^10.11.5",
  44. "concurrently": "^4.1.0",
  45. "conventional-changelog-core": "^3.2.2",
  46. "find": "^0.3.0",
  47. "graphql": "^14.1.1",
  48. "graphql-tools": "^4.0.0",
  49. "husky": "^3.0.0",
  50. "jest": "^24.5.0",
  51. "klaw-sync": "^6.0.0",
  52. "lerna": "^3.14.1",
  53. "lint-staged": "^9.2.0",
  54. "prettier": "^1.15.2",
  55. "ts-jest": "^24.0.0",
  56. "ts-node": "^7.0.1",
  57. "tslint": "^5.11.0",
  58. "typescript": "^3.2.4"
  59. },
  60. "workspaces": [
  61. "packages/*"
  62. ],
  63. "commitlint": {
  64. "extends": [
  65. "@commitlint/config-conventional"
  66. ],
  67. "rules": {
  68. "subject-case": [
  69. 2,
  70. "always",
  71. [
  72. "sentence-case"
  73. ]
  74. ]
  75. }
  76. },
  77. "husky": {
  78. "hooks": {
  79. "commit-msg": "commitlint -e $HUSKY_GIT_PARAMS",
  80. "post-commit": "git update-index --again",
  81. "pre-commit": "lint-staged",
  82. "pre-push": "yarn test:all && cd admin-ui && yarn build --prod"
  83. }
  84. }
  85. }