package.json 3.5 KB
Newer Older
1
{
A
afc163 已提交
2
  "name": "ant-design-pro",
陈帅 已提交
3
  "version": "2.0.0-beta.3",
偏右 已提交
4
  "description": "An out-of-box UI solution for enterprise applications",
5 6
  "private": true,
  "scripts": {
偏右 已提交
7
    "precommit": "npm run lint-staged",
陈帅 已提交
8
    "presite": "npm run generate-mock && cd functions && npm install",
9 10 11
    "start": "cross-env ESLINT=none umi dev",
    "start:no-mock": "cross-env MOCK=none ESLINT=none umi dev",
    "build": "cross-env ESLINT=none umi build",
12
    "site": "npm run presite && npm run build && firebase deploy",
愚道 已提交
13
    "analyze": "cross-env ANALYZE=1 umi build",
N
nikogu 已提交
14 15
    "lint:style": "stylelint \"src/**/*.less\" --syntax less",
    "lint": "eslint --ext .js src mock tests && npm run lint:style",
A
afc163 已提交
16
    "lint:fix": "eslint --fix --ext .js src mock tests && npm run lint:style",
偏右 已提交
17 18
    "lint-staged": "lint-staged",
    "lint-staged:js": "eslint --ext .js",
愚道 已提交
19
    "test": "umi test",
陈帅 已提交
20
    "generate-mock": "node ./scripts/generateMock.js",
愚道 已提交
21
    "test:component": "umi test ./src/components",
J
jim 已提交
22 23
    "test:all": "node ./tests/run-tests.js",
    "prettier": "prettier --write ./src/**/**/**/*"
24 25
  },
  "dependencies": {
N
niko 已提交
26
    "@antv/data-set": "^0.8.0",
陈帅 已提交
27
    "antd": "^3.7.0",
28
    "bizcharts": "^3.1.10",
J
jim 已提交
29
    "bizcharts-plugin-slider": "^2.0.3",
陈帅 已提交
30
    "classnames": "^2.2.6",
J
jljsj 已提交
31
    "enquire-js": "^0.2.1",
32
    "lodash-decorators": "^6.0.0",
33
    "lodash.isequal": "^4.5.0",
陈帅 已提交
34
    "memoize-one": "^4.0.0",
陈帅 已提交
35
    "moment": "^2.22.2",
36
    "numeral": "^2.0.6",
D
ddcat1115 已提交
37
    "omit.js": "^1.0.0",
陈帅 已提交
38 39
    "path-to-regexp": "^2.2.1",
    "prop-types": "^15.6.2",
陈帅 已提交
40
    "qs": "^6.5.2",
J
jim 已提交
41
    "react-container-query": "^0.11.0",
陈帅 已提交
42
    "react-copy-to-clipboard": "^5.0.1",
43
    "react-document-title": "^2.0.3",
44
    "react-fittext": "^1.0.0",
陈帅 已提交
45
    "rollbar": "^2.4.2",
yoyo83773's avatar
yoyo83773 已提交
46
    "setprototypeof": "^1.1.0",
陈帅 已提交
47
    "url-polyfill": "^1.0.13"
48 49
  },
  "devDependencies": {
陈帅 已提交
50
    "@babel/polyfill": "^7.0.0-beta.53",
陈帅 已提交
51
    "@types/react": "^16.4.4",
J
jim 已提交
52
    "@types/react-dom": "^16.0.6",
陈帅 已提交
53
    "antd-pro-merge-less": "^0.0.1",
J
jim 已提交
54
    "antd-theme-webpack-plugin": "^1.0.8",
陈帅 已提交
55
    "babel-eslint": "^8.2.6",
C
chencheng (云谦) 已提交
56
    "babel-plugin-dva-hmr": "^0.4.1",
陈帅 已提交
57
    "babel-plugin-import": "^1.8.0",
58
    "babel-plugin-module-resolver": "^3.1.1",
J
jim 已提交
59 60
    "babel-plugin-transform-decorators-legacy": "^1.3.4",
    "babel-runtime": "^6.9.2",
J
jim 已提交
61
    "cross-env": "^5.1.1",
偏右 已提交
62
    "cross-port-killer": "^1.0.1",
A
afc163 已提交
63
    "enzyme": "^3.1.0",
陈帅 已提交
64
    "eslint": "^5.1.0",
65
    "eslint-config-airbnb": "^17.0.0",
J
jim 已提交
66
    "eslint-config-prettier": "^2.9.0",
陈帅 已提交
67
    "eslint-config-umi": "^0.1.4",
J
jim 已提交
68
    "eslint-plugin-babel": "^5.1.0",
A
afc163 已提交
69
    "eslint-plugin-compat": "^2.1.0",
陈帅 已提交
70
    "eslint-plugin-flowtype": "2.50.0",
陈帅 已提交
71 72
    "eslint-plugin-import": "^2.8.0",
    "eslint-plugin-jsx-a11y": "^6.0.3",
N
nikogu 已提交
73
    "eslint-plugin-markdown": "^1.0.0-beta.6",
J
jim 已提交
74 75
    "eslint-plugin-react": "^7.9.1",
    "gh-pages": "^1.2.0",
A
afc163 已提交
76
    "husky": "^0.14.3",
陈帅 已提交
77
    "lint-staged": "^7.2.0",
陈帅 已提交
78
    "merge-umi-mock-data": "^0.0.2",
陈帅 已提交
79
    "mockjs": "^1.0.1-beta3",
陈帅 已提交
80
    "prettier": "1.13.7",
陈帅 已提交
81
    "pro-download": "^1.0.1",
82
    "react-loadable": "^5.4.0",
陈帅 已提交
83
    "redbox-react": "^1.5.0",
陈帅 已提交
84
    "regenerator-runtime": "^0.12.0",
J
jim 已提交
85
    "stylelint": "^9.2.1",
J
jim 已提交
86
    "stylelint-config-prettier": "^3.0.4",
87
    "stylelint-config-standard": "^18.0.0",
陈帅 已提交
88 89
    "umi": "^1.3.15",
    "umi-plugin-dva": "^0.9.1",
陈帅 已提交
90 91
    "umi-plugin-locale": "^1.0.1",
    "umi-plugin-routes": "^0.1.5"
偏右 已提交
92
  },
93
  "optionalDependencies": {
陈帅 已提交
94
    "puppeteer": "^1.6.0"
95
  },
偏右 已提交
96
  "lint-staged": {
J
jim 已提交
97
    "**/*.{js,jsx,less}": [
J
jim 已提交
98
      "prettier --write",
J
jim 已提交
99 100
      "git add"
    ],
J
jim 已提交
101
    "**/*.{js,jsx}": "npm run lint-staged:js",
A
afc163 已提交
102
    "**/*.less": "stylelint --syntax less"
A
afc163 已提交
103
  },
A
afc163 已提交
104
  "engines": {
D
ddcat1115 已提交
105
    "node": ">=8.0.0"
A
afc163 已提交
106
  },
J
jim 已提交
107 108 109 110 111
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not ie <= 10"
  ]
112
}