|
@@ -8,17 +8,17 @@
|
|
|
],
|
|
|
"private": true,
|
|
|
"scripts": {
|
|
|
- "install:codesandbox": "npm i lerna && npm run bootstrap",
|
|
|
- "bootstrap": "lerna bootstrap",
|
|
|
+ "install:codesandbox": "npm i lerna -g && npm run bootstrap",
|
|
|
+ "bootstrap": "lerna bootstrap -- --legacy-peer-deps",
|
|
|
"docsite": "npm run develop",
|
|
|
"pre-develop": "npm run scripts:changelog && node ./scripts/designToken.js ./static/designToken.json",
|
|
|
"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",
|
|
|
"scripts:changelog": "node scripts/changelog.js",
|
|
|
"start": "npm run story",
|
|
|
"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",
|
|
|
- "story": "npm run pre-story && start-storybook -c ./.storybook/js/ -p 6006",
|
|
|
- "story:ts": "npm run pre-story && start-storybook -c ./.storybook/ts/ -p 6007",
|
|
|
- "story:ani": "npm run pre-story && start-storybook -c ./.storybook/animation/react -p 6008",
|
|
|
+ "story": "npm run pre-story && sb dev -c ./.storybook/js/ -p 6006",
|
|
|
+ "story:ts": "npm run pre-story && sb dev -c ./.storybook/ts/ -p 6007",
|
|
|
+ "story:ani": "npm run pre-story && sb dev -c ./.storybook/animation/react -p 6008",
|
|
|
"lint": "npm run lint:script && npm run lint:style",
|
|
|
"lint:script": "eslint packages src --ext '.js,.jsx,.ts,.tsx'",
|
|
|
"lint:script-fix": "eslint packages src --ext '.js,.jsx,.ts,.tsx' --fix",
|
|
@@ -33,7 +33,7 @@
|
|
|
"build:lib": "lerna run build:lib",
|
|
|
"build:js": "lerna run build:js",
|
|
|
"build:css": "lerna run build:css",
|
|
|
- "build-storybook": "build-storybook -c ./.storybook/js/",
|
|
|
+ "build-storybook": "sb build -c ./.storybook/js/",
|
|
|
"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",
|
|
|
"build:icon": "lerna run build:icon --scope='@douyinfe/semi-{icons,illustrations}'",
|
|
|
"cypress:coverage": "npx wait-on http://127.0.0.1:6006 && ./node_modules/.bin/cypress run",
|
|
@@ -46,7 +46,9 @@
|
|
|
"@douyinfe/semi-site-doc-style": "0.0.1",
|
|
|
"@douyinfe/semi-site-header": "^0.0.19",
|
|
|
"@douyinfe/semi-site-markdown-blocks": "^0.0.9",
|
|
|
+ "@mdx-js/mdx": "1.6.22",
|
|
|
"@mdx-js/react": "^1.6.22",
|
|
|
+ "@storybook/react-webpack5": "^7.0.7",
|
|
|
"@svgr/core": "^5.5.0",
|
|
|
"@types/react-window": "^1.8.5",
|
|
|
"aos": "^2.3.4",
|
|
@@ -56,6 +58,7 @@
|
|
|
"copy-text-to-clipboard": "^2.2.0",
|
|
|
"cross-env": "^5.2.1",
|
|
|
"css": "^2.2.4",
|
|
|
+ "cypress-real-events": "^1.8.1",
|
|
|
"date-fns": "^2.23.0",
|
|
|
"debug": "^4.3.2",
|
|
|
"gatsby": "^2.32.13",
|
|
@@ -63,7 +66,7 @@
|
|
|
"gatsby-plugin-mdx": "^1.10.1",
|
|
|
"gatsby-plugin-react-helmet": "^3.10.0",
|
|
|
"gatsby-plugin-remove-serviceworker": "^1.0.0",
|
|
|
- "gatsby-plugin-svgr": "^3.0.0-beta.0",
|
|
|
+ "gatsby-plugin-svgr": "2.1.0",
|
|
|
"gatsby-source-filesystem": "^2.11.1",
|
|
|
"grapheme-splitter": "^1.0.4",
|
|
|
"immutability-helper": "^3.1.1",
|
|
@@ -107,24 +110,22 @@
|
|
|
"@babel/plugin-proposal-decorators": "^7.14.5",
|
|
|
"@babel/plugin-proposal-object-rest-spread": "^7.14.7",
|
|
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
|
- "@babel/preset-env": "^7.15.8",
|
|
|
- "@babel/preset-react": "^7.14.5",
|
|
|
- "@babel/preset-typescript": "^7.15.0",
|
|
|
+ "@babel/preset-env": "^7.21.4",
|
|
|
+ "@babel/preset-react": "^7.18.6",
|
|
|
+ "@babel/preset-typescript": "7.15.0",
|
|
|
"@babel/runtime": "^7.15.3",
|
|
|
- "@babel/types": "^7.15.4",
|
|
|
+ "@babel/types": "^7.21.5",
|
|
|
"@commitlint/cli": "^9.1.2",
|
|
|
"@commitlint/config-conventional": "^7.6.0",
|
|
|
"@cypress/code-coverage": "^3.9.12",
|
|
|
"@octokit/rest": "^18.12.0",
|
|
|
"@shopify/jest-dom-mocks": "^2.11.7",
|
|
|
- "@storybook/addon-a11y": "^6.4.10",
|
|
|
- "@storybook/addon-actions": "^6.4.10",
|
|
|
- "@storybook/addon-knobs": "^6.4.0",
|
|
|
- "@storybook/addon-toolbars": "^6.4.10",
|
|
|
- "@storybook/builder-webpack5": "^6.5.0-alpha.13",
|
|
|
- "@storybook/cli": "^6.4.0",
|
|
|
- "@storybook/manager-webpack5": "^6.5.0-alpha.13",
|
|
|
- "@storybook/react": "^6.4.10",
|
|
|
+ "@storybook/addon-a11y": "^7.0.7",
|
|
|
+ "@storybook/addon-actions": "^7.0.7",
|
|
|
+ "@storybook/addon-knobs": "^7.0.2",
|
|
|
+ "@storybook/addon-toolbars": "^7.0.7",
|
|
|
+ "@storybook/cli": "^7.0.7",
|
|
|
+ "@storybook/react": "^7.0.7",
|
|
|
"@svgr/webpack": "^5.5.0",
|
|
|
"@types/classnames": "^2.3.0",
|
|
|
"@types/enhanced-resolve": "^3.0.7",
|
|
@@ -152,7 +153,7 @@
|
|
|
"chromatic": "^6.0.6",
|
|
|
"crypto": "^1.0.1",
|
|
|
"css-loader": "^3.6.0",
|
|
|
- "cypress": "9.5.2",
|
|
|
+ "cypress": "^12.12.0",
|
|
|
"cypress-plugin-tab": "^1.0.5",
|
|
|
"enzyme": "^3.11.0",
|
|
|
"enzyme-adapter-react-16": "^1.15.6",
|
|
@@ -192,17 +193,18 @@
|
|
|
"semver": "^7.3.5",
|
|
|
"sha1": "^1.1.1",
|
|
|
"sinon": "^6.3.5",
|
|
|
- "storybook-addon-turbo-build": "^1.0.1",
|
|
|
+ "storybook": "future",
|
|
|
+ "storybook-addon-turbo-build": "^2.0.0",
|
|
|
"style-loader": "^0.23.1",
|
|
|
"stylelint": "^13.13.1",
|
|
|
"svgo": "^2.7.0",
|
|
|
"terser-webpack-plugin": "^4.2.3",
|
|
|
"ts-loader": "^5.4.5",
|
|
|
"typescript": "^4.8.3",
|
|
|
+ "webpack": "^5.77.0",
|
|
|
"webpack-cli": "^3.3.12",
|
|
|
"webpack-dev-server": "^3.11.2",
|
|
|
- "webpackbar": "^5.0.0-3",
|
|
|
- "webpack": "^5.77.0"
|
|
|
+ "webpackbar": "^5.0.0-3"
|
|
|
},
|
|
|
"husky": {
|
|
|
"hooks": {
|
|
@@ -212,7 +214,8 @@
|
|
|
},
|
|
|
"resolutions": {
|
|
|
"@types/react": "^18.0.5",
|
|
|
- "@types/react-dom": "^18.0.1"
|
|
|
+ "@types/react-dom": "^18.0.1",
|
|
|
+ "babel-plugin-lodash/@babel/types": "~7.20.0"
|
|
|
},
|
|
|
"lint-staged": {
|
|
|
"src/**/*.{js,jsx,ts,tsx}": [
|
|
@@ -226,4 +229,4 @@
|
|
|
]
|
|
|
},
|
|
|
"license": "MIT"
|
|
|
-}
|
|
|
+}
|