package.json 10.4 KB
Newer Older
李纪文's avatar
李纪文 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
{
  "private": true,
  "license": "MIT",
  "workspaces": [
    "packages/base-components/*",
    "packages/extend-components/*"
  ],
  "scripts": {
    "bootstrap": "node ./scripts/bootstrap.js",
    "build": "npm run build-lib && webpack && node ./scripts/gen_less_entry.js",
    "build-lib": "cross-env BUILD_TYPE=lib father-build && cross-env BUILD_TYPE=es father-build",
    "changelog": "pro-changelog",
    "createRelease": "node ./scripts/createRelease.js",
    "deploy": "npm run site && gh-pages -d ./dist",
    "lint": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./packages && npm run lint:prettier",
    "lint:prettier": "npm run prettier &&  git diff && prettier --version && prettier --check \"packages/**/**.{js,jsx,tsx,ts,less,md,json}\" --end-of-line auto",
    "prettier": "prettier --write \"**/**.{js,jsx,tsx,ts,less,md,json}\"",
    "release": "node ./scripts/release.js  --skipBuild",
    "release-skipBuild": "node ./scripts/release.js  --skipBuild",
    "size:build": "cross-env PRO_COMPONENTS_CI='CI'  webpack",
    "start": "dumi dev",
    "site": "dumi build",
    "size": "npm run build && size-limit",
    "tsc:duplicate": "tsc -p ./tests/tsconfig.duplicate.json",
    "sync:tnpm": "node -e 'require(\"./scripts/syncTNPM\")()'",
    "test": "umi-test",
    "test:coverage": "umi-test --coverage",
    "test:update": "umi-test --updateSnapshot",
    "update:deps": "yarn upgrade-interactive --latest",
    "dev": "webpack-dev-server --config webpack.host.js"
  },
  "browserslist": [
    "last 2 versions",
    "Firefox ESR",
    "> 1%",
    "ie >= 11"
  ],
  "devDependencies": {
    "@ant-design/icons": "^4.6.2",
    "@ant-design/pro-skeleton": "^1.0.0-beta.2",
    "@babel/core": "^7.8.3",
    "@babel/plugin-proposal-object-rest-spread": "^7.8.3",
    "@babel/plugin-transform-runtime": "^7.17.10",
    "@babel/preset-env": "^7.8.3",
    "@babel/preset-react": "^7.8.3",
    "@babel/preset-typescript": "^7.8.3",
    "@babel/runtime": "^7.17.9",
    "@octokit/core": "^3.2.5",
    "@size-limit/preset-big-lib": "^4.5.5",
    "@testing-library/react": "^10.0.2",
    "@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/doctor": "^0.0.16",
    "@umijs/fabric": "^2.0.0",
    "@umijs/plugin-analytics": "^0.2.2",
    "@umijs/plugin-antd": "^0.9.0",
    "@umijs/test": "^3.2.10",
    "@umijs/test-utils": "^3.2.10",
    "@umijs/utils": "^3.2.11",
    "antd": "^4.13.1",
    "babel-loader": "^8.1.0",
    "babel-plugin-import": "^1.12.2",
    "body-parser": "^1.18.2",
    "chalk": "^4.1.0",
    "cross-env": "^7.0.2",
    "css-loader": "^5.0.2",
    "css-minimizer-webpack-plugin": "^1.2.0",
    "dumi": "^1.1.6",
    "enzyme": "^3.11.0",
    "enzyme-to-json": "^3.4.3",
    "eslint": "^7.2.0",
    "father-build": "^1.18.1",
    "gh-pages": "^3.1.0",
    "github": "^9.2.0",
    "glob": "^7.1.6",
    "jest": "^26.2.2",
    "jest-canvas-mock": "^2.3.1",
    "jest-fetch-mock": "^3.0.3",
    "jsdom": "^16.4.0",
    "jsdom-global": "^3.0.2",
    "lerna": "^3.22.1",
    "lerna-changelog": "^1.0.1",
    "less-loader": "^8.0.0",
    "lint-staged": "^10.0.2",
    "mini-css-extract-plugin": "^1.3.8",
    "mockdate": "^3.0.2",
    "mockjs": "^1.1.0",
    "moment": "^2.27.0",
    "moment-timezone": "^0.5.31",
    "np": "^6.1.0",
    "npm-run-all": "^4.1.5",
    "pify": "^5.0.0",
    "prettier": "^2.2.1",
    "prettier-plugin-jsdoc": "^0.2.13",
    "prettier-plugin-style-order": "^0.2.2",
    "pretty-quick": "^3.0.1",
    "pro-changelog": "^1.0.0",
    "progress-bar-webpack-plugin": "^2.1.0",
    "query-string": "^6.13.6",
    "react": "^16.0.0",
    "react-darkreader": "^1.3.3",
    "react-dom": "^16.0.0",
    "react-lazyload": "^3.0.0",
    "react-markdown": "^4.3.0",
    "react-test-renderer": "^16.9.0",
    "size-limit": "^4.6.2",
    "slash2": "^2.0.0",
    "style-loader": "^2.0.0",
    "stylelint": "^13.0.0",
李纪文's avatar
李纪文 committed
125
    "swiper": "^6.8.1",
李纪文's avatar
李纪文 committed
126 127 128 129 130 131 132 133 134 135 136 137
    "terser-webpack-plugin": "^5.1.1",
    "typescript": "^4.1.2",
    "umi": "^3.5.20",
    "umi-request": "^1.3.5",
    "umi-test": "^1.9.6",
    "umi-types": "^0.5.11",
    "url-loader": "^4.1.1",
    "webpack": "^5.24.2",
    "webpack-bundle-analyzer": "^4.4.0",
    "webpack-cli": "^4.5.0",
    "write-pkg": "^4.0.0",
    "xhr-mock": "^2.5.1",
李纪文's avatar
李纪文 committed
138
    "yorkie": "^2.0.0"
李纪文's avatar
李纪文 committed
139 140 141 142 143 144 145 146 147
  },
  "gitHooks": {
    "pre-commit": "pretty-quick --staged",
    "commit-msg": "node scripts/verifyCommit.js"
  },
  "publishConfig": {
    "registry": "https://g.civnet.cn:4873"
  },
  "dependencies": {
李纪文's avatar
李纪文 committed
148
    "@babel/plugin-proposal-private-methods": "^7.18.6",
李纪文's avatar
李纪文 committed
149
    "@wisdom-components/basictable": "^1.5.14",
李纪文's avatar
李纪文 committed
150
    "@wisdom-components/ec_historyview": "^1.4.3",
李纪文's avatar
李纪文 committed
151 152 153 154
    "@wisdom-components/empty": "^1.3.9",
    "@wisdom-components/exportexcel": "^1.1.2",
    "@wisdom-components/loadbox": "1.1.4",
    "@wisdom-components/timerangepicker": "^1.3.4",
李纪文's avatar
李纪文 committed
155
    "@wisdom-components/videoslidermodal": "1.1.2",
李纪文's avatar
李纪文 committed
156
    "@wisdom-components/VmsVideo": "1.1.13",
李纪文's avatar
李纪文 committed
157 158 159
    "@wisdom-utils/utils": "0.0.46",
    "classnames": "^2.2.6",
    "cross-spawn": "^7.0.3",
崔佳豪's avatar
崔佳豪 committed
160 161
    "echarts": "^5.4.0",
    "echarts-for-react": "^3.0.2",
程恺文's avatar
程恺文 committed
162
    "ezuikit-js": "^7.6.3",
李纪文's avatar
李纪文 committed
163
    "file-loader": "^6.2.0",
李纪文's avatar
李纪文 committed
164 165 166
    "form-render": "^0.9.12",
    "highcharts": "^9.0.1",
    "highcharts-react-official": "^3.0.0",
程恺文's avatar
程恺文 committed
167
    "install": "^0.13.0",
李纪文's avatar
李纪文 committed
168 169
    "js-export-excel": "^1.1.4",
    "jszip": "^3.5.0",
李纪文's avatar
李纪文 committed
170
    "less": "^3.13.1",
李纪文's avatar
李纪文 committed
171
    "mqtt-client": "^1.0.12",
程恺文's avatar
程恺文 committed
172
    "npm": "^9.6.4",
李纪文's avatar
李纪文 committed
173
    "optimize-css-assets-webpack-plugin": "^6.0.1",
李纪文's avatar
李纪文 committed
174
    "parseForm": "1.0.0",
陈龙's avatar
陈龙 committed
175
    "react-redux": "^8.0.5",
176
    "react-resizable": "^3.0.4",
李纪文's avatar
李纪文 committed
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334
    "sha1": "^1.1.1"
  },
  "size-limit": [
    {
      "path": "packages/base-components/BasicTable/lib/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/BasicTable/es/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/BasicTools/lib/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/BasicTools/es/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/DeviceTree/lib/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/DeviceTree/es/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/Empty/lib/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/Empty/es/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/ExportExcel/lib/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/ExportExcel/es/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/HistoryInfo/lib/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/HistoryInfo/es/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/ImageSelect/lib/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/ImageSelect/es/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/MqttView/lib/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/MqttView/es/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/ParseForm/lib/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/ParseForm/es/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/QuotaSelect/lib/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/QuotaSelect/es/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/RealTimeInfo/lib/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/RealTimeInfo/es/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/TimeRangePicker/lib/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/TimeRangePicker/es/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/RichText/lib/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/RichText/es/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
周宏民's avatar
周宏民 committed
335 336 337 338 339 340 341 342 343 344 345 346
    },
    {
      "path": "packages/base-components/DataCarousel/lib/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
    },
    {
      "path": "packages/base-components/DataCarousel/es/**/*.js",
      "limit": "2 s",
      "webpack": false,
      "running": false
李纪文's avatar
李纪文 committed
347 348 349 350
    }
  ],
  "name": "wisdom-components"
}