package.json 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. {
  2. "name": "@dmicros/plugins-monorepo",
  3. "version": "0.0.0-master",
  4. "description": "Superset UI Plugins",
  5. "private": true,
  6. "scripts": {
  7. "build": "yarn babel && yarn type && yarn build:assets",
  8. "babel": "yarn babel:cjs && yarn babel:esm",
  9. "babel:cjs": "nimbus babel --clean --workspaces=\"@superset-ui/!(plugins-demo)\"",
  10. "babel:esm": "nimbus babel --clean --workspaces=\"@superset-ui/!(plugins-demo)\" --esm",
  11. "build:assets": "node ./buildAssets.js",
  12. "commit": "superset-commit",
  13. "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
  14. "type": "nimbus typescript --build --reference-workspaces",
  15. "type:dts": "cross-env NODE_ENV=production beemo typescript --workspaces=\"@dmicros/((preset|plugin)-*)\" --emitDeclarationOnly",
  16. "jest": "NODE_ENV=test nimbus jest --coverage --verbose",
  17. "lint": "nimbus eslint && nimbus prettier --check",
  18. "lint:fix": "nimbus eslint --fix",
  19. "prettier": "nimbus prettier",
  20. "postrelease": "lerna run deploy-demo",
  21. "prepare-release": "git checkout master && git pull --rebase origin master && lerna bootstrap && yarn run test",
  22. "prerelease": "yarn run build",
  23. "pretest": "yarn run lint",
  24. "release": "yarn run prepare-release && lerna publish && yarn run postrelease",
  25. "test": "yarn type && yarn jest",
  26. "test:watch": "yarn lint:fix && yarn jest --watch"
  27. },
  28. "repository": "https://github.com/huandzh/superset-ui-plugins-echarts-basic.git",
  29. "keywords": [
  30. "apache",
  31. "superset",
  32. "data",
  33. "analytics",
  34. "analysis",
  35. "visualization",
  36. "react",
  37. "d3",
  38. "data-ui",
  39. "vx"
  40. ],
  41. "license": "Apache-2.0",
  42. "devDependencies": {
  43. "@airbnb/config-babel": "^2.1.3",
  44. "@airbnb/config-eslint": "^2.1.3",
  45. "@airbnb/config-jest": "^2.1.3",
  46. "@airbnb/config-prettier": "^2.0.4",
  47. "@airbnb/config-typescript": "^2.1.2",
  48. "@airbnb/nimbus": "^2.1.3",
  49. "@superset-ui/build-config": "^0.1.0",
  50. "@superset-ui/commit-config": "^0.0.9",
  51. "@superset-ui/chart": "^0.12.1",
  52. "@superset-ui/chart-composition": "^0.12.1",
  53. "@superset-ui/color": "^0.12.1",
  54. "@superset-ui/connection": "^0.12.0",
  55. "@superset-ui/core": "^0.12.0",
  56. "@superset-ui/dimension": "^0.12.0",
  57. "@superset-ui/number-format": "^0.12.1",
  58. "@superset-ui/query": "^0.12.2",
  59. "@superset-ui/time-format": "^0.12.1",
  60. "@superset-ui/translation": "^0.12.0",
  61. "@types/react": "^16.8.8",
  62. "core-js": "^3.0.1",
  63. "csstype": "^2.6.3",
  64. "fast-glob": "^3.0.1",
  65. "fs-extra": "^8.0.1",
  66. "husky": "^3.0.3",
  67. "lerna": "^3.2.1",
  68. "lint-staged": "^9.2.1",
  69. "react": "^16.6.0",
  70. "react-dom": "^16.6.0",
  71. "cross-env": "^5.2.1",
  72. "yarn": "^1.9.4"
  73. },
  74. "engines": {
  75. "node": ">=8.10.0"
  76. },
  77. "nimbus": {
  78. "drivers": [
  79. "babel",
  80. "eslint",
  81. "jest",
  82. "prettier",
  83. "typescript"
  84. ],
  85. "settings": {
  86. "library": true,
  87. "react": true,
  88. "next": true,
  89. "env": {
  90. "targets": false
  91. }
  92. },
  93. "jest": {
  94. "timers": "real",
  95. "setupFilesAfterEnv": [
  96. "@airbnb/config-jest/enzyme"
  97. ],
  98. "coverageThreshold": {
  99. "global": {
  100. "branches": 1,
  101. "functions": 1,
  102. "lines": 1,
  103. "statements": 1
  104. }
  105. }
  106. },
  107. "eslint": {
  108. "overrides": [
  109. {
  110. "files": "*.test.{js,jsx,ts,tsx}",
  111. "rules": {
  112. "import/no-extraneous-dependencies": "off",
  113. "promise/param-names": "off",
  114. "import/extensions": "off",
  115. "jest/require-to-throw-message": "off",
  116. "jest/no-test-return-statement": "off",
  117. "jest/no-expect-resolves": "off",
  118. "jest/no-test-callback": "off"
  119. }
  120. },
  121. {
  122. "files": "*.{js,jsx,ts,tsx}",
  123. "rules": {
  124. "react/jsx-no-literals": "off",
  125. "prefer-exponentiation-operator": "off",
  126. "@typescript-eslint/no-explicit-any": [
  127. "warn",
  128. {
  129. "fixToUnknown": false
  130. }
  131. ]
  132. }
  133. }
  134. ]
  135. },
  136. "typescript": {
  137. "compilerOptions": {
  138. "emitDeclarationOnly": true
  139. }
  140. }
  141. },
  142. "beemo": {
  143. "module": "@superset-ui/build-config",
  144. "drivers": [
  145. "babel",
  146. "eslint",
  147. {
  148. "driver": "jest",
  149. "env": {
  150. "NODE_ENV": "test"
  151. }
  152. },
  153. "prettier",
  154. "typescript"
  155. ],
  156. "typescript": {
  157. "compilerOptions": {
  158. "typeRoots": [
  159. "../../node_modules/vega-lite/typings"
  160. ]
  161. }
  162. }
  163. },
  164. "workspaces": [
  165. "./packages/*"
  166. ],
  167. "husky": {
  168. "hooks": {
  169. "pre-commit": "lint-staged",
  170. "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
  171. }
  172. },
  173. "lint-staged": {
  174. "./packages/*/{src,test,storybook}/**/*.{js,jsx,ts,tsx,json,md}": [
  175. "yarn run prettier --write",
  176. "git add"
  177. ]
  178. }
  179. }