package.json 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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 -- rm -rf ./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 && rm -rf 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.0.2",
  46. "@douyinfe/semi-site-doc-style": "0.0.1",
  47. "@douyinfe/semi-site-header": "^0.0.10",
  48. "@douyinfe/semi-site-markdown-blocks": "^0.0.7",
  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.32.13",
  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. "wcag-color": "^1.1.1"
  97. },
  98. "devDependencies": {
  99. "@actions/core": "^1.6.0",
  100. "@actions/github": "^5.0.0",
  101. "@babel/cli": "^7.14.8",
  102. "@babel/core": "^7.15.0",
  103. "@babel/eslint-parser": "^7.15.0",
  104. "@babel/eslint-plugin": "^7.14.5",
  105. "@babel/plugin-proposal-class-properties": "^7.14.5",
  106. "@babel/plugin-proposal-decorators": "^7.14.5",
  107. "@babel/plugin-proposal-object-rest-spread": "^7.14.7",
  108. "@babel/plugin-transform-runtime": "^7.15.8",
  109. "@babel/preset-env": "^7.15.8",
  110. "@babel/preset-react": "^7.14.5",
  111. "@babel/preset-typescript": "^7.15.0",
  112. "@babel/runtime": "^7.15.3",
  113. "@babel/types": "^7.15.4",
  114. "@commitlint/cli": "^9.1.2",
  115. "@commitlint/config-conventional": "^7.6.0",
  116. "@octokit/rest": "^18.12.0",
  117. "@shopify/jest-dom-mocks": "^2.11.7",
  118. "@storybook/addon-a11y": "^6.4.10",
  119. "@storybook/addon-actions": "^6.4.10",
  120. "@storybook/addon-knobs": "^6.4.0",
  121. "@storybook/addon-toolbars": "^6.4.10",
  122. "@storybook/builder-webpack5": "^6.5.0-alpha.13",
  123. "@storybook/cli": "^6.4.0",
  124. "@storybook/manager-webpack5": "^6.5.0-alpha.13",
  125. "@storybook/react": "^6.4.10",
  126. "@svgr/webpack": "^5.5.0",
  127. "@types/classnames": "^2.3.0",
  128. "@types/enhanced-resolve": "^3.0.7",
  129. "@types/fs-extra": "^9.0.12",
  130. "@types/jest": "^23.3.14",
  131. "@types/lodash": "^4.14.172",
  132. "@types/lodash-es": "^4.17.4",
  133. "@types/node": "^14.17.9",
  134. "@types/react": "^18.0.5",
  135. "@types/react-dom": "^18.0.1",
  136. "@types/react-resizable": "^1.7.3",
  137. "@types/svgo": "^2.3.1",
  138. "@types/webpack": "^4.41.30",
  139. "@typescript-eslint/eslint-plugin": "^4.29.1",
  140. "@typescript-eslint/parser": "^4.29.1",
  141. "awesome-typescript-loader": "^5.2.1",
  142. "axios": "^0.21.1",
  143. "babel-core": "^7.0.0-bridge.0",
  144. "babel-jest": "^24.9.0",
  145. "babel-loader": "^8.2.2",
  146. "babel-plugin-istanbul": "^6.1.1",
  147. "babel-plugin-transform-require-context": "^0.1.1",
  148. "babel-runtime": "^6.26.0",
  149. "case-sensitive-paths-webpack-plugin": "^2.4.0",
  150. "chromatic": "^6.0.6",
  151. "crypto": "^1.0.1",
  152. "css-loader": "^3.6.0",
  153. "enzyme": "^3.11.0",
  154. "enzyme-adapter-react-16": "^1.15.6",
  155. "enzyme-to-json": "^3.6.2",
  156. "esbuild": "^0.14.47",
  157. "esbuild-loader": "^2.14.0",
  158. "eslint": "^7.32.0",
  159. "eslint-config-jest-enzyme": "^7.1.2",
  160. "eslint-plugin-import": "^2.24.0",
  161. "eslint-plugin-jest": "^24.4.0",
  162. "eslint-plugin-jsx-a11y": "^6.5.1",
  163. "eslint-plugin-markdown": "^2.2.1",
  164. "eslint-plugin-react": "^7.24.0",
  165. "eslint-plugin-react-hooks": "^4.2.0",
  166. "eslint-plugin-semi-design": "latest",
  167. "fs-extra": "^8.1.0",
  168. "glob": "^7.1.7",
  169. "html-webpack-plugin": "^3.2.0",
  170. "husky": "^1.3.1",
  171. "jest": "^24.9.0",
  172. "jest-date-mock": "^1.0.8",
  173. "jest-enzyme": "^7.1.2",
  174. "jest-mock-random": "^1.1.1",
  175. "jsdom": "^15.2.1",
  176. "lerna": "^3.22.1",
  177. "lint-staged": "^10.5.4",
  178. "marked": "^2.1.3",
  179. "mini-css-extract-plugin": "^0.12.0",
  180. "null-loader": "^3.0.0",
  181. "postcss-loader": "^2.1.6",
  182. "prettier": "^1.19.1",
  183. "progress-bar-webpack-plugin": "^1.12.1",
  184. "react-dnd-cjs": "^9.5.1",
  185. "react-storybook-addon-props-combinations": "^1.1.0",
  186. "rimraf": "^2.7.1",
  187. "sass-loader": "^7.3.1",
  188. "semver": "^7.3.5",
  189. "sha1": "^1.1.1",
  190. "sinon": "^6.3.5",
  191. "storybook-addon-turbo-build": "^1.0.1",
  192. "style-loader": "^0.23.1",
  193. "stylelint": "^13.13.1",
  194. "svgo": "^2.7.0",
  195. "terser-webpack-plugin": "^4.2.3",
  196. "ts-loader": "^5.4.5",
  197. "typescript": "4.4.3",
  198. "webpack": "^4.46.0",
  199. "webpack-cli": "^3.3.12",
  200. "webpack-dev-server": "^3.11.2",
  201. "webpackbar": "^5.0.0-3",
  202. "cypress": "9.5.2",
  203. "cypress-plugin-tab": "^1.0.5",
  204. "@cypress/code-coverage": "^3.9.12"
  205. },
  206. "husky": {
  207. "hooks": {
  208. "commit-msg": "commitlint .commitlintrc.js -E HUSKY_GIT_PARAMS",
  209. "pre-commit": "lint-staged"
  210. }
  211. },
  212. "resolutions": {
  213. "@types/react": "^18.0.5",
  214. "@types/react-dom": "^18.0.1"
  215. },
  216. "lint-staged": {
  217. "src/**/*.{js,jsx,ts,tsx}": [
  218. "eslint --ext '.js,.jsx,.ts,.tsx' --fix"
  219. ],
  220. "packages/**/*.{js,jsx,ts,tsx}": [
  221. "eslint --ext '.js,.jsx,.ts,.tsx' --fix"
  222. ],
  223. "*.{scss,css}": [
  224. "stylelint"
  225. ]
  226. },
  227. "license": "MIT"
  228. }