package.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {
  2. "name": "@antv/scale",
  3. "version": "0.3.18",
  4. "description": "The scale module for G2",
  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/scale.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 --coverage",
  33. "test": "jest",
  34. "test-live": "DEBUG_MODE=1 jest --watch",
  35. "ci": "run-s lint build coverage",
  36. "prepublishOnly": "npm-run-all --parallel lint test clean lib dist",
  37. "dist": "webpack --config webpack.config.js --mode production"
  38. },
  39. "husky": {
  40. "hooks": {
  41. "pre-commit": "run-s lint-stage build test"
  42. }
  43. },
  44. "devDependencies": {
  45. "@types/jest": "^25.2.1",
  46. "husky": "^4.2.5",
  47. "jest": "^24.9.0",
  48. "jest-electron": "^0.1.6",
  49. "lint-staged": "^10.2.2",
  50. "npm-run-all": "^4.1.5",
  51. "prettier": "^2.0.5",
  52. "rimraf": "^3.0.0",
  53. "ts-jest": "^24.1.0",
  54. "tslint": "^6.1.2",
  55. "ts-loader": "^7.0.4",
  56. "babel-loader": "^8.0.4",
  57. "tslint-config-prettier": "^1.18.0",
  58. "typescript": "^3.5.3",
  59. "webpack": "^4.26.1",
  60. "webpack-cli": "^3.1.2"
  61. },
  62. "dependencies": {
  63. "@antv/util": "~2.0.3",
  64. "fecha": "~4.2.0",
  65. "tslib": "^2.0.0"
  66. },
  67. "lint-staged": {
  68. "*.{js,css,json,md}": [
  69. "prettier --write",
  70. "git add"
  71. ],
  72. "*.{ts}": [
  73. "tslint -c tslint.json --fix",
  74. "prettier --write",
  75. "git add"
  76. ]
  77. },
  78. "jest": {
  79. "runner": "jest-electron/runner",
  80. "testEnvironment": "jest-electron/environment",
  81. "preset": "ts-jest",
  82. "collectCoverage": false,
  83. "collectCoverageFrom": [
  84. "src/**/*.{ts,js}",
  85. "!**/node_modules/**",
  86. "!**/vendor/**"
  87. ],
  88. "testRegex": "/tests/.*spec\\.ts?$"
  89. }
  90. }