UNPKG

react-media-query-hoc

Version:

A dead simple React Higher Order Component (HOC) that uses context for matching media queries

86 lines (85 loc) 2.4 kB
{ "name": "react-media-query-hoc", "version": "2.1.1", "description": "A dead simple React Higher Order Component (HOC) that uses context for matching media queries", "main": "dist/index.js", "scripts": { "prepublish": "npm run build", "build": "babel --out-dir dist src", "start": "node demo/server.js", "watch": "nodemon -w demo -x node demo/server.js", "test": "yarn build && yarn lint && yarn test:unit && yarn test:integration", "test:unit": "mocha test", "test:integration": "start-server-and-test start http://localhost:3000 cy:run", "tdd": "mocha --watch test", "lint": "eslint src", "cy:open": "cypress open", "cy:run": "cypress run" }, "keywords": [ "react", "hoc", "context", "matchmedia", "media-queries", "match-media", "responsive" ], "author": "Martin Jujou", "license": "MIT", "repository": { "type": "git", "url": "git+ssh://git@github.com/DomainGroupOSS/react-media-query-hoc.git" }, "bugs": { "url": "https://github.com/DomainGroupOSS/react-media-query-hoc/issues" }, "homepage": "https://github.com/DomainGroupOSS/react-media-query-hoc#readme", "babel": { "presets": [ "env", "react" ], "plugins": [ "transform-object-rest-spread" ] }, "peerDependencies": { "react": "^15.1.0 || ^16.0.0" }, "devDependencies": { "babel-cli": "^6.26.0", "babel-plugin-transform-object-rest-spread": "^6.26.0", "babel-preset-env": "^1.7.0", "babel-preset-react": "^6.24.1", "babel-register": "^6.26.0", "babelify": "^8.0.0", "browserify": "^16.2.2", "chai": "^4.1.2", "cypress": "^3.0.3", "enzyme": "^3.3.0", "enzyme-adapter-react-16": "^1.1.1", "eslint": "^4.19.1", "eslint-config-airbnb": "^16.1.0", "eslint-plugin-import": "^2.11.0", "eslint-plugin-jsx-a11y": "^6.0.3", "eslint-plugin-react": "^7.8.2", "express": "^4.16.3", "htmlescape": "^1.1.1", "jsdom": "^11.0.0", "literalify": "^0.4.0", "mocha": "^5.2.0", "nodemon": "^1.18.3", "react": "16.3.2", "react-addons-test-utils": "^15.1.0", "react-dom": "16.3.2", "sinon": "^5.0.7", "start-server-and-test": "^1.7.0" }, "dependencies": { "css-mediaquery": "^0.1.2", "hoist-non-react-statics": "^2.5.0", "prop-types": "^15.5.10", "shallowequal": "^1.0.2" } }