package.json 3.21 KB
Newer Older
1
{
afc163's avatar
afc163 committed
2
  "name": "ant-design-pro",
陈帅's avatar
陈帅 committed
3
  "version": "2.0.0",
偏右's avatar
偏右 committed
4
  "description": "An out-of-box UI solution for enterprise applications",
5 6
  "private": true,
  "scripts": {
偏右's avatar
偏右 committed
7
    "precommit": "npm run lint-staged",
陈帅's avatar
陈帅 committed
8
    "presite": "npm run generate-mock && cd functions && npm install",
chencheng's avatar
chencheng committed
9
    "start": "cross-env APP_TYPE=site umi dev",
sorrycc's avatar
sorrycc committed
10
    "start:no-mock": "cross-env MOCK=none umi dev",
11
    "build": "umi build",
12
    "site": "npm run presite && cross-env APP_TYPE=site npm run build && firebase deploy",
愚道's avatar
愚道 committed
13
    "analyze": "cross-env ANALYZE=1 umi build",
nikogu's avatar
nikogu committed
14 15
    "lint:style": "stylelint \"src/**/*.less\" --syntax less",
    "lint": "eslint --ext .js src mock tests && npm run lint:style",
afc163's avatar
afc163 committed
16
    "lint:fix": "eslint --fix --ext .js src mock tests && npm run lint:style",
偏右's avatar
偏右 committed
17 18
    "lint-staged": "lint-staged",
    "lint-staged:js": "eslint --ext .js",
愚道's avatar
愚道 committed
19
    "test": "umi test",
陈帅's avatar
陈帅 committed
20
    "generate-mock": "node ./scripts/generateMock.js",
愚道's avatar
愚道 committed
21
    "test:component": "umi test ./src/components",
jim's avatar
jim committed
22 23
    "test:all": "node ./tests/run-tests.js",
    "prettier": "prettier --write ./src/**/**/**/*"
24 25
  },
  "dependencies": {
26
    "@antv/data-set": "^0.9.5",
afc163's avatar
afc163 committed
27
    "@babel/runtime": "^7.0.0",
陈帅's avatar
陈帅 committed
28
    "antd": "^3.9.1",
29
    "bizcharts": "^3.1.10",
jim's avatar
jim committed
30
    "bizcharts-plugin-slider": "^2.0.3",
陈帅's avatar
陈帅 committed
31
    "classnames": "^2.2.6",
afc163's avatar
afc163 committed
32
    "dva": "^2.4.0",
jljsj's avatar
jljsj committed
33
    "enquire-js": "^0.2.1",
afc163's avatar
afc163 committed
34 35
    "hash.js": "^1.1.5",
    "lodash": "^4.17.10",
36
    "lodash-decorators": "^6.0.0",
陈帅's avatar
陈帅 committed
37
    "memoize-one": "^4.0.0",
陈帅's avatar
陈帅 committed
38
    "moment": "^2.22.2",
39
    "numeral": "^2.0.6",
陈帅's avatar
陈帅 committed
40
    "nzh": "^1.0.3",
ddcat1115's avatar
ddcat1115 committed
41
    "omit.js": "^1.0.0",
afc163's avatar
afc163 committed
42
    "path-to-regexp": "^2.4.0",
43
    "prop-types": "^15.5.10",
afc163's avatar
afc163 committed
44
    "qs": "^6.5.2",
afc163's avatar
afc163 committed
45
    "rc-animate": "^2.4.4",
陈帅's avatar
陈帅 committed
46
    "react": "^16.4.1",
jim's avatar
jim committed
47
    "react-container-query": "^0.11.0",
陈帅's avatar
陈帅 committed
48
    "react-copy-to-clipboard": "^5.0.1",
49
    "react-document-title": "^2.0.3",
afc163's avatar
afc163 committed
50 51
    "react-dom": "^16.4.2",
    "react-fittext": "^1.0.0",
afc163's avatar
afc163 committed
52
    "react-router-config": "^1.0.0-beta.4",
愚道's avatar
愚道 committed
53
    "react-router-dom": "^4.3.1"
54 55
  },
  "devDependencies": {
陈帅's avatar
陈帅 committed
56
    "@types/react": "^16.4.11",
jim's avatar
jim committed
57
    "@types/react-dom": "^16.0.6",
陈帅's avatar
陈帅 committed
58
    "antd-pro-merge-less": "^0.0.9",
陈帅's avatar
陈帅 committed
59
    "antd-pro-theme-webpack-plugin": "^1.1.8",
afc163's avatar
afc163 committed
60
    "babel-eslint": "^9.0.0",
jim's avatar
jim committed
61
    "cross-env": "^5.1.1",
偏右's avatar
偏右 committed
62
    "cross-port-killer": "^1.0.1",
陈帅's avatar
陈帅 committed
63 64
    "enzyme": "^3.4.4",
    "eslint": "^5.4.0",
65
    "eslint-config-airbnb": "^17.0.0",
陈帅's avatar
陈帅 committed
66
    "eslint-config-prettier": "^3.0.1",
jim's avatar
jim committed
67
    "eslint-plugin-babel": "^5.1.0",
陈帅's avatar
陈帅 committed
68
    "eslint-plugin-compat": "^2.5.1",
陈帅's avatar
陈帅 committed
69 70
    "eslint-plugin-import": "^2.8.0",
    "eslint-plugin-jsx-a11y": "^6.0.3",
nikogu's avatar
nikogu committed
71
    "eslint-plugin-markdown": "^1.0.0-beta.6",
陈帅's avatar
陈帅 committed
72
    "eslint-plugin-react": "^7.11.1",
jim's avatar
jim committed
73
    "gh-pages": "^1.2.0",
74
    "husky": "^0.14.3",
陈帅's avatar
陈帅 committed
75
    "lint-staged": "^7.2.0",
陈帅's avatar
陈帅 committed
76
    "merge-umi-mock-data": "^0.0.3",
陈帅's avatar
陈帅 committed
77
    "mockjs": "^1.0.1-beta3",
陈帅's avatar
陈帅 committed
78
    "prettier": "1.14.2",
陈帅's avatar
陈帅 committed
79
    "pro-download": "^1.0.1",
陈帅's avatar
陈帅 committed
80
    "stylelint": "^9.4.0",
陈帅's avatar
陈帅 committed
81
    "stylelint-config-prettier": "^4.0.0",
陈帅's avatar
陈帅 committed
82 83 84
    "stylelint-config-standard": "^18.0.0",
    "umi": "^2.0.1",
    "umi-plugin-react": "^1.0.1"
偏右's avatar
偏右 committed
85
  },
86
  "optionalDependencies": {
陈帅's avatar
陈帅 committed
87
    "puppeteer": "^1.6.0"
88
  },
偏右's avatar
偏右 committed
89
  "lint-staged": {
jim's avatar
jim committed
90
    "**/*.{js,jsx,less}": [
jim's avatar
jim committed
91
      "prettier --write",
jim's avatar
jim committed
92 93
      "git add"
    ],
jim's avatar
jim committed
94
    "**/*.{js,jsx}": "npm run lint-staged:js",
afc163's avatar
afc163 committed
95
    "**/*.less": "stylelint --syntax less"
afc163's avatar
afc163 committed
96
  },
afc163's avatar
afc163 committed
97
  "engines": {
ddcat1115's avatar
ddcat1115 committed
98
    "node": ">=8.0.0"
afc163's avatar
afc163 committed
99
  },
jim's avatar
jim committed
100 101 102 103 104
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not ie <= 10"
  ]
105
}