UNPKG

react-dropzone

Version:
173 lines (172 loc) 5.08 kB
{ "name": "react-dropzone", "description": "Simple HTML5 drag-drop zone with React.js", "main": "dist/index.js", "module": "dist/es/index.js", "scripts": { "ci": "git-cz", "clean": "rimraf ./dist", "build": "npm run clean && npm run build:umd && npm run build:es", "build:umd": "cross-env NODE_ENV=es rollup -c", "build:es": "cross-env BABEL_ENV=es babel ./src --out-dir ./dist/es --ignore '**/*.spec.js'", "start": "styleguidist server", "styleguide": "styleguidist build", "test": "cross-env NODE_ENV=test npm run eslint:src && jest --coverage && npm run typescript", "test:watch": "cross-env NODE_ENV=test jest --watch", "eslint:src": "eslint .", "commitmsg": "commitlint -e", "precommit": "lint-staged", "prepublish": "npm run build && npm run size", "logo": "cd logo && sketchtool export artboards logo.sketch", "imagemin": "imagemin --out-dir=logo --plugin=pngquant --plugin=svgo", "size": "size-limit", "size:why": "size-limit --why", "typescript": "tsc --project ./typings/tests" }, "size-limit": [ { "path": "dist/index.js", "limit": "7 KB" }, { "path": "dist/es/index.js", "limit": "7 KB" } ], "lint-staged": { "*.js": [ "eslint --fix", "git add" ], "*.ts": [ "tslint" ], "*.{svg,png}": [ "imagemin", "git add" ] }, "jest": { "clearMocks": true, "setupFilesAfterEnv": [ "<rootDir>/testSetup.js" ], "coveragePathIgnorePatterns": [ "/dist/", "/node_modules/", "<rootDir>/testSetup.js" ], "testPathIgnorePatterns": [ "/node_modules/", "/dist/" ] }, "keywords": [ "react-component", "react", "drag", "drop", "upload" ], "repository": { "type": "git", "url": "https://github.com/react-dropzone/react-dropzone.git" }, "bugs": { "url": "https://github.com/react-dropzone/react-dropzone/issues" }, "homepage": "https://github.com/react-dropzone/react-dropzone", "author": "Param Aggarwal", "contributors": [ "Andrey Okonetchnikov <andrey@okonet.ru> (http://okonet.ru)", "Mike Olson <me@mwolson.org>", "Param Aggarwal", "Tyler Waters <tyler.waters@gmail.com>", "Rick Markins <rmarkins@gmail.com>", "Roland Groza <rolandjitsu@gmail.com>" ], "license": "MIT", "peerDependencies": { "react": ">= 16.8" }, "dependencies": { "attr-accept": "^2.0.0", "file-selector": "^0.1.12", "prop-types": "^15.7.2" }, "devDependencies": { "@babel/cli": "^7.6.4", "@babel/core": "^7.6.4", "@babel/plugin-external-helpers": "^7.2.0", "@babel/plugin-proposal-export-default-from": "^7.5.2", "@babel/plugin-proposal-logical-assignment-operators": "^7.2.0", "@babel/plugin-proposal-optional-chaining": "^7.6.0", "@babel/plugin-proposal-pipeline-operator": "^7.5.0", "@babel/plugin-proposal-nullish-coalescing-operator": "^7.4.4", "@babel/plugin-proposal-do-expressions": "^7.6.0", "@babel/plugin-transform-runtime": "^7.6.2", "@babel/preset-env": "^7.6.3", "@babel/preset-react": "^7.6.3", "@babel/register": "^7.6.2", "@commitlint/cli": "^8.2.0", "@commitlint/config-angular": "^8.2.0", "@commitlint/prompt": "^8.2.0", "@commitlint/prompt-cli": "^8.2.0", "@size-limit/preset-small-lib": "^2.1.6", "@testing-library/dom": "^6.5.0", "@testing-library/jest-dom": "^4.1.0", "@testing-library/react": "^9.3.0", "@testing-library/react-hooks": "^2.0.3", "@types/react": "^16.9.0", "@types/react-dom": "^16.9.0", "babel-eslint": "10.x", "babel-jest": "^24.9.0", "babel-plugin-add-module-exports": "^1.0.2", "babel-plugin-dynamic-import-node": "^2.3.0", "commitizen": "^3.1.2", "cross-env": "^6.0.3", "eslint": "6.x", "eslint-config-okonet": "^7.0.2", "eslint-config-prettier": "6.x", "eslint-plugin-import": "2.x", "eslint-plugin-jsx-a11y": "6.x", "eslint-plugin-node": "10.x", "eslint-plugin-prettier": "3.x", "eslint-plugin-react": "7.x", "eslint-plugin-react-hooks": "2.x", "husky": "^3.0.8", "imagemin-cli": "^5.0.0", "imagemin-pngquant": "^8.0.0", "jest": "^24.9.0", "lint-staged": "^9.4.2", "markdownlint-cli": "^0.18.0", "prettier": "*", "react": "^16.9.0", "react-dom": "^16.9.0", "react-styleguidist": "^9.1.16", "react-test-renderer": "^16.9.0", "rimraf": "^3.0.0", "rollup": "^1.23.1", "rollup-plugin-babel": "^4.3.3", "rollup-plugin-commonjs": "^10.1.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-uglify": "^6.0.3", "styled-components": "^4.4.0", "webpack-blocks": "^2.0.1", "sinon": "^3.2.1", "style-loader": "^1.0.0", "tslint": "^5.20.0", "typescript": "^3.2.4", "webpack": "^4.41.1" }, "typings": "typings/react-dropzone.d.ts", "config": { "commitizen": { "path": "@commitlint/prompt" } }, "version": "11.2.0", "engines": { "node": ">= 8" } }