package.json 1.89 KB
Newer Older
1 2 3
{
  "private": true,
  "scripts": {
陈帅's avatar
陈帅 committed
4
    "dev": "cross-env PAGES_PATH='AccountCenter/src' umi dev",
陈帅's avatar
陈帅 committed
5
    "lint": "npm run lint:ts && npm run lint:style && npm run lint:prettier",
偏右's avatar
偏右 committed
6
    "lint-staged": "lint-staged",
陈帅's avatar
陈帅 committed
7
    "lint-staged:ts": "tslint",
陈帅's avatar
陈帅 committed
8
    "lint:fix": "npm run lint:style",
陈帅's avatar
new doc  
陈帅 committed
9
    "lint:prettier": "check-prettier write",
陈帅's avatar
陈帅 committed
10 11 12
    "lint:style": "stylelint --syntax less --fix **/**.less ",
    "lint:ts": "tslint -p . -c tslint.yml",
    "prettier": "node ./_scripts/prettier.js",
陈帅's avatar
陈帅 committed
13
    "tslint": "npm run tslint:fix"
14
  },
陈帅's avatar
陈帅 committed
15 16 17 18 19 20 21
  "husky": {
    "hooks": {
      "pre-commit": "npm run lint-staged"
    }
  },
  "lint-staged": {
    "**/*.less": "stylelint --syntax less",
陈帅's avatar
陈帅 committed
22
    "**/*.{js,ts,tsx,json,jsx,less}": [
陈帅's avatar
陈帅 committed
23
      "node ./_scripts/lint-prettier.js",
陈帅's avatar
陈帅 committed
24
      "git add"
陈帅's avatar
陈帅 committed
25 26
    ],
    "**/*.{ts,tsx}": "npm run lint-staged:ts"
陈帅's avatar
陈帅 committed
27 28
  },
  "dependencies": {
29 30
    "@types/react-dom": "^16.8.4",
    "cross-env": "^5.2.0",
陈帅's avatar
陈帅 committed
31
    "numeral": "^2.0.6",
32
    "react-dom": "^16.8.6"
陈帅's avatar
陈帅 committed
33
  },
34
  "devDependencies": {
xiaohuoni's avatar
xiaohuoni committed
35
    "@types/classnames": "^2.2.7",
陈帅's avatar
陈帅 committed
36
    "@types/numeral": "^0.0.25",
陈帅's avatar
陈帅 committed
37
    "babel-eslint": "^10.0.1",
陈帅's avatar
new doc  
陈帅 committed
38
    "check-prettier": "^1.0.3",
39
    "glob": "^7.1.3",
陈帅's avatar
陈帅 committed
40
    "husky": "^2.2.0",
陈帅's avatar
陈帅 committed
41
    "lint-staged": "^8.1.0",
陈帅's avatar
陈帅 committed
42
    "prettier": "1.15.2",
陈帅's avatar
陈帅 committed
43 44 45 46 47 48 49 50 51 52 53 54 55
    "stylelint": "^10.0.1",
    "stylelint-config-css-modules": "^1.4.0",
    "stylelint-config-prettier": "^5.1.0",
    "stylelint-config-rational-order": "^0.1.2",
    "stylelint-config-standard": "^18.3.0",
    "stylelint-declaration-block-no-ignored-properties": "^2.1.0",
    "stylelint-order": "^3.0.0",
    "tslint": "^5.12.1",
    "tslint-config-prettier": "^1.17.0",
    "tslint-eslint-rules": "^5.4.0",
    "tslint-react": "^3.6.0",
    "typescript": "^3.4.5",
    "umi": "^2.6.17",
陈帅's avatar
陈帅 committed
56
    "umi-plugin-block-dev": "^2.0.2",
陈帅's avatar
陈帅 committed
57
    "umi-plugin-react": "^1.7.6",
58
    "umi-request": "^1.0.0"
陈帅's avatar
陈帅 committed
59 60 61
  },
  "peerDependencies": {
    "antd": "^3.17.0"
陈帅's avatar
陈帅 committed
62 63 64 65 66 67
  },
  "checkFiles": [
    "**/*.ts*",
    "**/*.less",
    "**/*.md"
  ]
陈帅's avatar
陈帅 committed
68
}