UNPKG

respondable

Version:

Utilizes matchMedia to performantly return conditional values based on media queries.

69 lines (68 loc) 1.92 kB
{ "name": "respondable", "version": "1.0.1", "description": "Utilizes matchMedia to performantly return conditional values based on media queries.", "main": "dist/index.min.js", "scripts": { "clean": "rimraf ./dist ./coverage ./.nyc_output", "coverage-report": "nyc report --reporter=html", "coveralls": "nyc report --reporter=lcov && cat ./coverage/lcov.info | coveralls", "compile": "mkdir dist && browserify ./src/index.js -s respondable -o dist/index.min.js -t [ babelify --presets [ es2015 stage-0 stage-1 babili ] ]", "lint": "eslint src test", "build": "npm run clean && npm run compile && npm run lint && npm test", "build:watch": "nodemon -i dist --exec npm run build", "test": "nyc ava", "test:watch": "nodemon --exec nyc ava" }, "ava": { "source": "src", "files": "test/*.spec.js", "require": [ "babel-register" ], "babel": "inherit" }, "nyc": { "exclude": [ "**/*.spec.js", "node_modules", "dist", "example", "coverage" ] }, "keywords": [ "responsive", "matchMedia", "breakpoint", "query", "media", "viewport" ], "contributors": [ "Brandon Dail <cottoncrypt@gmail.com>", "Nathan Schwartz <nathan.schwartz95@gmail.com>" ], "license": "MIT", "devDependencies": { "ava": "^0.16.0", "babel-eslint": "^7.0.0", "babel-polyfill": "^6.16.0", "babel-preset-es2015": "^6.1.4", "babel-preset-stage-0": "^6.16.0", "babel-preset-stage-1": "^6.16.0", "babelify": "^7.3.0", "babili": "0.0.9", "browserify": "^13.1.0", "coveralls": "^2.11.15", "eslint": "^3.12.1", "eslint-config-airbnb": "^13.0.0", "eslint-plugin-import": "^2.2.0", "eslint-plugin-jsx-a11y": "^2.2.3", "eslint-plugin-react": "^6.8.0", "nodemon": "^1.11.0", "nyc": "^8.3.1", "rimraf": "^2.5.4", "sinon": "^1.17.6" } }