UNPKG

use-methods

Version:

A simpler way to useReducers

131 lines (130 loc) 3.23 kB
{ "name": "use-methods", "version": "0.5.1", "description": "A simpler way to useReducers", "keywords": [ "react", "hooks", "useReducer", "immer", "state management" ], "main": "dist/index.js", "typings": "dist/index.d.ts", "files": [ "dist", "src" ], "author": "Tom Crockett <pelotom@gmail.com>", "repository": { "type": "git", "url": "https://github.com/pelotom/use-methods" }, "license": "MIT", "engines": { "node": ">=6.0.0" }, "scripts": { "lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'", "prebuild": "rimraf dist", "build": "tsc --module commonjs && typedoc --out docs --target es6 --theme minimal --mode file src", "start": "rollup -c rollup.config.ts -w", "test": "jest --coverage", "test:watch": "jest --coverage --watch", "test:prod": "npm run lint && npm run test -- --no-cache", "deploy-docs": "ts-node tools/gh-pages-publish", "report-coverage": "cat ./coverage/lcov.info | coveralls", "commit": "git-cz", "semantic-release": "semantic-release", "semantic-release-prepare": "ts-node tools/semantic-release-prepare", "travis-deploy-once": "travis-deploy-once" }, "lint-staged": { "{src,test}/**/*.ts": [ "prettier --write", "git add" ] }, "config": { "commitizen": { "path": "node_modules/cz-conventional-changelog" } }, "jest": { "transform": { ".(ts|tsx)": "ts-jest" }, "testEnvironment": "jsdom", "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$", "moduleFileExtensions": [ "ts", "tsx", "js" ], "coveragePathIgnorePatterns": [ "/node_modules/", "/test/" ], "coverageThreshold": { "global": { "branches": 90, "functions": 95, "lines": 95, "statements": 95 } }, "collectCoverageFrom": [ "src/*.{js,ts}" ] }, "commitlint": { "extends": [ "@commitlint/config-conventional" ] }, "dependencies": { "@types/react": "^16.8.19", "immer": "^3.1.2" }, "devDependencies": { "@commitlint/cli": "^8.0.0", "@commitlint/config-conventional": "^8.0.0", "@testing-library/react": "^8.0.1", "@types/jest": "^24.0.13", "@types/node": "^12.0.4", "colors": "^1.3.2", "commitizen": "^3.1.1", "coveralls": "^3.0.2", "cross-env": "^5.2.0", "cz-conventional-changelog": "^2.1.0", "husky": "^2.3.0", "jest": "^24.8.0", "jest-config": "^24.8.0", "lint-staged": "^8.1.7", "lodash.camelcase": "^4.3.0", "prettier": "^1.17.1", "prompt": "^1.0.0", "react": "^16.8.6", "react-dom": "^16.8.6", "replace-in-file": "^4.1.0", "rimraf": "^2.6.2", "semantic-release": "^15.13.12", "shelljs": "^0.8.3", "travis-deploy-once": "^5.0.9", "ts-jest": "^24.0.2", "ts-node": "^8.2.0", "tslint": "^5.17.0", "tslint-config-prettier": "^1.15.0", "tslint-config-standard": "^8.0.1", "typedoc": "^0.14.2", "typescript": "^3.5.1" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "peerDependencies": { "react": "^16.8.0" } }