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
    "prettier": "prettier --write ./src/**/**/**/*",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
23 24 25 26
    "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",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
30 31
    "@babel/runtime": "^7.1.2",
    "antd": "^3.10.0",
32
    "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 59
    "@types/react": "^16.4.16",
    "@types/react-dom": "^16.0.9",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
60
    "antd-pro-merge-less": "^0.0.9",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
61 62
    "antd-theme-webpack-plugin": "^1.1.8",
    "babel-eslint": "^10.0.1",
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
    "enzyme": "^3.7.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
66
    "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.6.2",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
71
    "eslint-plugin-import": "^2.8.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
72
    "eslint-plugin-jsx-a11y": "^6.1.2",
73
    "eslint-plugin-markdown": "^1.0.0-beta.6",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
74
    "eslint-plugin-react": "^7.11.1",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
75 76
    "gh-pages": "^2.0.1",
    "husky": "^1.1.2",
้™ˆๅธ…'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.3",
้™ˆๅธ…'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",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
85 86 87
    "umi": "^2.1.2",
    "umi-plugin-ga": "^1.1.3",
    "umi-plugin-react": "^1.1.1"
ๅๅณ'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
}