package.json 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {
  2. "name": "@antv/component",
  3. "version": "0.8.35",
  4. "description": "The component module for antv",
  5. "author": "https://github.com/orgs/antvis/people",
  6. "license": "MIT",
  7. "main": "lib/index.js",
  8. "module": "esm/index.js",
  9. "types": "lib/index.d.ts",
  10. "files": [
  11. "src",
  12. "lib",
  13. "esm",
  14. "README.md",
  15. "LICENSE"
  16. ],
  17. "repository": {
  18. "type": "git",
  19. "url": "git@github.com:antvis/component.git"
  20. },
  21. "scripts": {
  22. "build": "run-s clean lib",
  23. "clean": "rimraf lib esm",
  24. "lib": "run-p lib:*",
  25. "lib:cjs": "tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib",
  26. "lib:esm": "tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm",
  27. "lint-stage": "lint-staged",
  28. "lint": "tslint -c tslint.json src/**/* tests/**/*",
  29. "lint-fix": "run-s lint-fix:*",
  30. "lint-fix:prettier": "prettier --write 'src/**/*.ts'",
  31. "lint-fix:tslint": "tslint -c tslint.json --fix 'src/**/*.ts' 'tests/**/*'",
  32. "coverage": "jest -w 16 --coverage",
  33. "test": "jest -w 16",
  34. "test-live": "DEBUG_MODE=1 jest --watch tests",
  35. "ci": "run-s build test coverage",
  36. "changelog": "generate-changelog",
  37. "prepublishOnly": "npm-run-all --parallel test build"
  38. },
  39. "husky": {
  40. "hooks": {
  41. "pre-commit": "run-s lint-stage build test"
  42. }
  43. },
  44. "devDependencies": {
  45. "@antv/g-canvas": "0.5.6",
  46. "@types/jest": "^24.0.18",
  47. "conventional-changelog-cli": "^2.1.1",
  48. "generate-changelog": "^1.8.0",
  49. "husky": "^3.0.4",
  50. "jest": "^26.0.1",
  51. "jest-electron": "^0.1.7",
  52. "lint-staged": "^9.2.3",
  53. "npm-run-all": "^4.1.5",
  54. "prettier": "^1.18.2",
  55. "rimraf": "^3.0.0",
  56. "ts-jest": "^26.0.0",
  57. "tslint": "^5.18.0",
  58. "tslint-config-prettier": "^1.18.0",
  59. "typescript": "^3.5.3"
  60. },
  61. "dependencies": {
  62. "@antv/color-util": "^2.0.3",
  63. "@antv/dom-util": "~2.0.1",
  64. "@antv/g-base": "^0.5.9",
  65. "@antv/matrix-util": "^3.1.0-beta.1",
  66. "@antv/path-util": "~2.0.7",
  67. "@antv/scale": "~0.3.1",
  68. "@antv/util": "~2.0.0",
  69. "fecha": "~4.2.0",
  70. "tslib": "^2.0.3"
  71. },
  72. "lint-staged": {
  73. "*.{js,css,json,md}": [
  74. "prettier --write",
  75. "git add"
  76. ],
  77. "*.{ts}": [
  78. "tslint -c tslint.json --fix",
  79. "prettier --write",
  80. "git add"
  81. ]
  82. }
  83. }