@rwsbillyang/preact-usecache
Version:
preact hooks use cache before client fetch data from remote server, likes cache in server side before database I/O
119 lines (118 loc) • 3.67 kB
JSON
{
"name": "@rwsbillyang/preact-usecache",
"version": "1.3.1",
"description": "preact hooks use cache before client fetch data from remote server, likes cache in server side before database I/O",
"repository": {
"type": "git",
"url": "git+https://github.com/rwsbillyang/usecache.git"
},
"keywords": [
"preact",
"hook",
"usecache",
"client side cache"
],
"author": "rwsbillyang@qq.com",
"license": "GPL-3.0-only",
"bugs": {
"url": "https://github.com/rwsbillyang/usecache/issues"
},
"registry": "https://registry.npmjs.org/",
"homepage": "https://github.com/rwsbillyang/usecache#readme",
"peerDependencies": {
"preact": "^10.16.0"
},
"sideEffects": [
"dist/index.css"
],
"main": "./dist/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/index.d.ts",
"typings": "./dist/index.d.ts",
"files": [
"dist",
"package.json",
"README.md",
"global.d.ts"
],
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/index.js"
}
},
"workspaces": [
"playground"
],
"scripts": {
"storybook": "start-storybook -p 6006",
"build": "tsup",
"dev": "npm run dev -w playground",
"dev:use-bundle": "run-p tsup-w dev-pack",
"build:css": "npm run build:scss && npm run build:postcss && rimraf rf ./src/index.css",
"build:scss": "sass --no-source-map --style=compressed src/styles/main.scss src/index.css",
"build:postcss": "postcss src/index.css -o dist/index.css",
"build:vite": "vite build",
"build:storybook": "build-storybook",
"lint": "eslint --ext .ts,.tsx ./src",
"tsup-w": "tsup --watch",
"dev-pack": "npm run dev:usepack -w playground",
"prepare": "chmod a+x .husky/* && husky install",
"prepublishOnly": "npm run build",
"release": "bumpp --commit --tag --push",
"stylelint": "stylelint src/**/*.css",
"test": "vitest",
"test:ui": "vitest --ui",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@babel/core": "^7.19.0",
"@babel/plugin-transform-runtime": "^7.18.10",
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"@storybook/addon-actions": "^6.5.10",
"@storybook/addon-docs": "^6.5.10",
"@storybook/addon-essentials": "^6.5.10",
"@storybook/addon-links": "^6.5.10",
"@storybook/builder-vite": "^0.2.2",
"@storybook/react": "^6.5.10",
"@swc/core": "^1.2.248",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.1.5",
"@testing-library/user-event": "^14.4.3",
"@typescript-eslint/eslint-plugin": "^5.36.2",
"@typescript-eslint/parser": "^5.36.2",
"@vitest/ui": "^0.23.1",
"autoprefixer": "^10.4.8",
"babel-loader": "^8.2.5",
"bumpp": "^8.2.1",
"core-js": "^3.25.0",
"esbuild-plugin-babel": "^0.2.3",
"esbuild-wasm": "latest",
"eslint": "^8.23.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-react": "^7.31.7",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.1",
"jsdom": "^20.0.0",
"lint-staged": "^13.0.3",
"npm-run-all": "^4.1.5",
"path": "^0.12.7",
"sass": "^1.54.8",
"stylelint": "^14.11.0",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-standard": "^28.0.0",
"stylelint-prettier": "^2.0.0",
"tsup": "^6.2.3",
"typescript": "~4.8.3",
"vite": "3.0.9",
"vite-plugin-dts": "^1.4.1",
"vitest": "^0.23.1"
},
"overrides": {
"esbuild": "npm:esbuild-wasm@latest"
}
}