package.json 2.06 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
    "start": "umi dev",
陈帅's avatar
陈帅 committed
6
    "lint": "npm run lint:ts && npm run lint:style && npm run lint:prettier",
偏右's avatar
偏右 committed
7
    "lint-staged": "lint-staged",
陈帅's avatar
陈帅 committed
8
    "lint-staged:ts": "tslint",
陈帅's avatar
陈帅 committed
9
    "lint:fix": "npm run lint:style",
陈帅's avatar
new doc  
陈帅 committed
10
    "lint:prettier": "check-prettier write",
陈帅's avatar
陈帅 committed
11 12 13
    "lint:style": "stylelint --syntax less --fix **/**.less ",
    "lint:ts": "tslint -p . -c tslint.yml",
    "prettier": "node ./_scripts/prettier.js",
陈帅's avatar
陈帅 committed
14
    "tslint": "npm run tslint:fix"
15
  },
陈帅's avatar
陈帅 committed
16 17 18 19 20 21 22
  "husky": {
    "hooks": {
      "pre-commit": "npm run lint-staged"
    }
  },
  "lint-staged": {
    "**/*.less": "stylelint --syntax less",
陈帅's avatar
陈帅 committed
23
    "**/*.{js,ts,tsx,json,jsx,less}": [
陈帅's avatar
陈帅 committed
24
      "node ./_scripts/lint-prettier.js",
陈帅's avatar
陈帅 committed
25
      "git add"
陈帅's avatar
陈帅 committed
26 27
    ],
    "**/*.{ts,tsx}": "npm run lint-staged:ts"
陈帅's avatar
陈帅 committed
28 29
  },
  "dependencies": {
30 31
    "@types/react-dom": "^16.8.4",
    "cross-env": "^5.2.0",
陈帅's avatar
陈帅 committed
32
    "numeral": "^2.0.6",
33
    "react-dom": "^16.8.6"
陈帅's avatar
陈帅 committed
34
  },
陈帅's avatar
陈帅 committed
35 36 37
  "optionalDependencies": {
    "puppeteer": "^1.17.0"
  },
38
  "devDependencies": {
xiaohuoni's avatar
xiaohuoni committed
39
    "@types/classnames": "^2.2.7",
陈帅's avatar
陈帅 committed
40
    "@types/numeral": "^0.0.25",
陈帅's avatar
陈帅 committed
41
    "babel-eslint": "^10.0.1",
陈帅's avatar
new doc  
陈帅 committed
42
    "check-prettier": "^1.0.3",
陈帅's avatar
陈帅 committed
43 44 45
    "cross-port-killer": "^1.1.1",
    "execa": "^1.0.0",
    "getnpmregistry": "^1.0.1",
46
    "glob": "^7.1.3",
陈帅's avatar
陈帅 committed
47
    "husky": "^2.2.0",
陈帅's avatar
陈帅 committed
48
    "lint-staged": "^8.1.0",
陈帅's avatar
陈帅 committed
49
    "prettier": "1.15.2",
陈帅's avatar
陈帅 committed
50 51 52 53 54 55 56 57 58 59 60
    "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",
陈帅's avatar
陈帅 committed
61
    "typescript": "^3.5.1",
陈帅's avatar
陈帅 committed
62
    "umi": "^2.6.17",
陈帅's avatar
陈帅 committed
63
    "umi-plugin-block-dev": "^2.1.11",
陈帅's avatar
陈帅 committed
64
    "umi-plugin-react": "^1.7.6",
65
    "umi-request": "^1.0.0"
陈帅's avatar
陈帅 committed
66 67 68
  },
  "peerDependencies": {
    "antd": "^3.17.0"
陈帅's avatar
陈帅 committed
69 70 71 72 73 74
  },
  "checkFiles": [
    "**/*.ts*",
    "**/*.less",
    "**/*.md"
  ]
陈帅's avatar
陈帅 committed
75
}