package.json 4.13 KB
Newer Older
1
{
afc163's avatar
afc163 committed
2
  "name": "ant-design-pro",
Yu's avatar
Yu committed
3
  "version": "2.2.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": "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",
愚道's avatar
愚道 committed
10 11
    "dev": "cross-env APP_TYPE=site umi dev",
    "dev:no-mock": "cross-env MOCK=none umi dev",
12
    "build": "umi build",
愚道's avatar
愚道 committed
13
    "analyze": "cross-env ANALYZE=1 umi build",
Yu's avatar
Yu committed
14
    "lint:style": "stylelint 'src/**/*.less' --syntax less",
陈帅's avatar
陈帅 committed
15 16
    "lint:prettier": "check-prettier lint",
    "lint": "eslint --ext .js src mock tests && npm run lint:style && npm run lint:prettier",
Yu's avatar
Yu committed
17
    "lint:fix": "eslint --fix --ext .js src mock tests && stylelint --fix 'src/**/*.less' --syntax less",
偏右's avatar
偏右 committed
18 19
    "lint-staged": "lint-staged",
    "lint-staged:js": "eslint --ext .js",
愚道'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",
陈帅's avatar
陈帅 committed
23
    "prettier": "node ./scripts/prettier.js",
陈帅'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",
陈帅's avatar
陈帅 committed
27
    "docker-prod:build": "docker-compose -f ./docker/docker-compose.yml build",
陈帅's avatar
陈帅 committed
28
    "docker-hub:build": "docker build  -f Dockerfile.hub -t  ant-design-pro ./",
陈帅's avatar
陈帅 committed
29 30
    "docker:tag": "docker tag ant-design-pro antdesign/ant-design-pro",
    "docker:push": "npm run docker-hub:build && npm run docker:tag && docker push antdesign/ant-design-pro"
31 32
  },
  "dependencies": {
chencheng's avatar
chencheng committed
33 34
    "ant-design-pro": "^2.1.1",
    "antd": "^3.10.9",
陈帅's avatar
陈帅 committed
35
    "classnames": "^2.2.6",
afc163's avatar
afc163 committed
36 37
    "dva": "^2.4.0",
    "lodash": "^4.17.10",
38
    "lodash-decorators": "^6.0.0",
afc163's avatar
afc163 committed
39
    "memoize-one": "^5.0.0",
陈帅's avatar
陈帅 committed
40
    "moment": "^2.22.2",
41
    "omit.js": "^1.0.0",
afc163's avatar
afc163 committed
42
    "path-to-regexp": "^2.4.0",
43
    "prop-types": "^15.5.10",
afc163's avatar
afc163 committed
44
    "rc-animate": "^2.4.4",
Rayron Victor's avatar
Rayron Victor committed
45
    "react": "^16.6.3",
jim's avatar
jim committed
46
    "react-container-query": "^0.11.0",
47
    "react-copy-to-clipboard": "^5.0.1",
48
    "react-document-title": "^2.0.3",
陈帅's avatar
陈帅 committed
49
    "react-media": "^1.8.0",
愚道's avatar
愚道 committed
50
    "umi-request": "^1.0.0"
51 52
  },
  "devDependencies": {
Yu's avatar
Yu committed
53 54
    "@types/react": "^16.8.1",
    "@types/react-dom": "^16.0.11",
陈帅's avatar
陈帅 committed
55
    "antd-pro-merge-less": "^1.0.0",
Yu's avatar
Yu committed
56
    "antd-theme-webpack-plugin": "^1.2.0",
陈帅's avatar
陈帅 committed
57
    "babel-eslint": "^10.0.1",
Yu's avatar
Yu committed
58
    "chalk": "^2.4.2",
Heyward Fann's avatar
Heyward Fann committed
59
    "check-prettier": "^1.0.1",
Yu's avatar
Yu committed
60
    "cross-env": "^5.2.0",
偏右's avatar
偏右 committed
61
    "cross-port-killer": "^1.0.1",
Yu's avatar
Yu committed
62 63 64 65
    "enzyme": "^3.9.0",
    "eslint": "^5.13.0",
    "eslint-config-airbnb": "^17.1.0",
    "eslint-config-prettier": "^4.0.0",
陈帅's avatar
陈帅 committed
66
    "eslint-plugin-babel": "^5.3.0",
Yu's avatar
Yu committed
67 68 69 70 71 72 73 74
    "eslint-plugin-compat": "^2.6.3",
    "eslint-plugin-import": "^2.16.0",
    "eslint-plugin-jsx-a11y": "^6.2.0",
    "eslint-plugin-markdown": "^1.0.0",
    "eslint-plugin-react": "^7.12.4",
    "gh-pages": "^2.0.1",
    "husky": "^1.3.1",
    "jest-puppeteer": "^4.0.0",
陈帅's avatar
陈帅 committed
75
    "less": "^3.9.0",
Yu's avatar
Yu committed
76
    "lint-staged": "^8.1.1",
陈帅's avatar
陈帅 committed
77
    "merge-umi-mock-data": "^1.0.4",
陈帅's avatar
陈帅 committed
78
    "mockjs": "^1.0.1-beta3",
Yu's avatar
Yu committed
79
    "prettier": "^1.16.4",
陈帅's avatar
陈帅 committed
80
    "slash2": "^2.0.0",
Yu's avatar
Yu committed
81 82 83 84 85 86 87 88 89
    "stylelint": "^9.10.1",
    "stylelint-config-css-modules": "^1.3.0",
    "stylelint-config-prettier": "^5.0.0",
    "stylelint-config-rational-order": "^0.0.4",
    "stylelint-config-standard": "^18.2.0",
    "stylelint-declaration-block-no-ignored-properties": "^1.1.0",
    "stylelint-order": "^2.0.0",
    "tslint": "^5.12.1",
    "tslint-config-prettier": "^1.17.0",
陈帅's avatar
陈帅 committed
90
    "tslint-react": "^3.6.0",
Yu's avatar
Yu committed
91
    "umi": "^2.4.4",
陈帅's avatar
陈帅 committed
92
    "umi-plugin-ga": "^1.1.3",
愚道's avatar
愚道 committed
93 94
    "umi-plugin-react": "^1.3.4",
    "umi-plugin-pro-block": "^1.2.0"
偏右's avatar
偏右 committed
95
  },
96
  "optionalDependencies": {
Yu's avatar
Yu committed
97
    "puppeteer": "^1.12.1"
98
  },
偏右's avatar
偏右 committed
99
  "lint-staged": {
陈帅's avatar
陈帅 committed
100
    "**/*.{js,ts,tsx,json,jsx,less}": [
陈帅's avatar
陈帅 committed
101
      "node ./scripts/lint-prettier.js",
jim's avatar
jim committed
102 103
      "git add"
    ],
jim's avatar
jim committed
104
    "**/*.{js,jsx}": "npm run lint-staged:js",
afc163's avatar
afc163 committed
105
    "**/*.less": "stylelint --syntax less"
afc163's avatar
afc163 committed
106
  },
afc163's avatar
afc163 committed
107
  "engines": {
ddcat1115's avatar
ddcat1115 committed
108
    "node": ">=8.0.0"
afc163's avatar
afc163 committed
109
  },
jim's avatar
jim committed
110 111 112 113
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not ie <= 10"
afc163's avatar
afc163 committed
114
  ],
陈帅's avatar
陈帅 committed
115 116 117 118 119 120 121
  "checkFiles": [
    "src/**/*.js*",
    "src/**/*.ts*",
    "src/**/*.less",
    "config/**/*.js*",
    "scripts/**/*.js"
  ],
afc163's avatar
afc163 committed
122 123 124 125 126
  "husky": {
    "hooks": {
      "pre-commit": "npm run lint-staged"
    }
  }
127
}