fix: document code preview
Showing
.dumi/theme/layout.less
0 → 100644
... | @@ -17,6 +17,7 @@ | ... | @@ -17,6 +17,7 @@ |
"size:build": "cross-env PRO_COMPONENTS_CI='CI' webpack", | "size:build": "cross-env PRO_COMPONENTS_CI='CI' webpack", | ||
"start": "dumi dev", | "start": "dumi dev", | ||
"site": "dumi build", | "site": "dumi build", | ||
"size": "npm run build && size-limit", | |||
"tsc:duplicate": "tsc -p ./tests/tsconfig.duplicate.json", | "tsc:duplicate": "tsc -p ./tests/tsconfig.duplicate.json", | ||
"sync:tnpm": "node -e 'require(\"./scripts/syncTNPM\")()'", | "sync:tnpm": "node -e 'require(\"./scripts/syncTNPM\")()'", | ||
"test": "umi-test", | "test": "umi-test", | ||
... | @@ -32,30 +33,47 @@ | ... | @@ -32,30 +33,47 @@ |
"ie >= 11" | "ie >= 11" | ||
], | ], | ||
"devDependencies": { | "devDependencies": { | ||
"@ant-design/compatible": "^1.0.4", | |||
"@ant-design/pro-skeleton": "^1.0.0-beta.2", | "@ant-design/pro-skeleton": "^1.0.0-beta.2", | ||
"@babel/core": "^7.8.3", | "@babel/core": "^7.8.3", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.8.3", | "@babel/plugin-proposal-object-rest-spread": "^7.8.3", | ||
"@babel/preset-env": "^7.8.3", | "@babel/preset-env": "^7.8.3", | ||
"@babel/preset-react": "^7.8.3", | "@babel/preset-react": "^7.8.3", | ||
"@babel/preset-typescript": "^7.8.3", | "@babel/preset-typescript": "^7.8.3", | ||
"@octokit/core": "^3.2.5", | |||
"@size-limit/preset-big-lib": "^4.5.5", | "@size-limit/preset-big-lib": "^4.5.5", | ||
"@testing-library/react": "^10.0.2", | "@testing-library/react": "^10.0.2", | ||
"@testing-library/react-hooks": "^3.2.1", | "@testing-library/react-hooks": "^3.2.1", | ||
"@types/classnames": "^2.2.7", | |||
"@types/enzyme": "^3.10.3", | |||
"@types/history": "^4.7.7", | |||
"@types/jest": "^26.0.0", | |||
"@types/memoize-one": "^5.1.2", | |||
"@types/mockjs": "^1.0.3", | |||
"@types/node": "^14.0.26", | |||
"@types/react": "^16.9.17", | |||
"@types/react-dom": "^16.9.1", | |||
"@types/react-helmet": "^6.0.0", | |||
"@types/react-intl": "^3.0.0", | |||
"@types/react-responsive": "^8.0.1", | |||
"@types/react-router-dom": "^5.1.0", | |||
"@types/warning": "^3.0.0", | |||
"@types/xhr-mock": "^2.0.0", | |||
"@umijs/babel-preset-umi": "^3.0.14", | "@umijs/babel-preset-umi": "^3.0.14", | ||
"@umijs/fabric": "^2.0.0", | "@umijs/fabric": "^2.0.0", | ||
"@umijs/plugin-analytics": "^0.2.2", | "@umijs/plugin-analytics": "^0.2.2", | ||
"@umijs/plugin-antd": "^0.9.0", | |||
"@umijs/test": "^3.2.10", | "@umijs/test": "^3.2.10", | ||
"@umijs/test-utils": "^3.2.10", | "@umijs/test-utils": "^3.2.10", | ||
"@umijs/utils": "^3.2.11", | "@umijs/utils": "^3.2.11", | ||
"antd": "^4.7.0", | "antd": "^4.13.1", | ||
"babel-loader": "^8.1.0", | "babel-loader": "^8.1.0", | ||
"babel-plugin-import": "^1.12.2", | "babel-plugin-import": "^1.12.2", | ||
"body-parser": "^1.18.2", | "body-parser": "^1.18.2", | ||
"chalk": "^4.1.0", | "chalk": "^4.1.0", | ||
"cross-env": "^7.0.0", | "cross-env": "^7.0.2", | ||
"css-loader": "^3.4.2", | "css-loader": "^5.0.2", | ||
"dumi": "next", | "css-minimizer-webpack-plugin": "^1.2.0", | ||
"dumi": "^1.1.6", | |||
"enzyme": "^3.11.0", | "enzyme": "^3.11.0", | ||
"enzyme-to-json": "^3.4.3", | "enzyme-to-json": "^3.4.3", | ||
"eslint": "^7.2.0", | "eslint": "^7.2.0", | ||
... | @@ -63,53 +81,51 @@ | ... | @@ -63,53 +81,51 @@ |
"gh-pages": "^3.1.0", | "gh-pages": "^3.1.0", | ||
"github": "^9.2.0", | "github": "^9.2.0", | ||
"glob": "^7.1.6", | "glob": "^7.1.6", | ||
"html-webpack-plugin": "^4.5.0", | |||
"jest": "^26.2.2", | "jest": "^26.2.2", | ||
"jest-canvas-mock": "^2.3.1", | |||
"jest-fetch-mock": "^3.0.3", | "jest-fetch-mock": "^3.0.3", | ||
"jsdom": "^16.4.0", | "jsdom": "^16.4.0", | ||
"jsdom-global": "^3.0.2", | "jsdom-global": "^3.0.2", | ||
"lerna": "^3.20.2", | "lerna": "^3.20.2", | ||
"lerna-changelog": "^1.0.1", | "lerna-changelog": "^1.0.1", | ||
"less-loader": "^6.0.0", | "less-loader": "^8.0.0", | ||
"lint-staged": "^10.0.2", | "lint-staged": "^10.0.2", | ||
"mini-css-extract-plugin": "^0.9.0", | "mini-css-extract-plugin": "^1.3.8", | ||
"mockdate": "^3.0.2", | "mockdate": "^3.0.2", | ||
"mockjs": "^1.1.0", | |||
"moment": "^2.27.0", | "moment": "^2.27.0", | ||
"moment-timezone": "^0.5.31", | "moment-timezone": "^0.5.31", | ||
"np": "^6.1.0", | "np": "^6.1.0", | ||
"npm-run-all": "^4.1.5", | "npm-run-all": "^4.1.5", | ||
"optimize-css-assets-webpack-plugin": "^5.0.3", | |||
"pify": "^5.0.0", | "pify": "^5.0.0", | ||
"prettier": "^2.1.2", | "prettier": "^2.2.1", | ||
"pretty-quick": "^2.0.1", | "prettier-plugin-jsdoc": "^0.2.13", | ||
"prettier-plugin-style-order": "^0.2.2", | |||
"pretty-quick": "^3.0.1", | |||
"pro-changelog": "^1.0.0", | "pro-changelog": "^1.0.0", | ||
"progress-bar-webpack-plugin": "^2.1.0", | "progress-bar-webpack-plugin": "^2.1.0", | ||
"query-string": "^6.11.1", | "query-string": "^6.13.6", | ||
"react": "^16.11.0", | "react": "^16.0.0", | ||
"react-dom": "^16.11.0", | "react-darkreader": "^1.3.3", | ||
"react-dom": "^16.0.0", | |||
"react-lazyload": "^3.0.0", | "react-lazyload": "^3.0.0", | ||
"react-markdown": "^4.3.0", | "react-markdown": "^4.3.0", | ||
"react-test-renderer": "^16.9.0", | "react-test-renderer": "^16.9.0", | ||
"size-limit": "^4.5.5", | "size-limit": "^4.6.2", | ||
"slash2": "^2.0.0", | "slash2": "^2.0.0", | ||
"style-loader": "^1.1.3", | "style-loader": "^2.0.0", | ||
"stylelint": "^13.0.0", | "stylelint": "^13.0.0", | ||
"terser-webpack-plugin": "^3.0.2", | "typescript": "^4.1.2", | ||
"typescript": "^3.9.7", | "umi": "^3.4.0", | ||
"umi": "^3.2.10", | |||
"umi-plugin-githubpages": "^2.0.0", | |||
"umi-request": "^1.3.5", | "umi-request": "^1.3.5", | ||
"umi-test": "^1.9.6", | "umi-test": "^1.9.6", | ||
"umi-types": "^0.5.11", | "umi-types": "^0.5.11", | ||
"webpack-bundle-analyzer": "^3.6.0", | "webpack": "^5.24.2", | ||
"webpack-cli": "^3.3.12", | "webpack-bundle-analyzer": "^4.4.0", | ||
"webpack-dev-server": "^3.11.0", | "webpack-cli": "^4.5.0", | ||
"write-pkg": "^4.0.0", | "write-pkg": "^4.0.0", | ||
"xhr-mock": "^2.5.1", | "xhr-mock": "^2.5.1", | ||
"yorkie": "^2.0.0", | "yorkie": "^2.0.0" | ||
"express": "^4.16.4", | |||
"webpack-dev-middleware": "^3.5.0", | |||
"webpack-hot-middleware": "^2.24.3" | |||
}, | }, | ||
"gitHooks": { | "gitHooks": { | ||
"pre-commit": "pretty-quick --staged", | "pre-commit": "pretty-quick --staged", | ||
... | @@ -118,14 +134,6 @@ | ... | @@ -118,14 +134,6 @@ |
"publishConfig": { | "publishConfig": { | ||
"registry": "https://g.civnet.cn:4873" | "registry": "https://g.civnet.cn:4873" | ||
}, | }, | ||
"size-limit": [ | |||
{ | |||
"path": "packages/Empty/dist/**/*.js", | |||
"limit": "100 s", | |||
"webpack": false, | |||
"running": false | |||
} | |||
], | |||
"dependencies": { | "dependencies": { | ||
"@wisdom-components/Empty": "^1.0.1", | "@wisdom-components/Empty": "^1.0.1", | ||
"classnames": "^2.2.6", | "classnames": "^2.2.6", | ||
... | @@ -133,5 +141,103 @@ | ... | @@ -133,5 +141,103 @@ |
"highcharts": "^9.0.1", | "highcharts": "^9.0.1", | ||
"highcharts-react-official": "^3.0.0", | "highcharts-react-official": "^3.0.0", | ||
"mqtt-client": "^1.0.11" | "mqtt-client": "^1.0.11" | ||
}, | |||
"size-limit": [ | |||
{ | |||
"path": "packages/DeviceTree/lib/**/*.js", | |||
"limit": "2 s", | |||
"webpack": false, | |||
"running": false | |||
}, | |||
{ | |||
"path": "packages/DeviceTree/es/**/*.js", | |||
"limit": "2 s", | |||
"webpack": false, | |||
"running": false | |||
}, | |||
{ | |||
"path": "packages/Empty/lib/**/*.js", | |||
"limit": "2 s", | |||
"webpack": false, | |||
"running": false | |||
}, | |||
{ | |||
"path": "packages/Empty/es/**/*.js", | |||
"limit": "2 s", | |||
"webpack": false, | |||
"running": false | |||
}, | |||
{ | |||
"path": "packages/HistoryInfo/lib/**/*.js", | |||
"limit": "2 s", | |||
"webpack": false, | |||
"running": false | |||
}, | |||
{ | |||
"path": "packages/HistoryInfo/es/**/*.js", | |||
"limit": "2 s", | |||
"webpack": false, | |||
"running": false | |||
}, | |||
{ | |||
"path": "packages/ImageSelect/lib/**/*.js", | |||
"limit": "2 s", | |||
"webpack": false, | |||
"running": false | |||
}, | |||
{ | |||
"path": "packages/ImageSelect/es/**/*.js", | |||
"limit": "2 s", | |||
"webpack": false, | |||
"running": false | |||
}, | |||
{ | |||
"path": "packages/MqttView/lib/**/*.js", | |||
"limit": "2 s", | |||
"webpack": false, | |||
"running": false | |||
}, | |||
{ | |||
"path": "packages/MqttView/es/**/*.js", | |||
"limit": "2 s", | |||
"webpack": false, | |||
"running": false | |||
}, | |||
{ | |||
"path": "packages/QuotaSelect/lib/**/*.js", | |||
"limit": "2 s", | |||
"webpack": false, | |||
"running": false | |||
}, | |||
{ | |||
"path": "packages/QuotaSelect/es/**/*.js", | |||
"limit": "2 s", | |||
"webpack": false, | |||
"running": false | |||
}, | |||
{ | |||
"path": "packages/RealTimeInfo/lib/**/*.js", | |||
"limit": "2 s", | |||
"webpack": false, | |||
"running": false | |||
}, | |||
{ | |||
"path": "packages/RealTimeInfo/es/**/*.js", | |||
"limit": "2 s", | |||
"webpack": false, | |||
"running": false | |||
}, | |||
{ | |||
"path": "packages/TimeRangePicker/lib/**/*.js", | |||
"limit": "2 s", | |||
"webpack": false, | |||
"running": false | |||
}, | |||
{ | |||
"path": "packages/TimeRangePicker/es/**/*.js", | |||
"limit": "2 s", | |||
"webpack": false, | |||
"running": false | |||
} | } | ||
] | |||
} | } |
File moved
scripts/replaceLib.js
0 → 100644
Please
register
or
sign in
to comment