2021-10-29 14:52:55 +08:00
|
|
|
{
|
|
|
|
"name": "react-vite-template",
|
2021-10-30 16:32:01 +08:00
|
|
|
"author": {
|
|
|
|
"name": "Yiyang Sun",
|
|
|
|
"email": "syy11cn@outlook.com"
|
|
|
|
},
|
|
|
|
"version": "0.0.1",
|
|
|
|
"license": "MIT",
|
2021-10-29 14:52:55 +08:00
|
|
|
"scripts": {
|
|
|
|
"dev": "vite",
|
|
|
|
"build": "vite build",
|
2021-10-29 15:06:11 +08:00
|
|
|
"serve": "vite preview",
|
2021-10-29 16:30:23 +08:00
|
|
|
"precommit": "lint-staged",
|
2021-10-29 16:27:35 +08:00
|
|
|
"lint:less": "stylelint --fix \"src/**/*.less\" --syntax less",
|
2021-10-29 15:06:11 +08:00
|
|
|
"lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx",
|
|
|
|
"lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx ./src",
|
2021-10-29 15:09:26 +08:00
|
|
|
"lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx",
|
|
|
|
"lint:prettier": "prettier --check \"src/**/*\" --end-of-line auto",
|
|
|
|
"prettier": "prettier -c --write \"src/**/*\""
|
2021-10-29 14:52:55 +08:00
|
|
|
},
|
2021-10-29 16:30:23 +08:00
|
|
|
"husky": {
|
|
|
|
"hooks": {
|
|
|
|
"pre-commit": "lint-staged"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lint-staged": {
|
|
|
|
"**/*.less": "stylelint --syntax less",
|
|
|
|
"**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
|
2021-10-29 16:32:53 +08:00
|
|
|
"**/*.{js,jsx,tsx,ts,less,md,json}": [
|
|
|
|
"prettier --write"
|
|
|
|
]
|
2021-10-29 16:30:23 +08:00
|
|
|
},
|
2021-10-29 14:52:55 +08:00
|
|
|
"dependencies": {
|
|
|
|
"react": "^17.0.0",
|
|
|
|
"react-dom": "^17.0.0"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
2021-10-30 15:12:38 +08:00
|
|
|
"@apollo/client": "^3.4.16",
|
2021-10-29 17:38:30 +08:00
|
|
|
"@syy11cn/config-router": "^1.0.5",
|
2021-10-29 16:46:00 +08:00
|
|
|
"@types/react": "^17.0.33",
|
|
|
|
"@types/react-dom": "^17.0.10",
|
2021-10-29 17:04:12 +08:00
|
|
|
"@types/react-router-dom": "^5.3.2",
|
2021-10-29 15:06:11 +08:00
|
|
|
"@typescript-eslint/eslint-plugin": "^5.2.0",
|
|
|
|
"@typescript-eslint/parser": "^5.2.0",
|
2021-10-29 14:52:55 +08:00
|
|
|
"@vitejs/plugin-react": "^1.0.0",
|
2021-10-29 16:32:53 +08:00
|
|
|
"antd": "^4.16.13",
|
2021-10-30 15:12:38 +08:00
|
|
|
"axios": "^0.24.0",
|
2021-10-29 17:04:12 +08:00
|
|
|
"eslint": "^7.10.0",
|
2021-10-29 15:06:11 +08:00
|
|
|
"eslint-plugin-react": "^7.26.1",
|
|
|
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
|
|
"esprima": "^4.0.1",
|
2021-10-30 15:12:38 +08:00
|
|
|
"graphql": "^15.0.0",
|
2021-10-29 16:30:23 +08:00
|
|
|
"husky": "^7.0.4",
|
|
|
|
"lint-staged": "^11.2.6",
|
2021-10-29 15:09:26 +08:00
|
|
|
"prettier": "^2.4.1",
|
2021-10-29 17:04:12 +08:00
|
|
|
"react-router-dom": "^5.3.0",
|
2021-10-29 16:27:35 +08:00
|
|
|
"stylelint": "^14.0.1",
|
|
|
|
"stylelint-config-standard": "^23.0.0",
|
2021-10-29 16:46:00 +08:00
|
|
|
"typescript": "^4.4.4",
|
2021-10-29 14:52:55 +08:00
|
|
|
"vite": "^2.6.4"
|
|
|
|
}
|
2021-10-29 15:06:11 +08:00
|
|
|
}
|