UNPKG

react-responsive-picture

Version:

A future-proof responsive image component that supports latest Picture specification

92 lines (91 loc) 3.42 kB
{ "name": "react-responsive-picture", "version": "3.2.2", "description": "A future-proof responsive image component that supports latest Picture specification", "main": "lib/index.js", "module": "es/index.js", "types": "lib/index.d.ts", "scripts": { "build": "run-p build:commonjs build:es build:umd build:umd:min build:ts build:ts-es", "build:es": "babel src -d es --extensions .ts,.tsx", "build:commonjs": "cross-env BABEL_ENV=commonjs babel src -d lib --extensions .ts,.tsx", "build:umd": "cross-env NODE_ENV=development webpack src/index.ts -o dist/react-responsive-picture.js", "build:umd:min": "cross-env NODE_ENV=production webpack src/index.ts -o dist/react-responsive-picture.min.js", "build:ts": "tsc", "build:ts-es": "tsc -m es6 --outDir es", "clean": "rimraf lib dist es", "start": "parcel examples/index.html -d examples/dist --cache-dir examples/cache --open", "dev": "yarn run clean && cross-env BABEL_ENV=commonjs babel src -d lib --watch --extensions .ts,.tsx", "lint": "eslint src/ --ext .js,.ts,.tsx", "prepack": "yarn run clean && yarn run build", "test": "echo \"No tests available\" && exit 0", "ts:check": "tsc -p tsconfig.json --allowJs false --noEmit --emitDeclarationOnly false" }, "repository": { "type": "git", "url": "git+https://github.com/braposo/react-responsive-picture.git" }, "files": [ "es", "dist", "lib", "src" ], "keywords": [ "image", "picture", "responsive", "react" ], "author": { "name": "Bernardo Raposo", "email": "hi@bernardoraposo.com", "url": "http://bernardoraposo.com" }, "license": "MIT", "bugs": { "url": "https://github.com/braposo/react-responsive-picture/issues" }, "homepage": "https://github.com/braposo/react-responsive-picture#readme", "devDependencies": { "@babel/cli": "^7.6.0", "@babel/core": "^7.6.0", "@babel/plugin-proposal-object-rest-spread": "^7.5.5", "@babel/plugin-transform-modules-commonjs": "^7.6.0", "@babel/preset-env": "^7.6.0", "@babel/preset-react": "^7.0.0", "@babel/preset-typescript": "^7.6.0", "@types/node": "^12.7.5", "@types/react": "^16.9.2", "@typescript-eslint/eslint-plugin": "^2.2.0", "@typescript-eslint/parser": "^2.2.0", "babel-eslint": "^10.0.3", "babel-loader": "^8.0.6", "cross-env": "^5.2.1", "eslint": "^6.3.0", "eslint-config-airbnb-base": "^14.0.0", "eslint-config-prettier": "^6.3.0", "eslint-plugin-import": "^2.18.2", "eslint-plugin-prettier": "^3.1.0", "eslint-plugin-react": "^7.14.3", "npm-run-all": "^4.1.5", "parcel-bundler": "^1.12.3", "prettier": "^1.18.2", "react": "^16.9.0", "react-dom": "^16.9.0", "rimraf": "^3.0.0", "source-map-loader": "^0.2.4", "typescript": "^3.6.3", "webpack": "^4.39.3", "webpack-cli": "^3.3.8" }, "peerDependencies": { "react": "^15.0.1 || ^16.0.1", "react-dom": "^15.0.1 || ^16.0.1" }, "dependencies": { "can-use-dom": "0.1.0", "cxs": "6.2.0", "picturefill": "3.0.3" } }