package.json 4.6 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": {
chencheng's avatar
chencheng committed
36 37
    "ant-design-pro": "^2.1.1",
    "antd": "^3.10.9",
陈帅'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",
46
    "prop-types": "^15.5.10",
afc163's avatar
afc163 committed
47
    "rc-animate": "^2.4.4",
Rayron Victor's avatar
Rayron Victor committed
48
    "react": "^16.6.3",
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",
陈小聪's avatar
陈小聪 committed
52
    "react-media-hook2": "^1.0.2",
何乐'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",
Yu's avatar
Yu committed
63
    "@types/react-dom": "^16.0.11",
陈帅's avatar
陈帅 committed
64
    "antd-pro-merge-less": "^1.0.0",
Yu's avatar
Yu committed
65
    "antd-theme-webpack-plugin": "^1.2.0",
陈帅's avatar
陈帅 committed
66
    "babel-eslint": "^10.0.1",
Yu's avatar
Yu committed
67
    "chalk": "^2.4.2",
Heyward Fann's avatar
Heyward Fann committed
68
    "check-prettier": "^1.0.1",
Yu's avatar
Yu committed
69
    "cross-env": "^5.2.0",
偏右's avatar
偏右 committed
70
    "cross-port-killer": "^1.0.1",
Yu's avatar
Yu committed
71 72 73 74
    "enzyme": "^3.9.0",
    "eslint": "^5.13.0",
    "eslint-config-airbnb": "^17.1.0",
    "eslint-config-prettier": "^4.0.0",
陈帅's avatar
陈帅 committed
75
    "eslint-plugin-babel": "^5.3.0",
Yu's avatar
Yu committed
76 77 78 79 80 81 82 83
    "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
84
    "less": "^3.9.0",
Yu's avatar
Yu committed
85
    "lint-staged": "^8.1.1",
陈帅's avatar
陈帅 committed
86
    "merge-umi-mock-data": "^1.0.4",
陈帅's avatar
陈帅 committed
87
    "mockjs": "^1.0.1-beta3",
Yu's avatar
Yu committed
88
    "prettier": "^1.16.4",
陈帅's avatar
陈帅 committed
89
    "slash2": "^2.0.0",
Yu's avatar
Yu committed
90 91 92 93 94 95 96 97 98
    "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
99
    "tslint-eslint-rules": "^5.4.0",
陈帅's avatar
陈帅 committed
100
    "tslint-react": "^3.6.0",
Yu's avatar
Yu committed
101
    "umi": "^2.4.4",
陈帅's avatar
陈帅 committed
102
    "umi-plugin-ga": "^1.1.3",
陈小聪's avatar
陈小聪 committed
103
    "umi-plugin-pro-block": "^1.2.0",
何乐's avatar
何乐 committed
104 105
    "umi-plugin-react": "^1.3.4",
    "umi-types": "^0.2.0"
偏右's avatar
偏右 committed
106
  },
107
  "optionalDependencies": {
Yu's avatar
Yu committed
108
    "puppeteer": "^1.12.1"
109
  },
偏右's avatar
偏右 committed
110
  "lint-staged": {
陈帅's avatar
陈帅 committed
111
    "**/*.{js,ts,tsx,json,jsx,less}": [
陈帅's avatar
陈帅 committed
112
      "node ./scripts/lint-prettier.js",
jim's avatar
jim committed
113 114
      "git add"
    ],
jim's avatar
jim committed
115
    "**/*.{js,jsx}": "npm run lint-staged:js",
何乐's avatar
何乐 committed
116
    "**/*.{ts,tsx}": "npm run lint-staged:ts",
afc163's avatar
afc163 committed
117
    "**/*.less": "stylelint --syntax less"
afc163's avatar
afc163 committed
118
  },
afc163's avatar
afc163 committed
119
  "engines": {
ddcat1115's avatar
ddcat1115 committed
120
    "node": ">=8.0.0"
afc163's avatar
afc163 committed
121
  },
jim's avatar
jim committed
122 123 124 125
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not ie <= 10"
afc163's avatar
afc163 committed
126
  ],
陈帅's avatar
陈帅 committed
127 128 129 130 131 132 133
  "checkFiles": [
    "src/**/*.js*",
    "src/**/*.ts*",
    "src/**/*.less",
    "config/**/*.js*",
    "scripts/**/*.js"
  ],
afc163's avatar
afc163 committed
134 135 136 137 138
  "husky": {
    "hooks": {
      "pre-commit": "npm run lint-staged"
    }
  }
139
}