package.json 4.09 KB
Newer Older
1
{
afc163's avatar
afc163 committed
2
  "name": "ant-design-pro",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
3
  "version": "2.1.1",
ๅๅณ'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 && npm run docker:push",
ๆ„š้“'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
    "tslint": "npm run tslint:fix",
    "tslint:fix": "tslint --fix 'src/**/*.ts*'",
ๆ„š้“'s avatar
ๆ„š้“ committed
20 21
    "test": "umi test",
    "test:component": "umi test ./src/components",
jim's avatar
jim committed
22
    "test:all": "node ./tests/run-tests.js",
Rayron Victor's avatar
Rayron Victor committed
23
    "prettier": "prettier --write './src/**/*'",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
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",
27
    "docker-prod:build": "docker-compose -f ./docker/docker-compose.yml build",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
28 29 30
    "docker-hub:build": "docker build  -f Dockerfile.hub -t  ant-design-pro ./",
    "docker:tag": "docker tag ant-design-pro chenshuai2144/ant-design-pro",
    "docker:push": "npm run docker-hub:build && npm run docker:tag && docker push chenshuai2144/ant-design-pro"
31 32
  },
  "dependencies": {
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
33
    "@babel/runtime": "^7.1.5",
34 35
    "antd": "^3.10.9",
    "bizcharts": "^3.4.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
36
    "bizcharts-plugin-slider": "^2.1.1-beta.1",
37
    "@antv/data-set": "^0.10.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
38
    "classnames": "^2.2.6",
afc163's avatar
afc163 committed
39
    "dva": "^2.4.0",
jljsj's avatar
jljsj committed
40
    "enquire-js": "^0.2.1",
afc163's avatar
afc163 committed
41 42
    "hash.js": "^1.1.5",
    "lodash": "^4.17.10",
43
    "lodash-decorators": "^6.0.0",
44
    "memoize-one": "^4.0.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
45
    "moment": "^2.22.2",
46
    "numeral": "^2.0.6",
47
    "nzh": "^1.0.3",
ddcat1115's avatar
ddcat1115 committed
48
    "omit.js": "^1.0.0",
afc163's avatar
afc163 committed
49
    "path-to-regexp": "^2.4.0",
50
    "prop-types": "^15.5.10",
51
    "qs": "^6.6.0",
afc163's avatar
afc163 committed
52
    "rc-animate": "^2.4.4",
53
    "react": "^16.5.1",
jim's avatar
jim committed
54
    "react-container-query": "^0.11.0",
55
    "react-copy-to-clipboard": "^5.0.1",
56
    "react-document-title": "^2.0.3",
57
    "react-dom": "^16.5.1",
afc163's avatar
afc163 committed
58
    "react-fittext": "^1.0.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
59
    "react-media": "^1.8.0",
Wei Zhu's avatar
Wei Zhu committed
60 61 62
    "react-router-dom": "^4.3.1",
    "umi-plugin-vcr": "^0.0.1-alpha.17",
    "vcr-cli": "^0.0.1-alpha.19"
63 64
  },
  "devDependencies": {
65 66
    "@types/react": "^16.7.7",
    "@types/react-dom": "^16.0.10",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
67
    "antd-pro-merge-less": "^0.2.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
68 69
    "antd-theme-webpack-plugin": "^1.1.8",
    "babel-eslint": "^10.0.1",
jim's avatar
jim committed
70
    "cross-env": "^5.1.1",
ๅๅณ's avatar
ๅๅณ committed
71
    "cross-port-killer": "^1.0.1",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
72
    "enzyme": "^3.7.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
73
    "eslint": "^5.4.0",
74
    "eslint-config-airbnb": "^17.0.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
75
    "eslint-config-prettier": "^3.0.1",
76
    "eslint-plugin-babel": "^5.3.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
77
    "eslint-plugin-compat": "^2.6.2",
taichiyi's avatar
taichiyi committed
78
    "eslint-plugin-import": "^2.14.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
79
    "eslint-plugin-jsx-a11y": "^6.1.2",
80
    "eslint-plugin-markdown": "^1.0.0-beta.6",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
81
    "eslint-plugin-react": "^7.11.1",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
82
    "gh-pages": "^2.0.1",
83
    "husky": "^1.2.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
84
    "jest-puppeteer": "^3.5.1",
85
    "lint-staged": "^8.1.0",
86
    "merge-umi-mock-data": "^0.0.3",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
87
    "mockjs": "^1.0.1-beta3",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
88
    "prettier": "1.15.2",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
89
    "pro-download": "^1.0.1",
90
    "stylelint": "^9.8.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
91
    "stylelint-config-prettier": "^4.0.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
92
    "stylelint-config-standard": "^18.0.0",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
93 94 95
    "tslint": "^5.10.0",
    "tslint-config-prettier": "^1.10.0",
    "tslint-react": "^3.6.0",
96
    "umi": "^2.2.7",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
97
    "umi-plugin-ga": "^1.1.3",
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
98
    "umi-plugin-react": "^1.2.0"
ๅๅณ's avatar
ๅๅณ committed
99
  },
100
  "optionalDependencies": {
้™ˆๅธ…'s avatar
้™ˆๅธ… committed
101
    "puppeteer": "^1.10.0"
102
  },
ๅๅณ's avatar
ๅๅณ committed
103
  "lint-staged": {
jim's avatar
jim committed
104
    "**/*.{js,jsx,less}": [
jim's avatar
jim committed
105
      "prettier --write",
jim's avatar
jim committed
106 107
      "git add"
    ],
jim's avatar
jim committed
108
    "**/*.{js,jsx}": "npm run lint-staged:js",
afc163's avatar
afc163 committed
109
    "**/*.less": "stylelint --syntax less"
afc163's avatar
afc163 committed
110
  },
afc163's avatar
afc163 committed
111
  "engines": {
ddcat1115's avatar
ddcat1115 committed
112
    "node": ">=8.0.0"
afc163's avatar
afc163 committed
113
  },
jim's avatar
jim committed
114 115 116 117
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not ie <= 10"
afc163's avatar
afc163 committed
118 119 120 121 122 123
  ],
  "husky": {
    "hooks": {
      "pre-commit": "npm run lint-staged"
    }
  }
124
}