加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
package.json 1.79 KB
一键复制 编辑 原始数据 按行查看 历史
黄威 提交于 2023-01-05 18:17 . update npm
{
"name": "home",
"version": "1.0.0",
"private": true,
"scripts": {
"build": "umi build",
"dev": "npm run start",
"lint": "umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier && npm run tsc",
"lint-staged": "lint-staged",
"lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
"lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",
"lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
"lint:prettier": "prettier -c --write \"src/**/*\" --end-of-line auto",
"lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
"postinstall": "umi generate tmp",
"precommit": "lint-staged",
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
"start": "umi dev",
"test": "umi-test",
"test:coverage": "umi-test --coverage"
},
"lint-staged": {
"**/*.less": "stylelint --syntax less",
"**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
"**/*.{js,jsx,tsx,ts,less,md,json}": [
"prettier --write"
]
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 10"
],
"dependencies": {
"antd": "^4.24.7",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"umi": "^3.5.36"
},
"devDependencies": {
"@types/react": "^17.0.52",
"@types/react-dom": "^17.0.18",
"@umijs/fabric": "^2.14.0",
"@umijs/preset-react": "^1.8.31",
"@umijs/test": "^3.5.36",
"@umijs/yorkie": "^2.0.3",
"eslint": "^7.32.0",
"lint-staged": "^10.0.7",
"prettier": "^2.8.1",
"stylelint": "^13.0.0",
"typescript": "^4.9.4"
},
"engines": {
"node": ">=10.0.0"
},
"checkFiles": [
"src/**/*.js*",
"src/**/*.ts*",
"src/**/*.less",
"config/**/*.js*",
"scripts/**/*.js"
]
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化