UNPKG

react-gh-like-diff

Version:
121 lines (120 loc) 3.14 kB
{ "name": "react-gh-like-diff", "version": "2.0.2", "description": "Generate Github like diff result in react.", "main": "dist/js/react-gh-like-diff.cjs.js", "module": "dist/js/react-gh-like-diff.esm.js", "jsnext:main": "dist/js/react-gh-like-diff.esm.js", "umd": "dist/js/react-gh-like-diff.umd.js", "scripts": { "test": "npm run lint && jest", "test:watch": "npm test -- --watch", "test:cov": "npm run lint && jest --coverage", "clean": "rimraf lib es dist", "build:dev": "npm run clean && cross-env NODE_ENV=development rollup -c", "build": "npm run clean && cross-env NODE_ENV=production rollup -c", "size": "bundlesize", "lint": "eslint src" }, "jest": { "setupFilesAfterEnv": [ "<rootDir>/src/__tests__/setup.js" ], "collectCoverage": true, "coverageDirectory": "./coverage/", "testMatch": [ "<rootDir>/src/__tests__/*.spec.js" ], "moduleNameMapper": { "^.+\\.(css)$": "<rootDir>/src/__tests__/stub.js" }, "verbose": true, "coverageReporters": [ "text", "lcov" ] }, "lint-staged": { "*.{js}": [ "npm run lint" ] }, "author": "Peng-Jie <bivinity.pengzjie@gmail.com>", "repository": { "type": "git", "url": "git+https://github.com/neighborhood999/react-gh-like-diff.git" }, "keywords": [ "compare", "comparison", "diff", "difference", "diff2html", "react", "recompose" ], "bugs": { "url": "https://github.com/neighborhood999/react-gh-like-diff/issues" }, "husky": { "hooks": { "pre-commit": "lint-staged", "pre-push": "npm run test", "pre-publish": "npm run build" } }, "dependencies": { "diff2html": "^3.1.6", "difflib": "^0.2.4", "prop-types": "^15.7.2", "recompose": "^0.30.0" }, "devDependencies": { "@babel/core": "7.9.6", "@babel/plugin-proposal-object-rest-spread": "7.9.6", "@babel/preset-env": "7.9.6", "@babel/preset-react": "7.9.4", "@rollup/plugin-buble": "0.21.3", "@rollup/plugin-commonjs": "11.1.0", "@rollup/plugin-node-resolve": "7.1.3", "@rollup/plugin-replace": "2.3.2", "@testing-library/jest-dom": "5.5.0", "@testing-library/react": "10.0.4", "babel-eslint": "10.1.0", "bundlesize": "0.18.0", "codecov": "3.6.5", "cross-env": "7.0.2", "eslint": "6.8.0", "eslint-config-prettier": "6.11.0", "eslint-plugin-jest": "23.8.2", "eslint-plugin-prettier": "3.1.3", "eslint-plugin-react": "7.19.0", "husky": "4.2.5", "jest": "25.5.4", "lint-staged": "10.2.2", "prettier": "2.0.5", "react": "16.13.1", "react-dom": "16.13.1", "rimraf": "3.0.2", "rollup": "2.7.6", "rollup-plugin-css-only": "2.0.0", "rollup-plugin-node-builtins": "2.1.2", "rollup-plugin-size-snapshot": "0.11.0", "rollup-plugin-terser": "5.3.0" }, "peerDependencies": { "react": "^16.0.0" }, "files": [ "lib", "es", "dist" ], "bundlesize": [ { "path": "./lib/react-gh-like-diff.cjs.js", "maxSize": "5.0 kB" } ], "license": "MIT" }