package.json 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. {
  2. "title": "html2canvas",
  3. "name": "html2canvas",
  4. "description": "Screenshots with JavaScript",
  5. "main": "dist/html2canvas.js",
  6. "module": "dist/html2canvas.esm.js",
  7. "typings": "dist/types/index.d.ts",
  8. "browser": "dist/html2canvas.js",
  9. "version": "1.4.1",
  10. "author": {
  11. "name": "Niklas von Hertzen",
  12. "email": "niklasvh@gmail.com",
  13. "url": "https://hertzen.com"
  14. },
  15. "engines": {
  16. "node": ">=8.0.0"
  17. },
  18. "repository": {
  19. "type": "git",
  20. "url": "git@github.com:niklasvh/html2canvas.git"
  21. },
  22. "bugs": {
  23. "url": "https://github.com/niklasvh/html2canvas/issues"
  24. },
  25. "devDependencies": {
  26. "@babel/cli": "^7.4.3",
  27. "@babel/core": "^7.4.3",
  28. "@babel/preset-env": "^7.4.3",
  29. "@babel/preset-flow": "^7.0.0",
  30. "@rollup/plugin-commonjs": "^19.0.0",
  31. "@rollup/plugin-json": "^4.1.0",
  32. "@rollup/plugin-node-resolve": "^13.0.0",
  33. "@rollup/plugin-typescript": "^8.2.1",
  34. "@types/chai": "^4.1.7",
  35. "@types/express": "^4.17.13",
  36. "@types/glob": "^7.1.1",
  37. "@types/jest": "^26.0.24",
  38. "@types/jest-image-snapshot": "^4.3.1",
  39. "@types/karma": "^6.3.0",
  40. "@types/mocha": "^8.2.3",
  41. "@types/node": "^16.3.1",
  42. "@types/platform": "^1.3.4",
  43. "@types/promise-polyfill": "^6.0.3",
  44. "@typescript-eslint/eslint-plugin": "^4.28.2",
  45. "@typescript-eslint/parser": "^4.28.2",
  46. "appium-ios-simulator": "^3.10.0",
  47. "babel-eslint": "^10.0.1",
  48. "babel-loader": "^8.0.5",
  49. "babel-plugin-add-module-exports": "^1.0.2",
  50. "babel-plugin-dev-expression": "^0.2.1",
  51. "base64-arraybuffer": "1.0.1",
  52. "body-parser": "^1.19.0",
  53. "chai": "4.1.1",
  54. "chromeless": "^1.5.2",
  55. "cors": "^2.8.5",
  56. "es6-promise": "^4.2.8",
  57. "eslint": "^7.30.0",
  58. "eslint-config-prettier": "^8.3.0",
  59. "eslint-plugin-prettier": "3.4.0",
  60. "express": "^4.17.1",
  61. "filenamify-url": "1.0.0",
  62. "glob": "7.1.3",
  63. "html2canvas-proxy": "1.0.1",
  64. "jest": "^27.0.6",
  65. "jest-image-snapshot": "^4.5.1",
  66. "jquery": "^3.5.1",
  67. "js-polyfills": "^0.1.42",
  68. "karma": "^6.3.2",
  69. "karma-chrome-launcher": "^3.1.0",
  70. "karma-edge-launcher": "^0.4.2",
  71. "karma-firefox-launcher": "^2.1.0",
  72. "karma-ie-launcher": "^1.0.0",
  73. "karma-junit-reporter": "^2.0.1",
  74. "karma-mocha": "^2.0.1",
  75. "karma-safarinative-launcher": "^1.1.0",
  76. "karma-sauce-launcher": "^2.0.2",
  77. "mocha": "^9.0.2",
  78. "node-simctl": "^5.3.0",
  79. "platform": "^1.3.6",
  80. "prettier": "^2.3.2",
  81. "replace-in-file": "^3.0.0",
  82. "rimraf": "^3.0.2",
  83. "rollup": "^2.53.1",
  84. "rollup-plugin-sourcemaps": "^0.6.3",
  85. "serve-index": "^1.9.1",
  86. "slash": "1.0.0",
  87. "standard-version": "^8.0.2",
  88. "ts-jest": "^27.0.3",
  89. "ts-loader": "^8.3.0",
  90. "ts-node": "^10.1.0",
  91. "tslib": "^2.3.0",
  92. "typescript": "^4.3.5",
  93. "uglify-js": "^3.13.10",
  94. "uglifyjs-webpack-plugin": "^2.2.0",
  95. "webpack": "^4.46.0",
  96. "webpack-cli": "^3.3.12",
  97. "yargs": "^17.0.1"
  98. },
  99. "scripts": {
  100. "prebuild": "rimraf dist/ && rimraf build/ && mkdirp dist && mkdirp build",
  101. "build": "tsc --module commonjs && rollup -c rollup.config.ts && npm run build:create-reftest-list && npm run build:testrunner && npm run build:minify",
  102. "build:testrunner": "rollup -c tests/rollup.config.ts",
  103. "build:minify": "uglifyjs --compress --comments /^!/ -o dist/html2canvas.min.js --mangle -- dist/html2canvas.js",
  104. "build:reftest-result-list": "ts-node scripts/create-reftest-result-list.ts",
  105. "build:create-reftest-list": "ts-node scripts/create-reftest-list.ts tests/reftests/ignore.txt build/reftests.ts",
  106. "build:reftest-preview": "webpack --config www/webpack.config.js",
  107. "release": "standard-version",
  108. "format": "prettier --write \"{src,www/src,tests,scripts}/**/*.ts\"",
  109. "lint": "eslint src/**/*.ts --max-warnings 0",
  110. "test": "npm run lint && npm run unittest && npm run karma",
  111. "unittest": "jest",
  112. "reftests-diff": "mkdirp tmp/snapshots && jest --roots=tests --testMatch=**/reftest-diff.ts",
  113. "karma": "ts-node tests/karma",
  114. "watch": "rollup -c rollup.config.ts -w",
  115. "watch:unittest": "mocha --require ts-node/register --watch-extensions ts -w src/**/__tests__/*.ts",
  116. "start": "ts-node tests/server --port=8080 --cors=8081"
  117. },
  118. "homepage": "https://html2canvas.hertzen.com",
  119. "license": "MIT",
  120. "dependencies": {
  121. "css-line-break": "^2.1.0",
  122. "text-segmentation": "^1.0.3"
  123. }
  124. }