package.json 3.49 KB
Newer Older
1
{
afc163's avatar
afc163 committed
2
  "name": "ant-design-pro",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
3
  "version": "2.1.0",
ๅๅณ's avatar
ๅๅณ committed
4
  "description": "An out-of-box UI solution for enterprise applications",
5 6
  "private": true,
  "scripts": {
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
7
    "presite": "node ./scripts/generateMock.js && cd functions && npm install",
chencheng's avatar
chencheng committed
8
    "start": "cross-env APP_TYPE=site umi dev",
sorrycc's avatar
sorrycc committed
9
    "start:no-mock": "cross-env MOCK=none umi dev",
10
    "build": "umi build",
11
    "site": "npm run presite && cross-env APP_TYPE=site npm run build && firebase deploy",
ๆ„š้“'s avatar
ๆ„š้“ committed
12
    "analyze": "cross-env ANALYZE=1 umi build",
nikogu's avatar
nikogu committed
13 14
    "lint:style": "stylelint \"src/**/*.less\" --syntax less",
    "lint": "eslint --ext .js src mock tests && npm run lint:style",
afc163's avatar
afc163 committed
15
    "lint:fix": "eslint --fix --ext .js src mock tests && npm run lint:style",
ๅๅณ's avatar
ๅๅณ committed
16 17
    "lint-staged": "lint-staged",
    "lint-staged:js": "eslint --ext .js",
ๆ„š้“'s avatar
ๆ„š้“ committed
18 19
    "test": "umi test",
    "test:component": "umi test ./src/components",
jim's avatar
jim committed
20
    "test:all": "node ./tests/run-tests.js",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
21
    "prettier": "prettier --write ./src/**/**/**/*",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
22 23 24 25
    "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"
26 27
  },
  "dependencies": {
28
    "@antv/data-set": "^0.9.6",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
29 30
    "@babel/runtime": "^7.1.2",
    "antd": "^3.10.0",
31
    "bizcharts": "^3.2.2",
jim's avatar
jim committed
32
    "bizcharts-plugin-slider": "^2.0.3",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
33
    "classnames": "^2.2.6",
afc163's avatar
afc163 committed
34
    "dva": "^2.4.0",
jljsj's avatar
jljsj committed
35
    "enquire-js": "^0.2.1",
afc163's avatar
afc163 committed
36 37
    "hash.js": "^1.1.5",
    "lodash": "^4.17.10",
38
    "lodash-decorators": "^6.0.0",
39
    "memoize-one": "^4.0.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
40
    "moment": "^2.22.2",
41
    "numeral": "^2.0.6",
42
    "nzh": "^1.0.3",
ddcat1115's avatar
ddcat1115 committed
43
    "omit.js": "^1.0.0",
afc163's avatar
afc163 committed
44
    "path-to-regexp": "^2.4.0",
45
    "prop-types": "^15.5.10",
afc163's avatar
afc163 committed
46
    "qs": "^6.5.2",
afc163's avatar
afc163 committed
47
    "rc-animate": "^2.4.4",
48
    "react": "^16.5.1",
jim's avatar
jim committed
49
    "react-container-query": "^0.11.0",
50
    "react-copy-to-clipboard": "^5.0.1",
51
    "react-document-title": "^2.0.3",
52
    "react-dom": "^16.5.1",
afc163's avatar
afc163 committed
53
    "react-fittext": "^1.0.0",
ๆ„š้“'s avatar
ๆ„š้“ committed
54
    "react-router-dom": "^4.3.1"
55 56
  },
  "devDependencies": {
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
57 58
    "@types/react": "^16.4.16",
    "@types/react-dom": "^16.0.9",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
59
    "antd-pro-merge-less": "^0.0.9",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
60 61
    "antd-theme-webpack-plugin": "^1.1.8",
    "babel-eslint": "^10.0.1",
jim's avatar
jim committed
62
    "cross-env": "^5.1.1",
ๅๅณ's avatar
ๅๅณ committed
63
    "cross-port-killer": "^1.0.1",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
64
    "enzyme": "^3.7.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
65
    "eslint": "^5.4.0",
66
    "eslint-config-airbnb": "^17.0.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
67
    "eslint-config-prettier": "^3.0.1",
jim's avatar
jim committed
68
    "eslint-plugin-babel": "^5.1.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
69
    "eslint-plugin-compat": "^2.6.2",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
70
    "eslint-plugin-import": "^2.8.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
71
    "eslint-plugin-jsx-a11y": "^6.1.2",
72
    "eslint-plugin-markdown": "^1.0.0-beta.6",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
73
    "eslint-plugin-react": "^7.11.1",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
74 75
    "gh-pages": "^2.0.1",
    "husky": "^1.1.2",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
76
    "lint-staged": "^7.2.0",
77
    "merge-umi-mock-data": "^0.0.3",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
78
    "mockjs": "^1.0.1-beta3",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
79
    "prettier": "1.14.3",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
80
    "pro-download": "^1.0.1",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
81
    "stylelint": "^9.4.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
82
    "stylelint-config-prettier": "^4.0.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
83
    "stylelint-config-standard": "^18.0.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
84 85 86
    "umi": "^2.1.2",
    "umi-plugin-ga": "^1.1.3",
    "umi-plugin-react": "^1.1.1"
ๅๅณ's avatar
ๅๅณ committed
87
  },
88
  "optionalDependencies": {
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
89
    "puppeteer": "^1.9.0"
90
  },
ๅๅณ's avatar
ๅๅณ committed
91
  "lint-staged": {
jim's avatar
jim committed
92
    "**/*.{js,jsx,less}": [
jim's avatar
jim committed
93
      "prettier --write",
jim's avatar
jim committed
94 95
      "git add"
    ],
jim's avatar
jim committed
96
    "**/*.{js,jsx}": "npm run lint-staged:js",
afc163's avatar
afc163 committed
97
    "**/*.less": "stylelint --syntax less"
afc163's avatar
afc163 committed
98
  },
afc163's avatar
afc163 committed
99
  "engines": {
ddcat1115's avatar
ddcat1115 committed
100
    "node": ">=8.0.0"
afc163's avatar
afc163 committed
101
  },
jim's avatar
jim committed
102 103 104 105
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not ie <= 10"
afc163's avatar
afc163 committed
106 107 108 109 110 111
  ],
  "husky": {
    "hooks": {
      "pre-commit": "npm run lint-staged"
    }
  }
112
}