UNPKG

@firefox-devtools/react-contextmenu

Version:
109 lines (108 loc) 3.52 kB
{ "name": "@firefox-devtools/react-contextmenu", "version": "5.2.4", "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", "prepack": "yarn --frozen-lockfile && 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.28.6", "@babel/core": "^7.29.0", "@babel/eslint-parser": "^7.28.6", "@babel/preset-env": "^7.29.5", "@babel/preset-react": "^7.28.5", "@babel/preset-stage-2": "^7.8.3", "@eslint/eslintrc": "^3.3.5", "@testing-library/dom": "^10.4.1", "@testing-library/jest-dom": "^6.9.1", "@testing-library/react": "^16.3.2", "@testing-library/user-event": "^14.6.1", "babel-jest": "~30.4.1", "babel-loader": "~10.1.1", "cross-env": "~10.1.0", "css-loader": "~7.1.4", "eslint": "~9.39.4", "eslint-config-vkbansal": "~5.2.1", "eslint-import-resolver-webpack": "~0.13.11", "eslint-plugin-import": "~2.32.0", "eslint-plugin-jest": "^29.15.2", "eslint-plugin-jest-dom": "^5.5.0", "eslint-plugin-react": "~7.37.5", "eslint-plugin-testing-library": "^7.16.2", "globals": "^17.6.0", "history": "~5.3.0", "html-webpack-plugin": "~5.6.7", "jest": "~30.4.2", "jest-environment-jsdom": "^30.4.1", "mini-css-extract-plugin": "^2.10.2", "prop-types": "~15.8.1", "react": "~19.2.6", "react-dom": "~19.2.6", "react-router-dom": "~7.15.0", "rimraf": "~6.1.3", "style-loader": "~4.0.0", "webpack": "5.106.2", "webpack-cli": "^7.0.2", "webpack-dev-server": "^5.2.4" }, "jest": { "setupFilesAfterEnv": [ "<rootDir>/tests/.setup.js" ], "roots": [ "<rootDir>/tests" ], "collectCoverageFrom": [ "**/src/**/*.js" ], "testEnvironment": "jsdom" } }