package.json 4.21 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
    "lint:prettier": "check-prettier lint",
陈小聪's avatar
陈小聪 committed
16 17
    "lint": "eslint --ext .js src tests && npm run lint:style && npm run lint:prettier",
    "lint:fix": "eslint --fix --ext .js src 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 51 52
    "react-media-hook2": "^1.0.2",
    "umi-request": "^1.0.0",
    "umi-types": "^0.2.0"
53 54
  },
  "devDependencies": {
陈小聪's avatar
陈小聪 committed
55
    "@types/jest": "^24.0.11",
Yu's avatar
Yu committed
56 57
    "@types/react": "^16.8.1",
    "@types/react-dom": "^16.0.11",
陈帅's avatar
陈帅 committed
58
    "antd-pro-merge-less": "^1.0.0",
Yu's avatar
Yu committed
59
    "antd-theme-webpack-plugin": "^1.2.0",
陈帅's avatar
陈帅 committed
60
    "babel-eslint": "^10.0.1",
Yu's avatar
Yu committed
61
    "chalk": "^2.4.2",
Heyward Fann's avatar
Heyward Fann committed
62
    "check-prettier": "^1.0.1",
Yu's avatar
Yu committed
63
    "cross-env": "^5.2.0",
偏右's avatar
偏右 committed
64
    "cross-port-killer": "^1.0.1",
Yu's avatar
Yu committed
65 66 67 68
    "enzyme": "^3.9.0",
    "eslint": "^5.13.0",
    "eslint-config-airbnb": "^17.1.0",
    "eslint-config-prettier": "^4.0.0",
陈帅's avatar
陈帅 committed
69
    "eslint-plugin-babel": "^5.3.0",
Yu's avatar
Yu committed
70 71 72 73 74 75 76 77
    "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
78
    "less": "^3.9.0",
Yu's avatar
Yu committed
79
    "lint-staged": "^8.1.1",
陈帅's avatar
陈帅 committed
80
    "merge-umi-mock-data": "^1.0.4",
陈帅's avatar
陈帅 committed
81
    "mockjs": "^1.0.1-beta3",
Yu's avatar
Yu committed
82
    "prettier": "^1.16.4",
陈帅's avatar
陈帅 committed
83
    "slash2": "^2.0.0",
Yu's avatar
Yu committed
84 85 86 87 88 89 90 91 92
    "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
93
    "tslint-react": "^3.6.0",
Yu's avatar
Yu committed
94
    "umi": "^2.4.4",
陈帅's avatar
陈帅 committed
95
    "umi-plugin-ga": "^1.1.3",
陈小聪's avatar
陈小聪 committed
96 97
    "umi-plugin-pro-block": "^1.2.0",
    "umi-plugin-react": "^1.3.4"
偏右's avatar
偏右 committed
98
  },
99
  "optionalDependencies": {
Yu's avatar
Yu committed
100
    "puppeteer": "^1.12.1"
101
  },
偏右's avatar
偏右 committed
102
  "lint-staged": {
陈帅's avatar
陈帅 committed
103
    "**/*.{js,ts,tsx,json,jsx,less}": [
陈帅's avatar
陈帅 committed
104
      "node ./scripts/lint-prettier.js",
jim's avatar
jim committed
105 106
      "git add"
    ],
jim's avatar
jim committed
107
    "**/*.{js,jsx}": "npm run lint-staged:js",
afc163's avatar
afc163 committed
108
    "**/*.less": "stylelint --syntax less"
afc163's avatar
afc163 committed
109
  },
afc163's avatar
afc163 committed
110
  "engines": {
ddcat1115's avatar
ddcat1115 committed
111
    "node": ">=8.0.0"
afc163's avatar
afc163 committed
112
  },
jim's avatar
jim committed
113 114 115 116
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not ie <= 10"
afc163's avatar
afc163 committed
117
  ],
陈帅's avatar
陈帅 committed
118 119 120 121 122 123 124
  "checkFiles": [
    "src/**/*.js*",
    "src/**/*.ts*",
    "src/**/*.less",
    "config/**/*.js*",
    "scripts/**/*.js"
  ],
afc163's avatar
afc163 committed
125 126 127 128 129
  "husky": {
    "hooks": {
      "pre-commit": "npm run lint-staged"
    }
  }
130
}