UNPKG

@preact-hooks/unistore

Version:

A custom Preact hook to wire up components to Unistore.

85 lines (84 loc) 2.44 kB
{ "name": "@preact-hooks/unistore", "version": "1.1.2", "description": "A custom Preact hook to wire up components to Unistore.", "main": "dist/hooks.umd.js", "module": "dist/hooks.modern.js", "unpkg": "dist/hooks.umd.js", "types": "types/index.d.ts", "license": "MIT", "author": "Rahim Alwer <rahim_alwer@hotmail.com>", "engines": { "node": ">= 8" }, "browserslist": [ "> 1%", "last 2 versions", "not dead" ], "homepage": "https://github.com/mihar-22/preact-hooks-unistore#readme", "repository": { "type": "git", "url": "https://github.com/mihar-22/preact-hooks-unistore" }, "bugs": { "url": "https://github.com/mihar-22/preact-hooks-unistore/issues" }, "keywords": [ "unistore", "store", "preact-hooks", "preact", "hooks" ], "files": [ "dist", "types" ], "scripts": { "toc": "doctoc README.md", "lint": "standard --parser babel-eslint --fix --env jest", "clean": "rimraf dist", "build:shallowEqual": "microbundle src/shallowEqual.js -o dist/shallowEqual.js --name shallowEqual --sourcemap false -f modern,umd", "build:core": "microbundle src/index.js --name unistoreHooks --sourcemap false --compress --globals preact/hooks=preactHooks -f modern,umd", "build": "yarn clean && yarn build:core && yarn build:shallowEqual", "test": "jest src/__tests__", "test:watch": "yarn test --watch", "test:update": "yarn test --updateSnapshot --coverage", "setup": "yarn && yarn validate", "validate": "yarn lint && yarn test && yarn build", "release": "yarn validate && standard-version" }, "peerDependencies": { "preact": ">=10 || ^10.0.0-alpha.0 || ^10.0.0-beta.0", "unistore": "^3.4.1" }, "dependencies": {}, "devDependencies": { "@babel/core": "^7.6.2", "@babel/plugin-transform-react-jsx": "^7.3.0", "@babel/preset-env": "^7.6.2", "@testing-library/jest-dom": "^4.1.0", "@testing-library/preact": "^1.0.1", "@types/jest": "^24.0.18", "babel-eslint": "^10.0.3", "babel-jest": "^24.9.0", "doctoc": "^1.4.0", "jest": "^24.9.0", "microbundle": "^0.12.0-next.6", "preact": "^10.0.0-rc.3", "rimraf": "^3.0.0", "standard": "^14.3.1", "standard-version": "^7.0.0", "unistore": "^3.4.1" }, "standard": { "parser": "babel-eslint", "env": [ "jest" ] }, "publishConfig": { "access": "public" } }