package.json 3.38 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": "cd functions && npm install",
9
    "start": "cross-env ESLINT=none roadhog dev",
PKAQ's avatar
PKAQ committed
10
    "start:no-proxy": "cross-env NO_PROXY=true ESLINT=none roadhog dev",
偏右's avatar
偏右 committed
11
    "build": "cross-env ESLINT=none roadhog build",
陈帅's avatar
陈帅 committed
12
    "site": "npm run presite && rollup -c && npm run build && firebase deploy",
13
    "analyze": "cross-env ANALYZE=1 roadhog 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 20
    "test": "roadhog test",
    "test:component": "roadhog test ./src/components",
jim's avatar
jim committed
21 22
    "test:all": "node ./tests/run-tests.js",
    "prettier": "prettier --write ./src/**/**/**/*"
23 24
  },
  "dependencies": {
niko's avatar
niko committed
25
    "@antv/data-set": "^0.8.0",
陈帅's avatar
陈帅 committed
26
    "antd": "^3.6.2",
27
    "bizcharts": "^3.1.10",
jim's avatar
jim committed
28
    "bizcharts-plugin-slider": "^2.0.3",
陈帅's avatar
陈帅 committed
29 30 31
    "classnames": "^2.2.6",
    "dva": "^2.3.1",
    "dva-loading": "^2.0.3",
jljsj's avatar
jljsj committed
32
    "enquire-js": "^0.2.1",
33
    "lodash": "^4.17.4",
34
    "lodash-decorators": "^6.0.0",
35
    "lodash.isequal": "^4.5.0",
jim's avatar
jim committed
36
    "moment": "^2.22.0",
37
    "numeral": "^2.0.6",
ddcat1115's avatar
ddcat1115 committed
38
    "omit.js": "^1.0.0",
陈帅's avatar
陈帅 committed
39
    "path-to-regexp": "^2.1.0",
40 41
    "prop-types": "^15.5.10",
    "qs": "^6.5.0",
陈帅's avatar
陈帅 committed
42
    "rc-drawer": "^1.5.1",
43
    "react": "^16.4.0",
jim's avatar
jim committed
44
    "react-container-query": "^0.11.0",
45
    "react-document-title": "^2.0.3",
46
    "react-dom": "^16.4.0",
47
    "react-fittext": "^1.0.0",
48
    "rollbar": "^2.3.4",
陈帅's avatar
陈帅 committed
49 50
    "rollup": "^0.62.0",
    "rollup-plugin-json": "^3.0.0",
yoyo837's avatar
yoyo837 committed
51
    "setprototypeof": "^1.1.0",
52
    "url-polyfill": "^1.0.10"
53 54
  },
  "devDependencies": {
陈帅's avatar
陈帅 committed
55
    "@babel/polyfill": "^7.0.0-beta.36",
陈帅's avatar
陈帅 committed
56
    "@types/react": "^16.4.4",
jim's avatar
jim committed
57
    "@types/react-dom": "^16.0.6",
jim's avatar
jim committed
58
    "antd-theme-webpack-plugin": "^1.0.8",
陈帅's avatar
陈帅 committed
59
    "babel-eslint": "^8.1.2",
60
    "babel-plugin-dva-hmr": "^0.4.1",
陈帅's avatar
陈帅 committed
61
    "babel-plugin-import": "^1.8.0",
62
    "babel-plugin-module-resolver": "^3.1.1",
jim's avatar
jim committed
63 64
    "babel-plugin-transform-decorators-legacy": "^1.3.4",
    "babel-runtime": "^6.9.2",
jim's avatar
jim committed
65
    "cross-env": "^5.1.1",
偏右's avatar
偏右 committed
66
    "cross-port-killer": "^1.0.1",
afc163's avatar
afc163 committed
67
    "enzyme": "^3.1.0",
陈帅's avatar
陈帅 committed
68
    "eslint": "^5.0.1",
69
    "eslint-config-airbnb": "^17.0.0",
jim's avatar
jim committed
70
    "eslint-config-prettier": "^2.9.0",
jim's avatar
jim committed
71
    "eslint-plugin-babel": "^5.1.0",
afc163's avatar
afc163 committed
72
    "eslint-plugin-compat": "^2.1.0",
陈帅's avatar
陈帅 committed
73 74
    "eslint-plugin-import": "^2.8.0",
    "eslint-plugin-jsx-a11y": "^6.0.3",
nikogu's avatar
nikogu committed
75
    "eslint-plugin-markdown": "^1.0.0-beta.6",
jim's avatar
jim committed
76 77
    "eslint-plugin-react": "^7.9.1",
    "gh-pages": "^1.2.0",
afc163's avatar
afc163 committed
78
    "husky": "^0.14.3",
陈帅's avatar
陈帅 committed
79
    "lint-staged": "^7.2.0",
80
    "mockjs": "^1.0.1-beta3",
陈帅's avatar
陈帅 committed
81
    "prettier": "1.13.6",
陈帅's avatar
陈帅 committed
82 83
    "pro-download": "^1.0.1",
    "redbox-react": "^1.5.0",
陈帅's avatar
陈帅 committed
84
    "regenerator-runtime": "^0.12.0",
jim's avatar
jim committed
85
    "roadhog": "^2.4.2",
jim's avatar
jim committed
86
    "stylelint": "^9.2.1",
jim's avatar
jim committed
87
    "stylelint-config-prettier": "^3.0.4",
88
    "stylelint-config-standard": "^18.0.0"
偏右's avatar
偏右 committed
89
  },
90
  "optionalDependencies": {
陈帅's avatar
陈帅 committed
91
    "puppeteer": "^1.5.0"
92
  },
偏右's avatar
偏右 committed
93
  "lint-staged": {
jim's avatar
jim committed
94
    "**/*.{js,jsx,less}": [
jim's avatar
jim committed
95
      "prettier --write",
jim's avatar
jim committed
96 97
      "git add"
    ],
jim's avatar
jim committed
98
    "**/*.{js,jsx}": "npm run lint-staged:js",
afc163's avatar
afc163 committed
99
    "**/*.less": "stylelint --syntax less"
afc163's avatar
afc163 committed
100
  },
afc163's avatar
afc163 committed
101
  "engines": {
ddcat1115's avatar
ddcat1115 committed
102
    "node": ">=8.0.0"
afc163's avatar
afc163 committed
103
  },
jim's avatar
jim committed
104 105 106 107 108
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not ie <= 10"
  ]
109
}