package.json 4.54 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",
何乐's avatar
何乐 committed
14 15
    "lint:js": "eslint --ext .js src tests",
    "lint:ts": "tslint -p . -c tslint.yml",
Yu's avatar
Yu committed
16
    "lint:style": "stylelint 'src/**/*.less' --syntax less",
陈帅's avatar
陈帅 committed
17
    "lint:prettier": "check-prettier lint",
何乐's avatar
何乐 committed
18 19
    "lint": "npm run lint:js && npm run lint:ts && npm run lint:style && npm run lint:prettier",
    "lint:fix": "eslint --fix --ext .js src tests && tslint --fix -p . -c tslint.yml && stylelint --fix 'src/**/*.less' --syntax less",
偏右's avatar
偏右 committed
20 21
    "lint-staged": "lint-staged",
    "lint-staged:js": "eslint --ext .js",
何乐's avatar
何乐 committed
22
    "lint-staged:ts": "tslint",
愚道's avatar
愚道 committed
23 24
    "test": "umi test",
    "test:component": "umi test ./src/components",
jim's avatar
jim committed
25
    "test:all": "node ./tests/run-tests.js",
陈帅's avatar
陈帅 committed
26
    "prettier": "node ./scripts/prettier.js",
陈帅's avatar
陈帅 committed
27 28 29
    "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
30
    "docker-prod:build": "docker-compose -f ./docker/docker-compose.yml build",
陈帅's avatar
陈帅 committed
31
    "docker-hub:build": "docker build  -f Dockerfile.hub -t  ant-design-pro ./",
陈帅's avatar
陈帅 committed
32 33
    "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"
34 35
  },
  "dependencies": {
何乐's avatar
何乐 committed
36 37
    "ant-design-pro": "^2.3.0",
    "antd": "^3.15.0",
陈帅's avatar
陈帅 committed
38
    "classnames": "^2.2.6",
afc163's avatar
afc163 committed
39 40
    "dva": "^2.4.0",
    "lodash": "^4.17.10",
41
    "lodash-decorators": "^6.0.0",
afc163's avatar
afc163 committed
42
    "memoize-one": "^5.0.0",
陈帅's avatar
陈帅 committed
43
    "moment": "^2.22.2",
44
    "omit.js": "^1.0.0",
afc163's avatar
afc163 committed
45
    "path-to-regexp": "^2.4.0",
afc163's avatar
afc163 committed
46
    "rc-animate": "^2.4.4",
何乐's avatar
何乐 committed
47
    "react": "^16.8.5",
jim's avatar
jim committed
48
    "react-container-query": "^0.11.0",
49
    "react-copy-to-clipboard": "^5.0.1",
50
    "react-document-title": "^2.0.3",
陈小聪's avatar
陈小聪 committed
51
    "react-media-hook2": "^1.0.2",
何乐's avatar
何乐 committed
52
    "umi": "^2.6.10",
何乐's avatar
何乐 committed
53
    "umi-request": "^1.0.0"
54 55
  },
  "devDependencies": {
何乐's avatar
何乐 committed
56 57
    "@types/classnames": "^2.2.7",
    "@types/enzyme": "^3.9.0",
陈小聪's avatar
陈小聪 committed
58
    "@types/jest": "^24.0.11",
何乐's avatar
何乐 committed
59 60
    "@types/lodash": "^4.14.122",
    "@types/memoize-one": "^4.1.0",
Yu's avatar
Yu committed
61
    "@types/react": "^16.8.1",
何乐's avatar
何乐 committed
62
    "@types/react-document-title": "^2.0.3",
陈帅's avatar
陈帅 committed
63
    "antd-pro-merge-less": "^1.0.0",
Yu's avatar
Yu committed
64
    "antd-theme-webpack-plugin": "^1.2.0",
陈帅's avatar
陈帅 committed
65
    "babel-eslint": "^10.0.1",
Yu's avatar
Yu committed
66
    "chalk": "^2.4.2",
Heyward Fann's avatar
Heyward Fann committed
67
    "check-prettier": "^1.0.1",
Yu's avatar
Yu committed
68
    "cross-env": "^5.2.0",
偏右's avatar
偏右 committed
69
    "cross-port-killer": "^1.0.1",
Yu's avatar
Yu committed
70 71 72 73
    "enzyme": "^3.9.0",
    "eslint": "^5.13.0",
    "eslint-config-airbnb": "^17.1.0",
    "eslint-config-prettier": "^4.0.0",
陈帅's avatar
陈帅 committed
74
    "eslint-plugin-babel": "^5.3.0",
Yu's avatar
Yu committed
75 76 77 78 79 80 81 82
    "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
83
    "less": "^3.9.0",
Yu's avatar
Yu committed
84
    "lint-staged": "^8.1.1",
陈帅's avatar
陈帅 committed
85
    "merge-umi-mock-data": "^1.0.4",
陈帅's avatar
陈帅 committed
86
    "mockjs": "^1.0.1-beta3",
Yu's avatar
Yu committed
87
    "prettier": "^1.16.4",
陈帅's avatar
陈帅 committed
88
    "slash2": "^2.0.0",
Yu's avatar
Yu committed
89 90 91 92 93 94 95 96 97
    "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
98
    "tslint-eslint-rules": "^5.4.0",
陈帅's avatar
陈帅 committed
99
    "tslint-react": "^3.6.0",
陈帅's avatar
陈帅 committed
100
    "umi-plugin-ga": "^1.1.3",
陈小聪's avatar
陈小聪 committed
101
    "umi-plugin-pro-block": "^1.2.0",
何乐's avatar
何乐 committed
102 103
    "umi-plugin-react": "^1.3.4",
    "umi-types": "^0.2.0"
偏右's avatar
偏右 committed
104
  },
105
  "optionalDependencies": {
Yu's avatar
Yu committed
106
    "puppeteer": "^1.12.1"
107
  },
偏右's avatar
偏右 committed
108
  "lint-staged": {
陈帅's avatar
陈帅 committed
109
    "**/*.{js,ts,tsx,json,jsx,less}": [
陈帅's avatar
陈帅 committed
110
      "node ./scripts/lint-prettier.js",
jim's avatar
jim committed
111 112
      "git add"
    ],
jim's avatar
jim committed
113
    "**/*.{js,jsx}": "npm run lint-staged:js",
何乐's avatar
何乐 committed
114
    "**/*.{ts,tsx}": "npm run lint-staged:ts",
afc163's avatar
afc163 committed
115
    "**/*.less": "stylelint --syntax less"
afc163's avatar
afc163 committed
116
  },
afc163's avatar
afc163 committed
117
  "engines": {
ddcat1115's avatar
ddcat1115 committed
118
    "node": ">=8.0.0"
afc163's avatar
afc163 committed
119
  },
jim's avatar
jim committed
120 121 122 123
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not ie <= 10"
afc163's avatar
afc163 committed
124
  ],
陈帅's avatar
陈帅 committed
125 126 127 128 129 130 131
  "checkFiles": [
    "src/**/*.js*",
    "src/**/*.ts*",
    "src/**/*.less",
    "config/**/*.js*",
    "scripts/**/*.js"
  ],
afc163's avatar
afc163 committed
132 133 134 135 136
  "husky": {
    "hooks": {
      "pre-commit": "npm run lint-staged"
    }
  }
137
}