[d24f17c] | 1 | {
|
---|
| 2 | "name": "react-copy-to-clipboard",
|
---|
| 3 | "version": "5.1.0",
|
---|
| 4 | "description": "Copy-to-clipboard React component",
|
---|
| 5 | "main": "lib/index.js",
|
---|
| 6 | "config": {
|
---|
| 7 | "component": "CopyToClipboard",
|
---|
| 8 | "externals": {
|
---|
| 9 | "react": "React",
|
---|
| 10 | "react-dom": "ReactDOM"
|
---|
| 11 | },
|
---|
| 12 | "include": [
|
---|
| 13 | "https://unpkg.com/react/umd/react.production.min.js",
|
---|
| 14 | "https://unpkg.com/react-dom/umd/react-dom.production.min.js"
|
---|
| 15 | ]
|
---|
| 16 | },
|
---|
| 17 | "scripts": {
|
---|
| 18 | "build": "yarn lib && yarn dist",
|
---|
| 19 | "start": "NODE_ENV=development webpack-cli serve --config ./webpack/dev.config.js",
|
---|
| 20 | "predist": "rm -rf ./build",
|
---|
| 21 | "dist": "NODE_ENV=production webpack-cli --config ./webpack/dist.config.js && NODE_ENV=production webpack-cli --config ./webpack/min.config.js",
|
---|
| 22 | "preghPages": "yarn pub",
|
---|
| 23 | "ghPages": "gh-pages --dist ./pub --repo git@github.com:nkbt/react-copy-to-clipboard.git --user nik@butenko.me --branch gh-pages --message 'Publish examples' ",
|
---|
| 24 | "prelib": "rm -rf ./lib",
|
---|
| 25 | "lib": "NODE_ENV=production babel src --out-dir lib",
|
---|
| 26 | "lint": "eslint .",
|
---|
| 27 | "prepub": "rm -rf ./pub",
|
---|
| 28 | "pub": "NODE_ENV=production webpack-cli --config ./webpack/pub.config.js",
|
---|
| 29 | "test": "node test/Component-test.js",
|
---|
| 30 | "prepublishOnly": "yarn build",
|
---|
| 31 | "postversion": "git push --follow-tags",
|
---|
| 32 | "deps": "depcheck",
|
---|
| 33 | "check:deps": "[ ! $(depcheck | grep --invert-match 'No depcheck issue') ]"
|
---|
| 34 | },
|
---|
| 35 | "repository": {
|
---|
| 36 | "type": "git",
|
---|
| 37 | "url": "https://github.com/nkbt/react-copy-to-clipboard.git"
|
---|
| 38 | },
|
---|
| 39 | "keywords": [
|
---|
| 40 | "component",
|
---|
| 41 | "react-component",
|
---|
| 42 | "react",
|
---|
| 43 | "copy to clipboard",
|
---|
| 44 | "clipboard"
|
---|
| 45 | ],
|
---|
| 46 | "author": "Nik Butenko <nik@butenko.me>",
|
---|
| 47 | "license": "MIT",
|
---|
| 48 | "bugs": {
|
---|
| 49 | "url": "https://github.com/nkbt/react-copy-to-clipboard/issues"
|
---|
| 50 | },
|
---|
| 51 | "homepage": "https://github.com/nkbt/react-copy-to-clipboard",
|
---|
| 52 | "peerDependencies": {
|
---|
| 53 | "react": "^15.3.0 || 16 || 17 || 18"
|
---|
| 54 | },
|
---|
| 55 | "dependencies": {
|
---|
| 56 | "copy-to-clipboard": "^3.3.1",
|
---|
| 57 | "prop-types": "^15.8.1"
|
---|
| 58 | },
|
---|
| 59 | "devDependencies": {
|
---|
| 60 | "@babel/cli": "^7.17.6",
|
---|
| 61 | "@babel/core": "^7.17.9",
|
---|
| 62 | "@babel/eslint-parser": "^7.17.0",
|
---|
| 63 | "@babel/plugin-proposal-class-properties": "^7.16.7",
|
---|
| 64 | "@babel/plugin-proposal-object-rest-spread": "^7.17.3",
|
---|
| 65 | "@babel/preset-env": "^7.16.11",
|
---|
| 66 | "@babel/preset-react": "^7.16.7",
|
---|
| 67 | "@babel/register": "^7.17.7",
|
---|
| 68 | "babel-loader": "^8.2.4",
|
---|
| 69 | "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
---|
| 70 | "css-loader": "^6.7.1",
|
---|
| 71 | "depcheck": "^1.4.3",
|
---|
| 72 | "eslint": "^8.13.0",
|
---|
| 73 | "eslint-config-airbnb": "^19.0.4",
|
---|
| 74 | "eslint-plugin-import": "^2.26.0",
|
---|
| 75 | "eslint-plugin-jsx-a11y": "^6.5.1",
|
---|
| 76 | "eslint-plugin-react": "^7.29.4",
|
---|
| 77 | "eslint-plugin-react-hooks": "^4.4.0",
|
---|
| 78 | "gh-pages": "^3.2.3",
|
---|
| 79 | "html-webpack-plugin": "^5.5.0",
|
---|
| 80 | "html-webpack-tags-plugin": "^3.0.2",
|
---|
| 81 | "mini-css-extract-plugin": "^2.6.0",
|
---|
| 82 | "react": "^18.0.0",
|
---|
| 83 | "react-dom": "^18.0.0",
|
---|
| 84 | "style-loader": "^3.3.1",
|
---|
| 85 | "tape": "^5.5.3",
|
---|
| 86 | "webpack": "^5.72.0",
|
---|
| 87 | "webpack-cli": "^4.9.2",
|
---|
| 88 | "webpack-dev-server": "^4.8.1"
|
---|
| 89 | },
|
---|
| 90 | "files": [
|
---|
| 91 | "build",
|
---|
| 92 | "lib",
|
---|
| 93 | "src",
|
---|
| 94 | "LICENSE",
|
---|
| 95 | "package.json",
|
---|
| 96 | "README.md"
|
---|
| 97 | ],
|
---|
| 98 | "packageManager": "yarn@3.2.0"
|
---|
| 99 | }
|
---|