package.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. {
  2. "name": "semi",
  3. "version": "0.0.1",
  4. "description": "Semi monorepo main project",
  5. "author": "DouyinFe",
  6. "workspaces": [
  7. "packages/**"
  8. ],
  9. "private": true,
  10. "scripts": {
  11. "install:codesandbox": "npm i lerna@^6 -g && npm run bootstrap",
  12. "bootstrap": "lerna bootstrap -- --legacy-peer-deps",
  13. "docsite": "npm run develop",
  14. "pre-develop": "npm run scripts:changelog && node ./scripts/designToken.js ./static/designToken.json",
  15. "develop": "npm run pre-develop && gatsby clean && lerna run build:lib --scope @douyinfe/semi-json-viewer-core --scope @douyinfe/semi-webpack-plugin --scope eslint-plugin-semi-design && gatsby develop -H 0.0.0.0 --port=3666 --verbose",
  16. "scripts:changelog": "node scripts/changelog.js",
  17. "start": "npm run story",
  18. "pre-story": "lerna exec --scope=@douyinfe/semi-ui --scope=@douyinfe/semi-foundation -- rimraf ./lib && lerna run build:lib --scope @douyinfe/semi-json-viewer-core --scope @douyinfe/semi-webpack-plugin --scope eslint-plugin-semi-design",
  19. "story": "npm run pre-story && sb dev -c ./.storybook/js/ -p 6006",
  20. "story:ts": "npm run pre-story && sb dev -c ./.storybook/ts/ -p 6007",
  21. "story:ani": "npm run pre-story && sb dev -c ./.storybook/animation/react -p 6008",
  22. "lint": "npm run lint:script && npm run lint:style",
  23. "lint:script": "eslint packages src --ext '.js,.jsx,.ts,.tsx'",
  24. "lint:script-fix": "eslint packages src --ext '.js,.jsx,.ts,.tsx' --fix",
  25. "lint:style": "stylelint '**/*.{scss,sass}'",
  26. "lint:style-fix": "stylelint '**/*.{scss,sass}' --fix",
  27. "test": "cross-env NODE_ENV=test ./node_modules/.bin/jest --silent",
  28. "test:unit": "cross-env NODE_ENV=test type=unit ./node_modules/.bin/jest --silent --notify",
  29. "test:story": "cross-env NODE_ENV=test type=story ./node_modules/.bin/jest --silent --notify --maxWorkers=4",
  30. "test:coverage": "cross-env TZ=Asia/Shanghai NODE_ENV=test type=unit ./node_modules/.bin/jest --silent --coverage --notify",
  31. "test:storyUpdate": "cross-env NODE_ENV=test type=story ./node_modules/.bin/jest --silent -u --notify --maxWorkers=4",
  32. "test:cy": "npx wait-on http://127.0.0.1:6006 && ./node_modules/.bin/cypress open",
  33. "build:lib": "lerna run build:lib",
  34. "build:js": "lerna run build:js",
  35. "build:css": "lerna run build:css",
  36. "build-storybook": "sb build -c ./.storybook/js/ -o ./storybook && cp -r storybook storybook-static",
  37. "build-storybook-static": "sb build -c ./.storybook/js/",
  38. "build:gatsbydoc": "lerna run build:lib --scope @douyinfe/semi-json-viewer-core --scope @douyinfe/semi-webpack-plugin --scope eslint-plugin-semi-design && cross-env NODE_ENV=production node --max_old_space_size=16384 ./node_modules/gatsby/cli.js build --prefix-paths --verbose && rimraf build && mv public build",
  39. "build:icon": "lerna run build:icon --scope='@douyinfe/semi-{icons,illustrations}'",
  40. "cypress:coverage": "npx wait-on http://127.0.0.1:6006 && ./node_modules/.bin/cypress run",
  41. "postcypress:coverage": "yarn coverage:merge",
  42. "posttest:coverage": "yarn coverage:merge",
  43. "coverage:merge": "npx istanbul-combine -d test/merged -p detail -r lcov -r json cypress/coverage/coverage-final.json test/coverage/coverage-final.json"
  44. },
  45. "engines": {
  46. "node": ">= 20.0.0"
  47. },
  48. "dependencies": {
  49. "@dnd-kit/modifiers": "^7.0.0",
  50. "@douyinfe/semi-site-banner": "^0.1.5",
  51. "@douyinfe/semi-site-doc-style": "0.0.5",
  52. "@douyinfe/semi-site-header": "^0.0.29",
  53. "@douyinfe/semi-site-markdown-blocks": "^0.0.18",
  54. "@mdx-js/mdx": "1.6.22",
  55. "@mdx-js/react": "^1.6.22",
  56. "@storybook/react-webpack5": "^7.0.7",
  57. "@svgr/core": "^5.5.0",
  58. "@tiptap/core": "^3.5.0",
  59. "@tiptap/extension-mention": "^3.5.0",
  60. "@tiptap/react": "^3.5.0",
  61. "@tiptap/suggestion": "^3.5.0",
  62. "@floating-ui/dom": "^1.7.4",
  63. "@types/react-window": "^1.8.5",
  64. "@visactor/react-vchart": "^1.10.4",
  65. "@visactor/vchart-semi-theme": "^1.10.4",
  66. "aos": "^2.3.4",
  67. "camelcase": "^6.2.0",
  68. "chalk": "^5.3.0",
  69. "chroma-js": "^2.1.2",
  70. "classnames": "^2.3.1",
  71. "copy-text-to-clipboard": "^2.2.0",
  72. "cross-env": "^5.2.1",
  73. "css": "^2.2.4",
  74. "cypress-real-events": "^1.8.1",
  75. "date-fns": "^2.23.0",
  76. "debug": "^4.3.2",
  77. "execa": "5",
  78. "fast-xml-parser": "^4.2.7",
  79. "gatsby": "^2.32.13",
  80. "gatsby-plugin-i18n": "^1.0.1",
  81. "gatsby-plugin-mdx": "^1.10.1",
  82. "gatsby-plugin-react-helmet": "^3.10.0",
  83. "gatsby-plugin-remove-serviceworker": "^1.0.0",
  84. "gatsby-plugin-svgr": "2.1.0",
  85. "gatsby-source-filesystem": "^2.11.1",
  86. "grapheme-splitter": "^1.0.4",
  87. "immutability-helper": "^3.1.1",
  88. "jest-canvas-mock": "^2.5.2",
  89. "lodash-es": "^4.17.21",
  90. "memoize-one": "^5.2.1",
  91. "normalize.css": "^8.0.1",
  92. "prop-types": "^15.7.2",
  93. "qs": "^6.10.1",
  94. "re-resizable": "^6.9.0",
  95. "react": "^16.14.0",
  96. "react-clipboard.js": "^2.0.16",
  97. "react-dnd": "^9.5.1",
  98. "react-dnd-html5-backend": "^9.5.1",
  99. "react-dom": "^16.14.0",
  100. "react-helmet": "^5.2.1",
  101. "react-infinite-scroller": "^1.2.4",
  102. "react-inlinesvg": "^1.2.0",
  103. "react-intl": "^3.12.1",
  104. "react-lazyload": "^3.2.0",
  105. "react-resizable": "^3.0.5",
  106. "react-router-dom": "^6.22.2",
  107. "react-scroll-parallax": "^2.4.0",
  108. "react-sortable-hoc": "^2.0.0",
  109. "react-virtualized": "^9.22.3",
  110. "reset-css": "^5.0.1",
  111. "sass": "1.54.9",
  112. "typeface-inconsolata": "0.0.72",
  113. "typeface-inter": "^3.18.1",
  114. "unist-util-remove": "^1.0.3",
  115. "unist-util-visit": "^2.0.3",
  116. "wait-on": "^6.0.1",
  117. "wcag-color": "^1.1.1"
  118. },
  119. "devDependencies": {
  120. "@actions/core": "^1.6.0",
  121. "@actions/github": "^5.0.0",
  122. "@babel/cli": "^7.14.8",
  123. "@babel/core": "^7.15.0",
  124. "@babel/eslint-parser": "^7.15.0",
  125. "@babel/eslint-plugin": "^7.14.5",
  126. "@babel/plugin-proposal-class-properties": "^7.14.5",
  127. "@babel/plugin-proposal-decorators": "^7.14.5",
  128. "@babel/plugin-proposal-object-rest-spread": "^7.14.7",
  129. "@babel/plugin-transform-runtime": "^7.15.8",
  130. "@babel/preset-env": "^7.21.4",
  131. "@babel/preset-react": "^7.18.6",
  132. "@babel/preset-typescript": "7.15.0",
  133. "@babel/runtime": "^7.15.3",
  134. "@babel/types": "^7.21.5",
  135. "@commitlint/cli": "^9.1.2",
  136. "@commitlint/config-conventional": "^7.6.0",
  137. "@cypress/code-coverage": "^3.9.12",
  138. "@octokit/rest": "^18.12.0",
  139. "@shopify/jest-dom-mocks": "^2.11.7",
  140. "@storybook/addon-a11y": "^7.0.7",
  141. "@storybook/addon-actions": "^7.0.7",
  142. "@storybook/addon-knobs": "^7.0.2",
  143. "@storybook/addon-toolbars": "^7.0.7",
  144. "@storybook/cli": "^7.0.7",
  145. "@storybook/react": "^7.0.7",
  146. "@svgr/webpack": "^5.5.0",
  147. "@testing-library/react": "^12",
  148. "@types/classnames": "^2.3.0",
  149. "@types/enhanced-resolve": "^3.0.7",
  150. "@types/fs-extra": "^9.0.12",
  151. "@types/jest": "^23.3.14",
  152. "@types/lodash": "^4.14.172",
  153. "@types/lodash-es": "^4.17.4",
  154. "@types/node": "^14.17.9",
  155. "@types/react": "^18.0.5",
  156. "@types/react-dom": "^18.0.1",
  157. "@types/react-resizable": "^3.0.4",
  158. "@types/react-router-dom": "^5.3.3",
  159. "@types/svgo": "^2.3.1",
  160. "@types/webpack": "^4.41.30",
  161. "@typescript-eslint/eslint-plugin": "^4.29.1",
  162. "@typescript-eslint/parser": "^4.29.1",
  163. "axios": "^0.21.1",
  164. "babel-core": "^7.0.0-bridge.0",
  165. "babel-jest": "^24.9.0",
  166. "babel-loader": "^8.2.2",
  167. "babel-plugin-istanbul": "^6.1.1",
  168. "babel-plugin-transform-require-context": "^0.1.1",
  169. "babel-runtime": "^6.26.0",
  170. "case-sensitive-paths-webpack-plugin": "^2.4.0",
  171. "chromatic": "^6.0.6",
  172. "crypto": "^1.0.1",
  173. "css-loader": "^3.6.0",
  174. "cypress": "^12.12.0",
  175. "cypress-plugin-tab": "^1.0.5",
  176. "enzyme": "^3.11.0",
  177. "enzyme-adapter-react-16": "^1.15.6",
  178. "enzyme-to-json": "^3.6.2",
  179. "esbuild": "^0.14.47",
  180. "esbuild-loader": "^2.14.0",
  181. "eslint": "^7.32.0",
  182. "eslint-config-jest-enzyme": "^7.1.2",
  183. "eslint-plugin-import": "^2.24.0",
  184. "eslint-plugin-jest": "^24.4.0",
  185. "eslint-plugin-jsx-a11y": "^6.5.1",
  186. "eslint-plugin-markdown": "^2.2.1",
  187. "eslint-plugin-react": "^7.24.0",
  188. "eslint-plugin-react-hooks": "^4.2.0",
  189. "eslint-plugin-semi-design": "^2.33.0",
  190. "fs-extra": "^8.1.0",
  191. "glob": "^7.1.7",
  192. "html-webpack-plugin": "^5.6.0",
  193. "husky": "^1.3.1",
  194. "jest": "^24.9.0",
  195. "jest-date-mock": "^1.0.8",
  196. "jest-enzyme": "^7.1.2",
  197. "jest-mock-random": "^1.1.1",
  198. "jsdom": "^15.2.1",
  199. "lerna": "4.0.0",
  200. "lint-staged": "^10.5.4",
  201. "marked": "^2.1.3",
  202. "mini-css-extract-plugin": "^0.12.0",
  203. "null-loader": "^4.0.1",
  204. "postcss-loader": "^2.1.6",
  205. "prettier": "^1.19.1",
  206. "progress-bar-webpack-plugin": "^2.1.0",
  207. "react-dnd-cjs": "^9.5.1",
  208. "react-storybook-addon-props-combinations": "^1.1.0",
  209. "rimraf": "^2.7.1",
  210. "sass-loader": "^10.1.1",
  211. "semver": "^7.3.5",
  212. "sha1": "^1.1.1",
  213. "sinon": "^6.3.5",
  214. "storybook": "future",
  215. "storybook-addon-turbo-build": "^2.0.0",
  216. "style-loader": "^0.23.1",
  217. "stylelint": "^13.13.1",
  218. "svgo": "^2.7.0",
  219. "terser-webpack-plugin": "^4.2.3",
  220. "ts-loader": "^5.4.5",
  221. "typescript": "^4.8.3",
  222. "webpack": "^5.77.0",
  223. "webpack-cli": "^5.1.4",
  224. "webpack-dev-server": "^3.11.2",
  225. "webpack-replace-loader": "^5.0.1",
  226. "webpackbar": "^5.0.0-3",
  227. "worker-loader": "^3.0.8"
  228. },
  229. "husky": {
  230. "hooks": {
  231. "commit-msg": "commitlint .commitlintrc.js -E HUSKY_GIT_PARAMS",
  232. "pre-commit": "lint-staged"
  233. }
  234. },
  235. "resolutions": {
  236. "@types/react": "^18.0.5",
  237. "@types/react-dom": "^18.0.1",
  238. "babel-plugin-lodash/@babel/types": "~7.20.0",
  239. "cheerio": "1.0.0-rc.12",
  240. "@types/minimatch": "5.1.2"
  241. },
  242. "lint-staged": {
  243. "src/**/*.{js,jsx,ts,tsx}": [
  244. "eslint --ext '.js,.jsx,.ts,.tsx' --fix"
  245. ],
  246. "packages/**/*.{js,jsx,ts,tsx}": [
  247. "eslint --ext '.js,.jsx,.ts,.tsx' --fix"
  248. ],
  249. "*.{scss,css}": [
  250. "stylelint"
  251. ]
  252. },
  253. "license": "MIT",
  254. "packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
  255. }