UNPKG

react-dropzone

Version:
173 lines (172 loc) 5.05 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": "^1.1.3", "file-selector": "^0.1.11", "prop-types": "^15.7.2" }, "devDependencies": { "@babel/cli": "^7.2.3", "@babel/core": "^7.3.4", "@babel/plugin-external-helpers": "^7.2.0", "@babel/plugin-proposal-export-default-from": "^7.2.0", "@babel/plugin-proposal-logical-assignment-operators": "^7.2.0", "@babel/plugin-proposal-optional-chaining": "^7.2.0", "@babel/plugin-proposal-pipeline-operator": "^7.3.2", "@babel/plugin-proposal-nullish-coalescing-operator": "^7.2.0", "@babel/plugin-proposal-do-expressions": "^7.2.0", "@babel/plugin-transform-runtime": "^7.3.4", "@babel/preset-env": "^7.3.4", "@babel/preset-react": "^7.0.0", "@babel/register": "^7.0.0", "@commitlint/cli": "^7.0.0", "@commitlint/config-angular": "^7.0.1", "@commitlint/prompt": "^7.0.0", "@commitlint/prompt-cli": "^7.0.0", "@types/react": "^16.8.3", "@types/react-dom": "^16.8.1", "babel-eslint": "*", "babel-jest": "^24.1.0", "babel-plugin-add-module-exports": "^1.0.0", "babel-plugin-dynamic-import-node": "^2.2.0", "commitizen": "^2.10.1", "cross-env": "^5.2.0", "eslint": "4.x", "eslint-config-okonet": "^7.0.2", "eslint-config-prettier": "2.x", "eslint-plugin-flowtype": "2.x", "eslint-plugin-import": "2.x", "eslint-plugin-jsx-a11y": "5.x", "eslint-plugin-node": "5.x", "eslint-plugin-prettier": "2.x", "eslint-plugin-react": "7.x", "eslint-plugin-react-hooks": "^1.0.2", "husky": "^0.14.3", "imagemin-cli": "^3.0.0", "imagemin-pngquant": "^6.0.0", "jest": "^24.1.0", "jest-dom": "^3.1.2", "lint-staged": "^7.2.2", "markdownlint-cli": "^0.13.0", "prettier": "*", "react": "^16.8.2", "react-dom": "^16.8.2", "react-hooks-testing-library": "^0.3.4", "react-styleguidist": "^9.0.1", "react-test-renderer": "^16.8.2", "react-testing-library": "^6.0.0", "rimraf": "^2.5.2", "rollup": "^1.3.0", "rollup-plugin-babel": "^4.3.2", "rollup-plugin-commonjs": "^9.2.1", "rollup-plugin-node-resolve": "^4.0.1", "rollup-plugin-uglify": "^6.0.2", "size-limit": "^0.19.2", "styled-components": "^4.1.2", "webpack-blocks": "^2.0.0-rc", "sinon": "^3.2.1", "style-loader": "^0.18.2", "tslint": "^5.9.1", "typescript": "^3.2.4", "webpack": "^4.29.5" }, "typings": "typings/react-dropzone.d.ts", "config": { "commitizen": { "path": "@commitlint/prompt" } }, "version": "10.0.1", "engines": { "node": ">= 8" } }