{ "name": "diff2html", "version": "3.0.0-beta.1", "homepage": "https://diff2html.xyz", "description": "Fast Diff to colorized HTML", "keywords": [ "git", "diff", "pretty", "side", "line", "side-by-side", "line-by-line", "character", "highlight", "pretty", "color", "html", "diff2html", "difftohtml", "colorized" ], "author": { "name": "Rodrigo Fernandes", "email": "rtfrodrigo@gmail.com" }, "repository": { "type": "git", "url": "git://github.com/rtfpessoa/diff2html.git" }, "bugs": { "url": "https://www.github.com/rtfpessoa/diff2html/issues" }, "engines": { "node": ">=12" }, "scripts": { "eslint": "eslint --ignore-path .gitignore \"**/*.{js,jsx,ts,tsx,json}\"", "lint:check": "yarn run eslint", "lint:fix": "yarn run eslint --fix", "prettier": "prettier --ignore-path .gitignore '**/*.+(js|jsx|ts|tsx|json|css|html|md|mdx)'", "format:check": "yarn run prettier --check", "format:fix": "yarn run prettier --write", "build": "yarn run build:css && yarn run build:templates && yarn run build:es5 && yarn run build:esm && yarn run build:bundles && yarn run build:website", "build:es5": "rm -rf lib; tsc -p tsconfig.json --outDir lib", "build:esm": "rm -rf lib-esm; tsc -p tsconfig.json -m es6 --outDir lib-esm", "build:bundles": "rm -rf ./bundles/js; webpack --mode production --config webpack.bundles.ts", "build:css": "rm -rf ./bundles/css; postcss --config ./postcss.config.js --no-map -o ./bundles/css/diff2html.min.css ./src/ui/css/diff2html.css", "build:templates": "ts-node ./scripts/hulk.ts --wrapper ts --variable 'defaultTemplates' ./src/templates/*.mustache > ./src/diff2html-templates.ts", "build:website": "rm -rf docs; webpack --mode production --config webpack.website.ts", "gen": "yarn run gen:toc", "gen:toc-base": "markdown-toc --maxdepth 3 --bullets='-' -i", "gen:toc": "yarn run gen:toc-base README.md", "test": "is-ci 'test:coverage' 'test:watch'", "test:coverage": "jest --coverage", "test:watch": "jest --watch", "test:debug": "node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand --watch", "coverage:open": "yarn run test:coverage && open ./coverage/index.html", "coverage:push": "curl -Ls https://coverage.codacy.com/get.sh | bash", "validate": "yarn run build:templates && yarn run format:check && yarn run lint:check && yarn run build && yarn run test:coverage", "fix": "yarn run format:fix && yarn run lint:fix", "start": "yarn run start:website", "start:website": "webpack-dev-server --mode development --config webpack.website.ts", "preversion": "yarn run validate", "version": "git add -A package.json", "prepare": "husky install" }, "main": "./lib/diff2html.js", "module": "./lib-esm/diff2html.js", "types": "./lib/diff2html.d.ts", "lint-staged": { "**/*.+(js|jsx|ts|tsx|json)": [ "prettier --write", "eslint --fix" ], "**/*.+(css|html|md|mdx)": [ "prettier --write" ], "README.md": [ "yarn run gen:toc-base" ] }, "dependencies": { "diff": "5.0.0", "hogan.js": "3.0.2" }, "optionalDependencies": { "highlight.js": "11.2.0" }, "devDependencies": { "@types/copy-webpack-plugin": "8.0.1", "@types/diff": "5.0.1", "@types/hogan.js": "3.0.1", "@types/jest": "27.0.2", "@types/mini-css-extract-plugin": "^2.3.0", "@types/mkdirp": "1.0.2", "@types/node": "16.11.0", "@types/nopt": "3.0.29", "@typescript-eslint/eslint-plugin": "5.0.0", "@typescript-eslint/parser": "5.0.0", "autoprefixer": "10.3.7", "bulma": "^0.9.2", "clipboard": "2.0.8", "copy-webpack-plugin": "9.0.1", "css-loader": "6.4.0", "cssnano": "5.0.8", "eslint": "8.0.1", "eslint-config-prettier": "8.3.0", "eslint-plugin-import": "2.25.2", "eslint-plugin-jest": "25.2.1", "eslint-plugin-json": "3.1.0", "eslint-plugin-node": "11.1.0", "eslint-plugin-optimize-regex": "1.2.1", "eslint-plugin-promise": "5.1.0", "eslint-plugin-sonarjs": "0.10.0", "file-loader": "6.2.0", "handlebars": "4.7.7", "handlebars-loader": "1.7.1", "html-webpack-plugin": "5.4.0", "husky": "^7.0.2", "image-webpack-loader": "8.0.1", "is-ci-cli": "2.2.0", "jest": "27.2.5", "lint-staged": "11.2.3", "markdown-toc": "^1.2.0", "mini-css-extract-plugin": "2.4.2", "mkdirp": "1.0.4", "nopt": "5.0.0", "postcss": "8.3.9", "postcss-cli": "9.0.1", "postcss-import": "14.0.2", "postcss-loader": "6.2.0", "postcss-preset-env": "6.7.0", "prettier": "2.4.1", "ts-jest": "27.0.6", "ts-loader": "9.2.6", "ts-node": "10.3.0", "typescript": "4.4.4", "url-loader": "4.1.1", "webpack": "5.58.2", "webpack-cli": "4.9.0", "whatwg-fetch": "3.6.2" }, "resolutions": { "lodash": ">=4.17.20", "minimist": ">=1.2.5", "acorn": ">=7.4.0", "autolinker": ">=3.14.1", "bl": ">=2.2.1", "decompress": ">=4.2.1", "node-forge": ">=0.10.0" }, "license": "MIT", "files": [ "bundles", "lib", "lib-esm" ] }