110 lines
3.3 KiB
JSON
110 lines
3.3 KiB
JSON
{
|
|
"name": "react-contextmenu",
|
|
"version": "2.14.0",
|
|
"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 ./examples",
|
|
"test": "npm run lint && npm run 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": "npm run clean && npm run test && npm run build:dist && npm run build:es5 && npm run build:es6",
|
|
"build:dist": "webpack --progress --profile --colors",
|
|
"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": "npm run clean:examples && npm run build:dev",
|
|
"build:dev": "cross-env BABEL_ENV=es6 webpack --config examples/webpack.config.js --progress --profile --colors",
|
|
"start": "npm run build:examples && npm run start:server",
|
|
"start:server": "http-server public -p 3000",
|
|
"prepublishOnly": "npm run build"
|
|
},
|
|
"author": "Vivek Kumar Bansal <contact@vkbansal.me>",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/vkbansal/react-contextmenu.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/vkbansal/react-contextmenu/issues"
|
|
},
|
|
"homepage": "https://github.com/vkbansal/react-contextmenu",
|
|
"dependencies": {
|
|
"classnames": "^2.2.5",
|
|
"object-assign": "^4.1.0"
|
|
},
|
|
"peerDependencies": {
|
|
"prop-types": "^15.0.0",
|
|
"react": "^0.14.0 || ^15.0.0 || ^16.0.1",
|
|
"react-dom": "^0.14.0 || ^15.0.0 || ^16.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"babel-cli": "~6.26.0",
|
|
"babel-core": "~6.26.3",
|
|
"babel-eslint": "~7.2.1",
|
|
"babel-jest": "~21.2.0",
|
|
"babel-loader": "~7.1.1",
|
|
"babel-minify-webpack-plugin": "~0.2.0",
|
|
"babel-preset-env": "~1.7.0",
|
|
"babel-preset-es2015": "~6.24.1",
|
|
"babel-preset-react": "~6.24.1",
|
|
"babel-preset-stage-2": "~6.24.1",
|
|
"babel-register": "~6.26.0",
|
|
"coveralls": "~3.0.3",
|
|
"cross-env": "~6.0.3",
|
|
"css-loader": "~0.28.7",
|
|
"enzyme": "~3.10.0",
|
|
"enzyme-adapter-react-16": "~1.15.1",
|
|
"enzyme-to-json": "~3.4.3",
|
|
"eslint": "~4.18.2",
|
|
"eslint-config-vkbansal": "~5.2.1",
|
|
"eslint-import-resolver-webpack": "~0.8.3",
|
|
"eslint-plugin-import": "~2.18.2",
|
|
"eslint-plugin-react": "~7.16.0",
|
|
"extract-text-webpack-plugin": "~3.0.2",
|
|
"history": "~4.10.1",
|
|
"html-webpack-plugin": "~2.30.1",
|
|
"http-server": "~0.11.1",
|
|
"jest": "~21.2.1",
|
|
"jsdom": "~11.3.0",
|
|
"prop-types": "~15.7.2",
|
|
"react": "~16.8.4",
|
|
"react-dom": "~16.8.4",
|
|
"react-router-dom": "~5.0.1",
|
|
"react-test-renderer": "~16.8.4",
|
|
"rimraf": "~3.0.0",
|
|
"style-loader": "~0.19.0",
|
|
"webpack": "~3.12.0"
|
|
},
|
|
"jest": {
|
|
"setupFiles": [
|
|
"<rootDir>/tests/.setup.js"
|
|
],
|
|
"snapshotSerializers": [
|
|
"enzyme-to-json/serializer"
|
|
],
|
|
"roots": [
|
|
"<rootDir>/tests"
|
|
],
|
|
"collectCoverageFrom": [
|
|
"**/src/**/*.js"
|
|
]
|
|
}
|
|
}
|