package.json 3.42 KB
Newer Older
1
{
afc163's avatar
afc163 committed
2
  "name": "ant-design-pro",
jim's avatar
jim committed
3
  "version": "2.0.0-beta.1",
偏右'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",
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",
愚道'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": {
niko's avatar
niko committed
26
    "@antv/data-set": "^0.8.0",
陈帅's avatar
陈帅 committed
27
    "antd": "^3.7.0",
28
    "bizcharts": "^3.1.10",
jim's avatar
jim committed
29
    "bizcharts-plugin-slider": "^2.0.3",
陈帅's avatar
陈帅 committed
30
    "classnames": "^2.2.6",
jljsj's avatar
jljsj committed
31
    "enquire-js": "^0.2.1",
32
    "lodash-decorators": "^6.0.0",
33
    "lodash.isequal": "^4.5.0",
陈帅's avatar
陈帅 committed
34
    "memoize-one": "^4.0.0",
陈帅's avatar
陈帅 committed
35
    "moment": "^2.22.2",
36
    "numeral": "^2.0.6",
ddcat1115's avatar
ddcat1115 committed
37
    "omit.js": "^1.0.0",
陈帅's avatar
陈帅 committed
38 39
    "path-to-regexp": "^2.2.1",
    "prop-types": "^15.6.2",
陈帅's avatar
陈帅 committed
40
    "qs": "^6.5.2",
jim's avatar
jim committed
41
    "react-container-query": "^0.11.0",
陈帅's avatar
陈帅 committed
42
    "react-copy-to-clipboard": "^5.0.1",
43
    "react-document-title": "^2.0.3",
44
    "react-fittext": "^1.0.0",
陈帅's avatar
陈帅 committed
45
    "rollbar": "^2.4.2",
yoyo837's avatar
yoyo837 committed
46
    "setprototypeof": "^1.1.0",
陈帅's avatar
陈帅 committed
47
    "url-polyfill": "^1.0.13"
48 49
  },
  "devDependencies": {
陈帅's avatar
陈帅 committed
50
    "@babel/polyfill": "^7.0.0-beta.53",
陈帅's avatar
陈帅 committed
51
    "@types/react": "^16.4.4",
jim's avatar
jim committed
52
    "@types/react-dom": "^16.0.6",
陈帅's avatar
陈帅 committed
53
    "antd-pro-merge-less": "^0.0.1",
jim's avatar
jim committed
54
    "antd-theme-webpack-plugin": "^1.0.8",
陈帅's avatar
陈帅 committed
55
    "babel-eslint": "^8.2.6",
56
    "babel-plugin-dva-hmr": "^0.4.1",
57
    "babel-plugin-module-resolver": "^3.1.1",
jim's avatar
jim committed
58 59
    "babel-plugin-transform-decorators-legacy": "^1.3.4",
    "babel-runtime": "^6.9.2",
jim's avatar
jim committed
60
    "cross-env": "^5.1.1",
偏右's avatar
偏右 committed
61
    "cross-port-killer": "^1.0.1",
afc163's avatar
afc163 committed
62
    "enzyme": "^3.1.0",
陈帅's avatar
陈帅 committed
63
    "eslint": "^5.1.0",
64
    "eslint-config-airbnb": "^17.0.0",
jim's avatar
jim committed
65
    "eslint-config-prettier": "^2.9.0",
陈帅's avatar
陈帅 committed
66
    "eslint-config-umi": "^0.1.4",
jim's avatar
jim committed
67
    "eslint-plugin-babel": "^5.1.0",
afc163's avatar
afc163 committed
68
    "eslint-plugin-compat": "^2.1.0",
陈帅's avatar
陈帅 committed
69
    "eslint-plugin-flowtype": "2.50.0",
陈帅's avatar
陈帅 committed
70 71
    "eslint-plugin-import": "^2.8.0",
    "eslint-plugin-jsx-a11y": "^6.0.3",
nikogu's avatar
nikogu committed
72
    "eslint-plugin-markdown": "^1.0.0-beta.6",
jim's avatar
jim committed
73 74
    "eslint-plugin-react": "^7.9.1",
    "gh-pages": "^1.2.0",
afc163's avatar
afc163 committed
75
    "husky": "^0.14.3",
陈帅's avatar
陈帅 committed
76
    "lint-staged": "^7.2.0",
陈帅's avatar
陈帅 committed
77
    "merge-umi-mock-data": "^0.0.2",
chencheng's avatar
chencheng committed
78
    "mockjs": "^1.0.1-beta3",
陈帅's avatar
陈帅 committed
79
    "prettier": "1.13.7",
陈帅's avatar
陈帅 committed
80 81
    "pro-download": "^1.0.1",
    "redbox-react": "^1.5.0",
陈帅's avatar
陈帅 committed
82
    "regenerator-runtime": "^0.12.0",
jim's avatar
jim committed
83
    "stylelint": "^9.2.1",
jim's avatar
jim committed
84
    "stylelint-config-prettier": "^3.0.4",
85
    "stylelint-config-standard": "^18.0.0",
chencheng's avatar
chencheng committed
86 87
    "umi": "^2.0.0-beta.2",
    "umi-plugin-react": "^1.0.0-beta.2"
偏右's avatar
偏右 committed
88
  },
89
  "optionalDependencies": {
陈帅's avatar
陈帅 committed
90
    "puppeteer": "^1.6.0"
91
  },
偏右's avatar
偏右 committed
92
  "lint-staged": {
jim's avatar
jim committed
93
    "**/*.{js,jsx,less}": [
jim's avatar
jim committed
94
      "prettier --write",
jim's avatar
jim committed
95 96
      "git add"
    ],
jim's avatar
jim committed
97
    "**/*.{js,jsx}": "npm run lint-staged:js",
afc163's avatar
afc163 committed
98
    "**/*.less": "stylelint --syntax less"
afc163's avatar
afc163 committed
99
  },
afc163's avatar
afc163 committed
100
  "engines": {
ddcat1115's avatar
ddcat1115 committed
101
    "node": ">=8.0.0"
afc163's avatar
afc163 committed
102
  },
jim's avatar
jim committed
103 104 105 106 107
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not ie <= 10"
  ]
108
}