73 lines
1.9 KiB
JSON
73 lines
1.9 KiB
JSON
{
|
|
"private": true,
|
|
"scripts": {
|
|
"start": "umi dev",
|
|
"build": "umi build",
|
|
"build:test": "cross-env UMI_ENV=test umi build",
|
|
"build:release": "cross-env UMI_ENV=release umi build",
|
|
"build:pre": "cross-env UMI_ENV=pre umi build",
|
|
"build:production": "cross-env UMI_ENV=production umi build",
|
|
"lint": "eslint 'src/**/*.{js,jsx,tsx,ts}'",
|
|
"lint:fix": "eslint 'src/**/*.{js,jsx,tsx,ts}' --fix",
|
|
"prettier": "prettier --write '**/*.{less,css,md,json}'",
|
|
"test": "umi-test",
|
|
"test:coverage": "umi-test --coverage",
|
|
"cz": "git add . && git cz"
|
|
},
|
|
"config": {
|
|
"commitizen": {
|
|
"path": "@nicecode/commit"
|
|
}
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
}
|
|
},
|
|
"gitHooks": {
|
|
"pre-commit": "tsc --noEmit && lint-staged"
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,jsx,ts,tsx}": [
|
|
"npm run lint:fix",
|
|
"git add ."
|
|
],
|
|
"*.{less,css,md,json}": [
|
|
"npm run prettier",
|
|
"git add ."
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"@ant-design/icons": "^4.7.0",
|
|
"@ant-design/pro-components": "^1.1.2",
|
|
"@ant-design/pro-layout": "^6.15.4",
|
|
"antd": "^4.20.6",
|
|
"classnames": "^2.2.6",
|
|
"dayjs": "^1.11.2",
|
|
"js-cookie": "^2.2.1",
|
|
"react": "^17.0.1",
|
|
"react-dom": "^17.0.1",
|
|
"umi": "^3.5.15",
|
|
"yapi-to-typescript": "^3.34.1"
|
|
},
|
|
"devDependencies": {
|
|
"@nicecode/commit-lint": "^0.1.2",
|
|
"@types/classnames": "^2.2.10",
|
|
"@typescript-eslint/eslint-plugin": "^5.26.0",
|
|
"@typescript-eslint/parser": "^5.26.0",
|
|
"@umijs/preset-react": "1.x",
|
|
"@umijs/test": "^3.0.16",
|
|
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
"commitlint": "^17.0.1",
|
|
"cross-env": "^7.0.2",
|
|
"eslint": "^7.16.0",
|
|
"eslint-config-alloy": "^4.5.1",
|
|
"eslint-plugin-react": "^7.30.0",
|
|
"husky": "^8.0.1",
|
|
"lint-staged": "^10.0.7",
|
|
"prettier": "^1.19.1",
|
|
"typescript": "^4.1.3",
|
|
"yorkie": "^2.0.0"
|
|
}
|
|
}
|