package.json 3.45 KB
Newer Older
1
{
afc163's avatar
afc163 committed
2
  "name": "ant-design-pro",
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": "node ./scripts/generateMock.js && 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 20
    "test": "umi test",
    "test:component": "umi test ./src/components",
jim's avatar
jim committed
21
    "test:all": "node ./tests/run-tests.js",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
22 23 24 25 26
    "prettier": "prettier --write ./src/**/**/**/*",
    "docker:dev":"docker-compose -f ./docker/docker-compose.dev.yml up",
    "docker:build":"docker-compose -f ./docker/docker-compose.dev.yml build",
    "docker-prod:dev":"docker-compose -f ./docker/docker-compose.yml up",
    "docker-prod:build":"docker-compose -f ./docker/docker-compose.yml build"
27 28
  },
  "dependencies": {
29
    "@antv/data-set": "^0.9.6",
afc163's avatar
afc163 committed
30
    "@babel/runtime": "^7.0.0",
31 32
    "antd": "^3.9.2",
    "bizcharts": "^3.2.2",
jim's avatar
jim committed
33
    "bizcharts-plugin-slider": "^2.0.3",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
34
    "classnames": "^2.2.6",
afc163's avatar
afc163 committed
35
    "dva": "^2.4.0",
jljsj's avatar
jljsj committed
36
    "enquire-js": "^0.2.1",
afc163's avatar
afc163 committed
37 38
    "hash.js": "^1.1.5",
    "lodash": "^4.17.10",
39
    "lodash-decorators": "^6.0.0",
40
    "memoize-one": "^4.0.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
41
    "moment": "^2.22.2",
42
    "numeral": "^2.0.6",
43
    "nzh": "^1.0.3",
ddcat1115's avatar
ddcat1115 committed
44
    "omit.js": "^1.0.0",
afc163's avatar
afc163 committed
45
    "path-to-regexp": "^2.4.0",
46
    "prop-types": "^15.5.10",
afc163's avatar
afc163 committed
47
    "qs": "^6.5.2",
afc163's avatar
afc163 committed
48
    "rc-animate": "^2.4.4",
49
    "react": "^16.5.1",
jim's avatar
jim committed
50
    "react-container-query": "^0.11.0",
51
    "react-copy-to-clipboard": "^5.0.1",
52
    "react-document-title": "^2.0.3",
53
    "react-dom": "^16.5.1",
afc163's avatar
afc163 committed
54
    "react-fittext": "^1.0.0",
ๆ„š้“'s avatar
ๆ„š้“ committed
55
    "react-router-dom": "^4.3.1"
56 57
  },
  "devDependencies": {
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
58
    "@types/react": "^16.4.11",
jim's avatar
jim committed
59
    "@types/react-dom": "^16.0.6",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
60
    "antd-pro-merge-less": "^0.0.9",
61
    "antd-pro-theme-webpack-plugin": "^1.1.8",
afc163's avatar
afc163 committed
62
    "babel-eslint": "^9.0.0",
jim's avatar
jim committed
63
    "cross-env": "^5.1.1",
ๅๅณ's avatar
ๅๅณ committed
64
    "cross-port-killer": "^1.0.1",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
65 66
    "enzyme": "^3.4.4",
    "eslint": "^5.4.0",
67
    "eslint-config-airbnb": "^17.0.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
68
    "eslint-config-prettier": "^3.0.1",
jim's avatar
jim committed
69
    "eslint-plugin-babel": "^5.1.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
70
    "eslint-plugin-compat": "^2.5.1",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
71 72
    "eslint-plugin-import": "^2.8.0",
    "eslint-plugin-jsx-a11y": "^6.0.3",
73
    "eslint-plugin-markdown": "^1.0.0-beta.6",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
74
    "eslint-plugin-react": "^7.11.1",
afc163's avatar
afc163 committed
75
    "gh-pages": "^2.0.0",
76
    "husky": "^0.14.3",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
77
    "lint-staged": "^7.2.0",
78
    "merge-umi-mock-data": "^0.0.3",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
79
    "mockjs": "^1.0.1-beta3",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
80
    "prettier": "1.14.2",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
81
    "pro-download": "^1.0.1",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
82
    "stylelint": "^9.4.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
83
    "stylelint-config-prettier": "^4.0.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
84
    "stylelint-config-standard": "^18.0.0",
85 86
    "umi": "^2.1.1",
    "umi-plugin-react": "^1.1.1",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
87
    "umi-plugin-ga": "^1.1.2"
ๅๅณ's avatar
ๅๅณ committed
88
  },
89
  "optionalDependencies": {
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
90
    "puppeteer": "^1.9.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
}