UNPKG

react-router-decorator

Version:

基于 react-router-dom 封装的路由工具,提供装饰器/函数模式设置路由,自动排序,支持嵌套路由

94 lines (93 loc) 2.62 kB
{ "name": "react-router-decorator", "version": "1.1.0", "description": "基于 react-router-dom 封装的路由工具,提供装饰器/函数模式设置路由,自动排序,支持嵌套路由", "keywords": [ "react", "router", "route", "decorator", "react-router", "react-router-dom", "react-router-dom-decorator", "router-decorator", "react-decorator", "decorator-route" ], "homepage": "https://github.com/yantaolu/react-router-decorator#readme", "repository": "https://github.com/yantaolu/react-router-decorator", "license": "ISC", "author": "YantaoLu", "main": "lib/index.js", "module": "es/index.js", "types": "es/index.d.ts", "files": [ "lib", "es" ], "scripts": { "build": "pnpm clean && tsc -p ./tsconfig.prod.json && tsc -p ./tsconfig.es.json", "build:example": "vite build", "commit": "git-cz", "dev": "pnpm clean && tsc -p ./tsconfig.es.json --watch", "dev:example": "vite", "prepare": "husky install", "prepublishOnly": "node ./scripts/prev-publish.js && npm run build", "postpublish": "node ./scripts/post-publish.js", "clean": "rimraf es lib", "test": "echo \"Error: no test specified\" && exit 1" }, "lint-staged": { "{src,examples}/**/*.{js,jsx,ts,tsx,less,sass,scss,css,json,md}": [ "prettier --write", "eslint --fix", "git add" ] }, "config": { "commitizen": { "path": "@handy-js/git-cz" } }, "dependencies": { "qs": "^6.11.2", "react-router-dom": "^6.11.2" }, "devDependencies": { "@commitlint/cli": "^17.6.3", "@handy-js/git-cz": "^1.0.1", "@swc/core": "^1.3.58", "@types/node": "14", "@types/qs": "^6.9.10", "@types/react": "^18.2.6", "@types/react-dom": "^18.2.4", "@typescript-eslint/eslint-plugin": "^5.59.5", "@typescript-eslint/parser": "^5.59.5", "@vitejs/plugin-react": "^4.0.0", "chalk": "^4.1.2", "commitizen": "^4.3.0", "eslint": "^8.40.0", "eslint-config-prettier": "^8.0.0", "eslint-plugin-jsx-a11y": "^6.2.1", "eslint-plugin-react": "^7.31.8", "eslint-plugin-react-hooks": "^4.1.2", "husky": "^8.0.0", "inquirer": "^8.2.5", "lint-staged": "^13.2.2", "prettier": "2.8.8", "prettier-plugin-organize-imports": "^3.2.2", "prettier-plugin-packagejson": "^2.4.3", "react": "^18.2.0", "react-dom": "^18.2.0", "rimraf": "^4.4.0", "typescript": "^5.0.4", "vite": "^4.3.8" }, "peerDependencies": { "react": ">=16.8", "react-dom": ">=16.8" }, "engines": { "node": ">=14.0.0" } }