UNPKG

@firefox-devtools/react-contextmenu

Version:
109 lines (108 loc) 3.5 kB
{ "name": "@firefox-devtools/react-contextmenu", "version": "5.2.2", "description": "Context Menu implemented in React", "main": "modules/index.js", "module": "es6/index.js", "typings": "src/index.d.ts", "keywords": [ "react", "reactjs", "react-component", "contextmenu", "rightclick" ], "files": [ "es6", "modules", "dist", "src/index.d.ts" ], "scripts": { "lint": "eslint ./src ./tests ./examples", "test": "yarn lint && yarn test:only", "test:only": "jest --no-cache --verbose --coverage", "test:dev": "jest --watchAll --no-cache --verbose --coverage", "clean": "rimraf ./dist && rimraf ./modules && rimraf ./es6", "clean:examples": "rimraf ./public", "build": "yarn clean && yarn test && yarn build:dist && yarn build:es5 && yarn build:es6", "build:dist": "webpack --progress --profile", "build:es5": "cross-env BABEL_ENV=es5 babel src --out-dir modules", "build:es6": "cross-env BABEL_ENV=es6 babel src --out-dir es6", "build:examples": "yarn clean:examples && yarn build:dev", "build:dev": "cross-env BABEL_ENV=es6 webpack --config examples/webpack.config.js --progress --profile", "start": "webpack serve --config examples/webpack.config.js", "prepublishOnly": "yarn build" }, "author": "Vivek Kumar Bansal <contact@vkbansal.me>", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/firefox-devtools/react-contextmenu.git" }, "bugs": { "url": "https://github.com/firefox-devtools/react-contextmenu/issues" }, "homepage": "https://github.com/firefox-devtools/react-contextmenu", "dependencies": { "classnames": "^2.5.1", "object-assign": "^4.1.0" }, "peerDependencies": { "prop-types": "^15.0.0", "react": "^0.14.0 || ^15.0.0 || ^16.0.1 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^0.14.0 || ^15.0.0 || ^16.0.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "devDependencies": { "@babel/cli": "^7.26.4", "@babel/core": "^7.26.10", "@babel/eslint-parser": "^7.26.10", "@babel/preset-env": "^7.26.9", "@babel/preset-react": "^7.26.3", "@babel/preset-stage-2": "^7.8.3", "@eslint/eslintrc": "^3.3.0", "@testing-library/dom": "^10.4.0", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.2.0", "@testing-library/user-event": "^14.6.1", "babel-jest": "~29.7.0", "babel-loader": "~10.0.0", "cross-env": "~7.0.3", "css-loader": "~7.1.2", "eslint": "~9.22.0", "eslint-config-vkbansal": "~5.2.1", "eslint-import-resolver-webpack": "~0.13.10", "eslint-plugin-import": "~2.31.0", "eslint-plugin-jest": "^28.11.0", "eslint-plugin-jest-dom": "^5.5.0", "eslint-plugin-react": "~7.37.4", "eslint-plugin-testing-library": "^7.1.1", "globals": "^16.0.0", "history": "~5.3.0", "html-webpack-plugin": "~5.6.3", "jest": "~29.7.0", "jest-environment-jsdom": "^29.7.0", "mini-css-extract-plugin": "^2.9.2", "prop-types": "~15.8.1", "react": "~19.0.0", "react-dom": "~19.0.0", "react-router-dom": "~7.3.0", "rimraf": "~5.0.10", "style-loader": "~4.0.0", "webpack": "5.98.0", "webpack-cli": "^6.0.1", "webpack-dev-server": "^5.2.0" }, "jest": { "setupFilesAfterEnv": [ "<rootDir>/tests/.setup.js" ], "roots": [ "<rootDir>/tests" ], "collectCoverageFrom": [ "**/src/**/*.js" ], "testEnvironment": "jsdom" } }