package.json 1.74 KB
Newer Older
1 2 3
{
  "private": true,
  "scripts": {
陈帅's avatar
陈帅 committed
4
    "dev": "cross-env PAGES_PATH='Workplace/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 8 9 10 11 12 13 14
    "lint-staged:ts": "tslint",
    "lint:fix": "npm run tslint:fix && npm run lint:style",
    "lint:prettier": "check-prettier lint",
    "lint:style": "stylelint --syntax less --fix **/**.less ",
    "lint:ts": "tslint -p . -c tslint.yml",
    "prettier": "node ./_scripts/prettier.js",
    "tslint": "npm run tslint:fix",
    "tslint:fix": "tslint -p . -c tslint.yml --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 24
    "**/*.{js,ts,tsx,json,jsx,less}": [
      "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 30 31
  },
  "dependencies": {
    "cross-env": "^5.2.0"
  },
32
  "devDependencies": {
xiaohuoni's avatar
xiaohuoni committed
33
    "@types/classnames": "^2.2.7",
陈帅's avatar
陈帅 committed
34
    "babel-eslint": "^10.0.1",
35
    "glob": "^7.1.3",
陈帅's avatar
陈帅 committed
36
    "husky": "^2.2.0",
陈帅's avatar
陈帅 committed
37
    "lint-staged": "^8.1.0",
陈帅's avatar
陈帅 committed
38
    "prettier": "1.15.2",
陈帅's avatar
陈帅 committed
39 40 41 42 43 44 45 46 47 48 49 50 51
    "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
52
    "umi-plugin-block-dev": "^2.0.2",
陈帅's avatar
陈帅 committed
53
    "umi-plugin-react": "^1.7.6",
54
    "umi-request": "^1.0.0"
陈帅's avatar
陈帅 committed
55 56 57
  },
  "peerDependencies": {
    "antd": "^3.17.0"
afc163's avatar
afc163 committed
58
  }
陈帅's avatar
陈帅 committed
59
}