package.json 8.33 KB
Newer Older
dengxiaofeng's avatar
dengxiaofeng committed
1
{
邓晓峰's avatar
邓晓峰 committed
2
  "name": "CivBase",
邓晓峰's avatar
邓晓峰 committed
3
  "version": "0.0.14",
dengxiaofeng's avatar
dengxiaofeng committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
  "description": "",
  "repository": {
    "type": "git",
    "url": "https://g.civnet.cn:8443/test/maintenance.git"
  },
  "engines": {
    "npm": ">=5",
    "node": ">=8.15.1"
  },
  "author": "dengxiaofeng",
  "license": "MIT",
  "scripts": {
    "analyze:clean": "rimraf stats.json",
    "preanalyze": "npm run analyze:clean",
    "analyze": "node ./internals/scripts/analyze.js",
    "npmcheckversion": "node ./internals/scripts/npmcheckversion.js",
    "preinstall": "npm run npmcheckversion",
21
    "build": "cross-env NODE_ENV=production node internals/webpack/build.js",
dengxiaofeng's avatar
dengxiaofeng committed
22
    "build:clean": "rimraf ./build",
邓晓峰's avatar
邓晓峰 committed
23
    "start": "cross-env NODE_ENV=development node server --port=$port",
dengxiaofeng's avatar
dengxiaofeng committed
24
    "start:tunnel": "cross-env NODE_ENV=development ENABLE_TUNNEL=true node server",
邓晓峰's avatar
邓晓峰 committed
25
    "start:production": "npm run test && npm run build && npm run start:prod",
dengxiaofeng's avatar
dengxiaofeng committed
26 27 28 29 30 31 32 33 34 35 36 37
    "start:prod": "cross-env NODE_ENV=production node server",
    "release": "np --no-cleanup --yolo --no-publish",
    "cm": "git-cz",
    "log": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md",
    "docs:dev": "dumi dev",
    "docs:build": "dumi build",
    "update:deps": "yarn upgrade-interactive --latest",
    "presetup": "npm i chalk shelljs",
    "setup": "node ./internals/scripts/setup.js",
    "clean": "shjs ./internals/scripts/clean.js",
    "clean:all": "npm run analyze:clean && npm run test:clean && npm run build:clean",
    "generate": "plop --plopfile internals/generators/index.js",
邓晓峰's avatar
邓晓峰 committed
38 39
    "lint": "npm run lint:js  && npm run lint:prettier",
    "lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
dengxiaofeng's avatar
dengxiaofeng committed
40 41
    "lint:eslint": "eslint --ignore-path .gitignore --ignore-pattern internals/scripts",
    "lint:eslint:fix": "eslint --ignore-path .gitignore --ignore-pattern internals/scripts --fix",
邓晓峰's avatar
邓晓峰 committed
42
    "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
43 44
    "lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src ",
    "lint:prettier": "prettier -c ./src/**/*.js",
dengxiaofeng's avatar
dengxiaofeng committed
45 46
    "lint:staged": "lint-staged",
    "pretest": "npm run test:clean && npm run lint",
47
    "prettier": "prettier --write ./src/**/*.js",
dengxiaofeng's avatar
dengxiaofeng committed
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
    "test:clean": "rimraf ./coverage",
    "test": "cross-env NODE_ENV=test jest --coverage",
    "test:watch": "cross-env NODE_ENV=test jest --watchAll",
    "coveralls": "cat ./coverage/lcov.info | coveralls",
    "prettify": "prettier --write"
  },
  "browserslist": [
    "last 2 versions",
    "> 1%",
    "IE 10"
  ],
  "config": {
    "commitizen": {
      "path": "cz-conventional-changelog"
    }
  },
  "husky": {
    "hooks": {
邓晓峰's avatar
邓晓峰 committed
66
      "pre-commit": "lint-staged",
邓晓峰's avatar
邓晓峰 committed
67
      "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
dengxiaofeng's avatar
dengxiaofeng committed
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
    }
  },
  "lint-staged": {
    "*.js": [
      "npm run lint:eslint:fix",
      "git add --force"
    ],
    "*.json": [
      "prettier --write",
      "git add --force"
    ]
  },
  "pre-commit": "lint:staged",
  "resolutions": {
    "babel-core": "7.0.0-bridge.0"
  },
  "dependencies": {
    "@babel/polyfill": "7.4.3",
    "@babel/runtime": "^7.10.5",
    "animate.css": "^4.1.1",
    "chalk": "2.4.2",
    "compression": "1.7.4",
    "connected-react-router": "6.4.0",
    "express": "4.16.4",
    "fontfaceobserver": "2.1.0",
    "history": "4.9.0",
    "hoist-non-react-statics": "3.3.0",
    "immer": "3.0.0",
    "immutable": "^4.0.0-rc.12",
    "intl": "1.2.5",
    "invariant": "2.2.4",
    "ip": "1.1.5",
邓晓峰's avatar
邓晓峰 committed
100 101
    "js-base64": "^3.5.2",
    "js-cookie": "^2.2.1",
邓晓峰's avatar
邓晓峰 committed
102
    "kit_global_config": "^1.0.9",
邓晓峰's avatar
邓晓峰 committed
103
    "kit_logger": "^1.0.2",
邓晓峰's avatar
邓晓峰 committed
104
    "kit_utils": "^1.3.6",
dengxiaofeng's avatar
dengxiaofeng committed
105 106
    "lodash": "4.17.11",
    "minimist": "1.2.0",
邓晓峰's avatar
邓晓峰 committed
107
    "mqtt-client": "^1.0.11",
邓晓峰's avatar
邓晓峰 committed
108
    "omit.js": "^2.0.2",
邓晓峰's avatar
邓晓峰 committed
109
    "pinyin-match": "^1.1.1",
dengxiaofeng's avatar
dengxiaofeng committed
110
    "prop-types": "15.7.2",
111
    "qiankun": "^2.2.4",
邓晓峰's avatar
邓晓峰 committed
112 113 114
    "qrcode.react": "^1.0.0",
    "react": "16.12.0",
    "react-dom": "16.12.0",
邓晓峰's avatar
邓晓峰 committed
115
    "react-draggable": "^4.4.3",
dengxiaofeng's avatar
dengxiaofeng committed
116 117 118
    "react-helmet": "6.0.0-beta",
    "react-intl": "2.8.0",
    "react-redux": "7.0.2",
邓晓峰's avatar
邓晓峰 committed
119
    "react-router-dom": "5.1.0",
邓晓峰's avatar
邓晓峰 committed
120
    "react-use": "^15.3.4",
dengxiaofeng's avatar
dengxiaofeng committed
121 122 123 124
    "redux": "4.0.1",
    "redux-saga": "1.0.2",
    "reselect": "4.0.0",
    "sanitize.css": "8.0.0",
邓晓峰's avatar
邓晓峰 committed
125
    "sha1": "^1.1.1",
dengxiaofeng's avatar
dengxiaofeng committed
126 127 128 129 130
    "styled-components": "4.2.0",
    "use-merge-value": "^1.0.2"
  },
  "devDependencies": {
    "@ant-design/icons": "^4.0.0",
邓晓峰's avatar
邓晓峰 committed
131
    "@ant-design/pro-layout": "^6.7.0",
邓晓峰's avatar
邓晓峰 committed
132
    "@ant-design/pro-skeleton": "^1.0.0-beta.2",
dengxiaofeng's avatar
dengxiaofeng committed
133
    "@ant-design/pro-table": "^2.5.3",
邓晓峰's avatar
邓晓峰 committed
134
    "@ant-design/pro-utils": "^1.4.0",
dengxiaofeng's avatar
dengxiaofeng committed
135 136 137 138 139 140 141 142 143 144 145 146
    "@babel/cli": "7.4.3",
    "@babel/core": "7.4.3",
    "@babel/plugin-proposal-class-properties": "7.4.0",
    "@babel/plugin-syntax-dynamic-import": "7.2.0",
    "@babel/plugin-transform-modules-commonjs": "7.4.3",
    "@babel/plugin-transform-react-constant-elements": "7.2.0",
    "@babel/plugin-transform-react-inline-elements": "7.2.0",
    "@babel/preset-env": "7.4.3",
    "@babel/preset-react": "7.0.0",
    "@babel/register": "7.4.0",
    "@commitlint/cli": "^9.1.2",
    "@commitlint/config-conventional": "^9.1.2",
邓晓峰's avatar
邓晓峰 committed
147
    "@umijs/fabric": "^2.2.0",
邓晓峰's avatar
邓晓峰 committed
148
    "@umijs/hooks": "^1.9.3",
dengxiaofeng's avatar
dengxiaofeng committed
149
    "add-asset-html-webpack-plugin": "3.1.3",
邓晓峰's avatar
邓晓峰 committed
150
    "antd": "^4.9.4",
dengxiaofeng's avatar
dengxiaofeng committed
151 152 153 154 155 156 157 158 159 160 161
    "axios": "^0.19.2",
    "babel-core": "7.0.0-bridge.0",
    "babel-eslint": "10.0.1",
    "babel-loader": "8.0.5",
    "babel-plugin-dynamic-import-node": "2.2.0",
    "babel-plugin-import": "^1.13.0",
    "babel-plugin-lodash": "3.3.4",
    "babel-plugin-react-intl": "3.0.1",
    "babel-plugin-styled-components": "1.10.0",
    "babel-plugin-transform-react-remove-prop-types": "0.4.24",
    "bcore": "^0.0.22",
邓晓峰's avatar
邓晓峰 committed
162
    "child_process": "^1.0.2",
dengxiaofeng's avatar
dengxiaofeng committed
163 164 165 166
    "circular-dependency-plugin": "5.0.2",
    "classnames": "^2.2.6",
    "compare-versions": "3.4.0",
    "compression-webpack-plugin": "2.0.0",
邓晓峰's avatar
邓晓峰 committed
167
    "connect-api-mocker": "^1.9.0",
dengxiaofeng's avatar
dengxiaofeng committed
168
    "conventional-changelog-cli": "^2.1.0",
邓晓峰's avatar
邓晓峰 committed
169
    "copy-webpack-plugin": "^5.0.4",
dengxiaofeng's avatar
dengxiaofeng committed
170 171
    "core-js": "^3.6.5",
    "coveralls": "3.0.3",
邓晓峰's avatar
邓晓峰 committed
172
    "cross-env": "^5.2.1",
dengxiaofeng's avatar
dengxiaofeng committed
173 174 175
    "css-loader": "^4.2.1",
    "cz-customizable": "^6.3.0",
    "dumi": "^1.0.13",
邓晓峰's avatar
邓晓峰 committed
176
    "eslint": "^5.16.0",
dengxiaofeng's avatar
dengxiaofeng committed
177 178 179 180
    "eslint-config-airbnb": "17.1.0",
    "eslint-config-airbnb-base": "13.1.0",
    "eslint-config-prettier": "4.1.0",
    "eslint-import-resolver-webpack": "0.11.1",
邓晓峰's avatar
邓晓峰 committed
181
    "eslint-plugin-import": "^2.17.2",
dengxiaofeng's avatar
dengxiaofeng committed
182 183 184 185 186
    "eslint-plugin-jsx-a11y": "6.2.1",
    "eslint-plugin-prettier": "3.0.1",
    "eslint-plugin-react": "7.12.4",
    "eslint-plugin-react-hooks": "1.6.0",
    "eslint-plugin-redux-saga": "1.0.0",
邓晓峰's avatar
邓晓峰 committed
187
    "express": "^4.17.1",
dengxiaofeng's avatar
dengxiaofeng committed
188
    "file-loader": "3.0.1",
邓晓峰's avatar
邓晓峰 committed
189
    "fs": "0.0.1-security",
邓晓峰's avatar
邓晓峰 committed
190
    "fs-extra": "^9.0.1",
dengxiaofeng's avatar
dengxiaofeng committed
191 192 193 194 195 196 197 198
    "html-loader": "0.5.5",
    "html-webpack-plugin": "3.2.0",
    "http-proxy-middleware": "^1.0.5",
    "husky": "^2.3.0",
    "imports-loader": "0.8.0",
    "jest-cli": "24.7.1",
    "jest-dom": "3.1.3",
    "jest-styled-components": "6.3.1",
邓晓峰's avatar
邓晓峰 committed
199
    "jsonp": "^0.2.1",
dengxiaofeng's avatar
dengxiaofeng committed
200 201 202 203
    "less": "3.12.0",
    "less-loader": "5.0.0",
    "lint-staged": "8.1.5",
    "lodash": "^4.17.11",
邓晓峰's avatar
邓晓峰 committed
204
    "mockjs": "^1.0.1-beta3",
dengxiaofeng's avatar
dengxiaofeng committed
205
    "moment": "^2.25.3",
邓晓峰's avatar
邓晓峰 committed
206
    "mousetrap": "^1.6.5",
邓晓峰's avatar
邓晓峰 committed
207
    "nanoid": "^3.1.16",
dengxiaofeng's avatar
dengxiaofeng committed
208 209
    "ngrok": "3.1.1",
    "node-plop": "0.18.0",
邓晓峰's avatar
邓晓峰 committed
210
    "np": "^7.0.0",
dengxiaofeng's avatar
dengxiaofeng committed
211 212
    "null-loader": "0.1.1",
    "offline-plugin": "5.0.6",
邓晓峰's avatar
邓晓峰 committed
213
    "ora": "^5.1.0",
邓晓峰's avatar
邓晓峰 committed
214
    "path-to-regexp": "^2.4.0",
dengxiaofeng's avatar
dengxiaofeng committed
215 216 217 218 219 220 221 222 223 224 225 226 227 228
    "plop": "2.3.0",
    "postcss": "7.0.32",
    "postcss-flexbugs-fixes": "4.2.1",
    "postcss-loader": "3.0.0",
    "postcss-preset-env": "6.7.0",
    "postcss-safe-parser": "4.0.2",
    "pre-commit": "1.2.2",
    "prettier": "1.17.0",
    "qs": "^6.9.0",
    "react": "^16.8.6",
    "react-app-polyfill": "0.2.2",
    "react-dom": "^16.8.6",
    "react-helmet-async": "^1.0.4",
    "react-router-config": "^5.1.1",
邓晓峰's avatar
邓晓峰 committed
229
    "react-sticky": "^6.0.3",
dengxiaofeng's avatar
dengxiaofeng committed
230 231 232 233 234 235 236 237 238
    "react-test-renderer": "16.8.6",
    "react-testing-library": "6.1.2",
    "redux-immutable": "^4.0.0",
    "redux-logger": "^3.0.6",
    "redux-thunk": "^2.3.0",
    "regenerator-runtime": "^0.13.7",
    "rimraf": "2.6.3",
    "shelljs": "0.8.3",
    "slash2": "^2.0.0",
邓晓峰's avatar
邓晓峰 committed
239
    "spinner": "^0.3.4",
dengxiaofeng's avatar
dengxiaofeng committed
240 241 242 243 244 245 246 247
    "style-loader": "^1.2.1",
    "stylelint": "10.0.1",
    "stylelint-config-recommended": "2.2.0",
    "stylelint-config-styled-components": "0.1.1",
    "stylelint-processor-styled-components": "1.6.0",
    "svg-url-loader": "2.3.2",
    "terser-webpack-plugin": "1.2.3",
    "url-loader": "1.1.2",
邓晓峰's avatar
邓晓峰 committed
248
    "webpack": "4.44.1",
dengxiaofeng's avatar
dengxiaofeng committed
249 250 251
    "webpack-cli": "3.3.0",
    "webpack-dev-middleware": "3.6.2",
    "webpack-hot-middleware": "2.24.3",
邓晓峰's avatar
邓晓峰 committed
252
    "webpack-manifest-plugin": "^3.0.0",
dengxiaofeng's avatar
dengxiaofeng committed
253 254 255 256 257
    "webpack-pwa-manifest": "4.0.0",
    "whatwg-fetch": "3.0.0",
    "yorkie": "^2.0.0"
  }
}