package.json 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. {
  2. "name": "semi",
  3. "version": "0.0.1",
  4. "description": "Semi monorepo main project",
  5. "author": "",
  6. "workspaces": [
  7. "packages/**"
  8. ],
  9. "private": true,
  10. "scripts": {
  11. "install:codesandbox": "npm i lerna && npm run bootstrap",
  12. "bootstrap": "lerna bootstrap",
  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-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-webpack-plugin --scope eslint-plugin-semi-design",
  19. "story": "npm run pre-story && start-storybook -c ./.storybook/js/ -p 6006",
  20. "story:ts": "npm run pre-story && start-storybook -c ./.storybook/ts/ -p 6007",
  21. "story:ani": "npm run pre-story && start-storybook -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": "build-storybook -c ./.storybook/js/",
  37. "build:gatsbydoc": "lerna run build:lib --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",
  38. "build:icon": "lerna run build:icon --scope='@douyinfe/semi-{icons,illustrations}'",
  39. "cypress:coverage": "npx wait-on http://127.0.0.1:6006 && ./node_modules/.bin/cypress run",
  40. "postcypress:coverage": "yarn coverage:merge",
  41. "posttest:coverage": "yarn coverage:merge",
  42. "coverage:merge": "npx istanbul-combine -d test/merged -p detail -r lcov -r json cypress/coverage/coverage-final.json test/coverage/coverage-final.json"
  43. },
  44. "dependencies": {
  45. "@douyinfe/semi-site-banner": "^0.1.0",
  46. "@douyinfe/semi-site-doc-style": "0.0.1",
  47. "@douyinfe/semi-site-header": "^0.0.19",
  48. "@douyinfe/semi-site-markdown-blocks": "^0.0.9",
  49. "@mdx-js/react": "^1.6.22",
  50. "@svgr/core": "^5.5.0",
  51. "@types/react-window": "^1.8.5",
  52. "aos": "^2.3.4",
  53. "camelcase": "^6.2.0",
  54. "chroma-js": "^2.1.2",
  55. "classnames": "^2.3.1",
  56. "copy-text-to-clipboard": "^2.2.0",
  57. "cross-env": "^5.2.1",
  58. "css": "^2.2.4",
  59. "date-fns": "^2.23.0",
  60. "debug": "^4.3.2",
  61. "gatsby": "^2.32.13",
  62. "gatsby-plugin-i18n": "^1.0.1",
  63. "gatsby-plugin-mdx": "^1.10.1",
  64. "gatsby-plugin-react-helmet": "^3.10.0",
  65. "gatsby-plugin-remove-serviceworker": "^1.0.0",
  66. "gatsby-plugin-svgr": "^3.0.0-beta.0",
  67. "gatsby-source-filesystem": "^2.11.1",
  68. "grapheme-splitter": "^1.0.4",
  69. "immutability-helper": "^3.1.1",
  70. "lodash-es": "^4.17.21",
  71. "memoize-one": "^5.2.1",
  72. "normalize.css": "^8.0.1",
  73. "prop-types": "^15.7.2",
  74. "qs": "^6.10.1",
  75. "re-resizable": "^6.9.0",
  76. "react": "^16.14.0",
  77. "react-clipboard.js": "^2.0.16",
  78. "react-dnd": "^9.5.1",
  79. "react-dnd-html5-backend": "^9.5.1",
  80. "react-dom": "^16.14.0",
  81. "react-helmet": "^5.2.1",
  82. "react-infinite-scroller": "^1.2.4",
  83. "react-inlinesvg": "^1.2.0",
  84. "react-intl": "^3.12.1",
  85. "react-lazyload": "^3.2.0",
  86. "react-resizable": "^1.11.1",
  87. "react-scroll-parallax": "^2.4.0",
  88. "react-sortable-hoc": "^2.0.0",
  89. "react-virtualized": "^9.22.3",
  90. "reset-css": "^5.0.1",
  91. "sass": "1.54.9",
  92. "typeface-inconsolata": "0.0.72",
  93. "typeface-inter": "^3.18.1",
  94. "unist-util-remove": "^1.0.3",
  95. "unist-util-visit": "^2.0.3",
  96. "wait-on": "^6.0.1",
  97. "wcag-color": "^1.1.1"
  98. },
  99. "devDependencies": {
  100. "@actions/core": "^1.6.0",
  101. "@actions/github": "^5.0.0",
  102. "@babel/cli": "^7.14.8",
  103. "@babel/core": "^7.15.0",
  104. "@babel/eslint-parser": "^7.15.0",
  105. "@babel/eslint-plugin": "^7.14.5",
  106. "@babel/plugin-proposal-class-properties": "^7.14.5",
  107. "@babel/plugin-proposal-decorators": "^7.14.5",
  108. "@babel/plugin-proposal-object-rest-spread": "^7.14.7",
  109. "@babel/plugin-transform-runtime": "^7.15.8",
  110. "@babel/preset-env": "^7.15.8",
  111. "@babel/preset-react": "^7.14.5",
  112. "@babel/preset-typescript": "^7.15.0",
  113. "@babel/runtime": "^7.15.3",
  114. "@babel/types": "^7.15.4",
  115. "@commitlint/cli": "^9.1.2",
  116. "@commitlint/config-conventional": "^7.6.0",
  117. "@cypress/code-coverage": "^3.9.12",
  118. "@octokit/rest": "^18.12.0",
  119. "@shopify/jest-dom-mocks": "^2.11.7",
  120. "@storybook/addon-a11y": "^6.4.10",
  121. "@storybook/addon-actions": "^6.4.10",
  122. "@storybook/addon-knobs": "^6.4.0",
  123. "@storybook/addon-toolbars": "^6.4.10",
  124. "@storybook/builder-webpack5": "^6.5.0-alpha.13",
  125. "@storybook/cli": "^6.4.0",
  126. "@storybook/manager-webpack5": "^6.5.0-alpha.13",
  127. "@storybook/react": "^6.4.10",
  128. "@svgr/webpack": "^5.5.0",
  129. "@types/classnames": "^2.3.0",
  130. "@types/enhanced-resolve": "^3.0.7",
  131. "@types/fs-extra": "^9.0.12",
  132. "@types/jest": "^23.3.14",
  133. "@types/lodash": "^4.14.172",
  134. "@types/lodash-es": "^4.17.4",
  135. "@types/node": "^14.17.9",
  136. "@types/react": "^18.0.5",
  137. "@types/react-dom": "^18.0.1",
  138. "@types/react-resizable": "^1.7.3",
  139. "@types/svgo": "^2.3.1",
  140. "@types/webpack": "^4.41.30",
  141. "@typescript-eslint/eslint-plugin": "^4.29.1",
  142. "@typescript-eslint/parser": "^4.29.1",
  143. "awesome-typescript-loader": "^5.2.1",
  144. "axios": "^0.21.1",
  145. "babel-core": "^7.0.0-bridge.0",
  146. "babel-jest": "^24.9.0",
  147. "babel-loader": "^8.2.2",
  148. "babel-plugin-istanbul": "^6.1.1",
  149. "babel-plugin-transform-require-context": "^0.1.1",
  150. "babel-runtime": "^6.26.0",
  151. "case-sensitive-paths-webpack-plugin": "^2.4.0",
  152. "chromatic": "^6.0.6",
  153. "crypto": "^1.0.1",
  154. "css-loader": "^3.6.0",
  155. "cypress": "9.5.2",
  156. "cypress-plugin-tab": "^1.0.5",
  157. "enzyme": "^3.11.0",
  158. "enzyme-adapter-react-16": "^1.15.6",
  159. "enzyme-to-json": "^3.6.2",
  160. "esbuild": "^0.14.47",
  161. "esbuild-loader": "^2.14.0",
  162. "eslint": "^7.32.0",
  163. "eslint-config-jest-enzyme": "^7.1.2",
  164. "eslint-plugin-import": "^2.24.0",
  165. "eslint-plugin-jest": "^24.4.0",
  166. "eslint-plugin-jsx-a11y": "^6.5.1",
  167. "eslint-plugin-markdown": "^2.2.1",
  168. "eslint-plugin-react": "^7.24.0",
  169. "eslint-plugin-react-hooks": "^4.2.0",
  170. "eslint-plugin-semi-design": "latest",
  171. "fs-extra": "^8.1.0",
  172. "glob": "^7.1.7",
  173. "html-webpack-plugin": "^3.2.0",
  174. "husky": "^1.3.1",
  175. "jest": "^24.9.0",
  176. "jest-date-mock": "^1.0.8",
  177. "jest-enzyme": "^7.1.2",
  178. "jest-mock-random": "^1.1.1",
  179. "jsdom": "^15.2.1",
  180. "lerna": "^3.22.1",
  181. "lint-staged": "^10.5.4",
  182. "marked": "^2.1.3",
  183. "mini-css-extract-plugin": "^0.12.0",
  184. "null-loader": "^3.0.0",
  185. "postcss-loader": "^2.1.6",
  186. "prettier": "^1.19.1",
  187. "progress-bar-webpack-plugin": "^1.12.1",
  188. "react-dnd-cjs": "^9.5.1",
  189. "react-storybook-addon-props-combinations": "^1.1.0",
  190. "rimraf": "^2.7.1",
  191. "sass-loader": "^10.1.1",
  192. "semver": "^7.3.5",
  193. "sha1": "^1.1.1",
  194. "sinon": "^6.3.5",
  195. "storybook-addon-turbo-build": "^1.0.1",
  196. "style-loader": "^0.23.1",
  197. "stylelint": "^13.13.1",
  198. "svgo": "^2.7.0",
  199. "terser-webpack-plugin": "^4.2.3",
  200. "ts-loader": "^5.4.5",
  201. "typescript": "^4.8.3",
  202. "webpack": "^4.46.0",
  203. "webpack-cli": "^3.3.12",
  204. "webpack-dev-server": "^3.11.2",
  205. "webpackbar": "^5.0.0-3"
  206. },
  207. "husky": {
  208. "hooks": {
  209. "commit-msg": "commitlint .commitlintrc.js -E HUSKY_GIT_PARAMS",
  210. "pre-commit": "lint-staged"
  211. }
  212. },
  213. "resolutions": {
  214. "@types/react": "^18.0.5",
  215. "@types/react-dom": "^18.0.1"
  216. },
  217. "lint-staged": {
  218. "src/**/*.{js,jsx,ts,tsx}": [
  219. "eslint --ext '.js,.jsx,.ts,.tsx' --fix"
  220. ],
  221. "packages/**/*.{js,jsx,ts,tsx}": [
  222. "eslint --ext '.js,.jsx,.ts,.tsx' --fix"
  223. ],
  224. "*.{scss,css}": [
  225. "stylelint"
  226. ]
  227. },
  228. "license": "MIT"
  229. }