UNPKG

use-color-theme

Version:

A custom React Hook to help you implement a "color theme" component.

72 lines (71 loc) 1.85 kB
{ "name": "use-color-theme", "publishConfig": { "tag": "latest" }, "version": "1.1.2", "description": "A custom React Hook to help you implement a \"color theme\" component.", "main": "dist/use-color-theme.js", "umd:main": "dist/use-color-theme.umd.js", "module": "dist/use-color-theme.m.js", "source": "src/index.js", "types": "types/index.d.ts", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/FelixTellmann/use-color-theme" }, "scripts": { "prepublishOnly": "npm run build", "lint": "eslint src", "test": "jest --verbose --coverage --silent", "test:watch": "jest --watch --runInBand --silent", "prebuild": "npm run lint && npm t && rimraf dist", "build": "microbundle -o dist/ --sourcemap false --target web", "dev": "microbundle watch -o dist/ --sourcemap false --compress false" }, "keywords": [ "react-hooks", "hooks", "react", "utils", "lib", "color-theme", "theme" ], "author": "Felix Tellmann", "devDependencies": { "@babel/core": "^7.2.2", "@babel/preset-env": "^7.2.3", "@babel/preset-react": "^7.0.0", "babel-core": "^7.0.0-bridge.0", "babel-jest": "^23.6.0", "eslint": "^5.10.0", "eslint-config-amex": "^9.0.0", "eslint-plugin-react-hooks": "^1.2.0", "jest": "^23.6.0", "jest-dom": "^3.0.0", "microbundle": "^0.9.0", "react": "^16.8.0", "react-dom": "^16.8.0", "react-testing-library": "^5.5.0", "rimraf": "^2.6.2" }, "peerDependencies": { "react": "^16.8.0" }, "jest": { "coverageThreshold": { "global": { "branches": 85, "functions": 85, "lines": 85, "statements": 85 } } }, "dependencies": { "@use-it/event-listener": "^0.1.2", "use-persisted-state": "^0.3.0" } }