1 Star 0 Fork 0

laoha0201/swr

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
package.json 2.48 KB
一键复制 编辑 原始数据 按行查看 历史
Shu Ding 提交于 2021-03-14 00:00 . 0.5.3
{
"name": "swr",
"version": "0.5.3",
"description": "React Hooks library for remote data fetching",
"main": "./dist/index.js",
"module": "./esm/index.js",
"react-native": "./esm/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist/**",
"esm/**"
],
"repository": "vercel/swr",
"homepage": "https://swr.vercel.app",
"license": "MIT",
"scripts": {
"build": "npm run build:esm && npm run build:cjs",
"build:cjs": "ncc build src/index.ts -o dist -m -e react",
"build:esm": "tsc --module ES6 --outDir esm",
"watch": "tsc --watch",
"watch:esm": "tsc --module ES6 --outDir esm --target esnext --watch",
"types:check": "tsc --noEmit",
"format": "prettier --write \"{src,test,examples}/**/*.{ts,tsx}\"",
"lint": "eslint \"{src,test,examples}/**/*.{ts,tsx}\"",
"lint:fix": "eslint \"{src,test,examples}/**/*.{ts,tsx}\" --fix",
"test": "jest",
"register": "yarn link && cd node_modules/react && yarn link",
"prepare:vite": "git clone https://github.com/promer94/vite-swr playground/vite-swr && cd playground/vite-swr && yarn && yarn link react && yarn link swr",
"prepare:next": "git clone https://github.com/promer94/next-swr playground/next-swr && cd playground/next-swr && yarn && yarn link react && yarn link swr",
"dev:vite": "concurrently \"yarn watch:esm\" \"cd playground/vite-swr && yarn dev\"",
"dev:next": "concurrently \"yarn watch:esm\" \"cd playground/next-swr && yarn dev\""
},
"husky": {
"hooks": {
"pre-commit": "npm run types:check && lint-staged"
}
},
"lint-staged": {
"*.{ts,tsx}": [
"npm run lint:fix",
"npm run format",
"git add"
]
},
"devDependencies": {
"@testing-library/jest-dom": "5.11.9",
"@testing-library/react": "10.1.0",
"@types/jest": "25.2.3",
"@types/node": "11.12.0",
"@types/react": "16.9.11",
"@typescript-eslint/eslint-plugin": "2.5.0",
"@typescript-eslint/parser": "2.5.0",
"@zeit/ncc": "0.20.5",
"concurrently": "6.0.0",
"eslint": "6.6.0",
"eslint-config-prettier": "6.5.0",
"eslint-plugin-jest-dom": "3.6.5",
"eslint-plugin-react": "7.20.6",
"eslint-plugin-react-hooks": "4.1.2",
"eslint-plugin-testing-library": "3.10.1",
"husky": "2.4.1",
"jest": "25.5.4",
"lint-staged": "8.2.1",
"prettier": "1.18.2",
"react": "16.11.0",
"react-dom": "16.11.0",
"ts-jest": "25.5.1",
"typescript": "3.6.4"
},
"peerDependencies": {
"react": "^16.11.0 || ^17.0.0"
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/laoha0201/swr.git
git@gitee.com:laoha0201/swr.git
laoha0201
swr
swr
master

搜索帮助