package.json 4.24 KB
{
  "name": "dik-dik",
  "version": "1.0.5",
  "private": true,
  "scripts": {
    "start": "cross-env PORT=8035 roadhog server --progress --watch --colors --profile",
    "build": "roadhog build",
    "lint": "eslint --ext .js src test",
    "precommit": "npm run lint"
  },
  "engines": {
    "install-node": "6.9.2"
  },
  "dependencies": {
    "@ant-design/compatible": "^1.0.8",
    "@ant-design/icons": "^4.6.2",
    "@antv/data-set": "0.10.1",
    "@antv/g2": "^4.1.24",
    "@js-preview/docx": "^1.3.0",
    "@js-preview/excel": "^1.4.4",
    "@js-preview/pdf": "^2.0.10",
    "ahooks": "^2.10.9",
    "antd": "^4.24.16",
    "antd-mobile": "^2.3.1",
    "babel-plugin-transform-decorators-legacy": "1.3.5",
    "babel-polyfill": "6.26.0",
    "babel-runtime": "6.26.0",
    "classnames": "^2.2.6",
    "copy-to-clipboard": "^3.3.1",
    "core-js": "3.6.5",
    "dhtmlx-gantt": "^7.1.6",
    "dva": "^2.4.1",
    "dva-router-config": "^1.1.0",
    "g-cloud": "1.0.2-beta",
    "g2": "2.3.13",
    "g2-plugin-slider": "1.2.1",
    "history": "^5.3.0",
    "immutability-helper": "^3.0.1",
    "jsqr": "^1.3.1",
    "lodash": "4.17.11",
    "lodash-decorators": "6.0.0",
    "lodash.clonedeep": "4.5.0",
    "moment": "2.22.2",
    "numeral": "2.0.6",
    "prop-types": "15.6.2",
    "qs": "6.5.2",
    "quagga": "^0.12.1",
    "rc-form": "^2.4.11",
    "react": "^18.2.0",
    "react-container-query": "0.11.0",
    "react-dnd": "^14.0.2",
    "react-dnd-html5-backend": "^14.0.0",
    "react-document-title": "2.0.3",
    "react-dom": "^18.2.0",
    "react-draggable": "4.4.5",
    "react-fittext": "1.0.0",
    "react-flow-renderer": "^10.3.16",
    "react-grid-layout": "1.3.4",
    "react-highlight-words": "0.16.0",
    "react-hot-keys": "1.3.1",
    "react-pdf": "^5.5.0",
    "react-resizable": "^3.0.4",
    "react-sortable-hoc": "^2.0.0",
    "react-to-print": "^3.0.2",
    "react-window": "^1.8.6",
    "sortablejs": "^1.15.0",
    "terser-webpack-plugin-legacy": "^1.2.5",
    "url-loader": "^4.1.1",
    "vconsole": "^3.3.4",
    "virtuallist-antd": "^0.6.3",
    "weixin-js-sdk": "^1.6.0"
  },
  "devDependencies": {
    "antd-mobile-icons": "^0.3.0",
    "babel-eslint": "8.2.5",
    "babel-jest": "21.0.0",
    "babel-plugin-dva-hmr": "0.4.1",
    "babel-plugin-dynamic-import-node": "^2.3.3",
    "babel-plugin-import": "1.11.0",
    "babel-plugin-transform-class-properties": "6.24.1",
    "babel-plugin-transform-decorators-legacy": "1.3.4",
    "babel-plugin-transform-runtime": "6.23.0",
    "babel-preset-env": "1.7.0",
    "babel-preset-react": "6.24.1",
    "braft-editor": "^2.3.9",
    "cross-env": "5.2.0",
    "cross-port-killer": "1.0.1",
    "dva-router-config": "^1.1.0",
    "enzyme": "3.7.0",
    "enzyme-adapter-react-16": "1.6.0",
    "eslint": "4.19.1",
    "eslint-config-airbnb": "16.1.0",
    "eslint-plugin-babel": "4.1.2",
    "eslint-plugin-compat": "2.6.2",
    "eslint-plugin-import": "2.14.0",
    "eslint-plugin-jsx-a11y": "6.1.2",
    "eslint-plugin-markdown": "1.0.0-beta.6",
    "eslint-plugin-react": "7.11.1",
    "expect": "1.20.2",
    "gh-pages": "1.2.0",
    "jest": "21.2.1",
    "lint-staged": "4.3.0",
    "lodash.flow": "^3.5.0",
    "mockjs": "1.0.1-beta3",
    "prettier": "1.14.3",
    "pro-download": "1.0.1",
    "react-test-renderer": "15.6.1",
    "redbox-react": "1.6.0",
    "roadhog-api-doc": "0.3.4",
    "rollbar": "2.5.0",
    "stylelint": "9.7.1",
    "stylelint-config-standard": "18.2.0",
    "svg-sprite-loader": "^6.0.11",
    "svgo-loader": "^3.0.0",
    "xly_roadhog": "^1.2.3"
  },
  "optionalDependencies": {
    "nightmare": "2.10.0"
  },
  "babel": {
    "presets": [
      "env",
      "react"
    ],
    "plugins": [
      "transform-decorators-legacy",
      "transform-class-properties"
    ]
  },
  "jest": {
    "setupFiles": [
      "<rootDir>/tests/setupTests.js"
    ],
    "testMatch": [
      "**/?(*.)(spec|test|e2e).js?(x)"
    ],
    "setupTestFrameworkScriptFile": "<rootDir>/tests/jasmine.js",
    "moduleFileExtensions": [
      "js",
      "jsx"
    ],
    "moduleNameMapper": {
      "\\.(css|less)$": "<rootDir>/tests/styleMock.js"
    }
  },
  "lint-staged": {
    "**/*.{js,jsx}": "lint-staged:js",
    "**/*.less": "stylelint --syntax less"
  },
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not ie <= 10"
  ]
}