package.json 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. {
  2. "name": "jspdf",
  3. "version": "2.5.1",
  4. "homepage": "https://github.com/mrrio/jspdf",
  5. "description": "PDF Document creation from JavaScript",
  6. "main": "dist/jspdf.node.min.js",
  7. "module": "dist/jspdf.es.min.js",
  8. "browser": "dist/jspdf.es.min.js",
  9. "files": [
  10. "dist",
  11. "types/index.d.ts",
  12. "README.md",
  13. "LICENSE"
  14. ],
  15. "typings": "types/index.d.ts",
  16. "types": "types/index.d.ts",
  17. "keywords": [
  18. "pdf"
  19. ],
  20. "license": "MIT",
  21. "repository": {
  22. "type": "git",
  23. "url": "https://github.com/MrRio/jsPDF.git"
  24. },
  25. "dependencies": {
  26. "@babel/runtime": "^7.14.0",
  27. "atob": "^2.1.2",
  28. "btoa": "^1.2.1",
  29. "fflate": "^0.4.8"
  30. },
  31. "optionalDependencies": {
  32. "canvg": "^3.0.6",
  33. "core-js": "^3.6.0",
  34. "dompurify": "^2.2.0",
  35. "html2canvas": "^1.0.0-rc.5"
  36. },
  37. "devDependencies": {
  38. "@babel/core": "^7.10.4",
  39. "@babel/plugin-transform-runtime": "^7.14.5",
  40. "@babel/preset-env": "^7.10.4",
  41. "@rollup/plugin-babel": "^5.3.0",
  42. "@rollup/plugin-replace": "^2.3.3",
  43. "@rollup/plugin-typescript": "^8.0.0",
  44. "@types/jasmine": "^3.5.11",
  45. "@types/node": "^14.0.18",
  46. "@typescript-eslint/eslint-plugin": "^3.6.0",
  47. "@typescript-eslint/parser": "^3.6.0",
  48. "chalk": "^4.1.0",
  49. "codeclimate-test-reporter": "^0.5.1",
  50. "core-js": "^3.6.0",
  51. "diff": "^4.0.2",
  52. "docdash": "^1.2.0",
  53. "eslint": "^7.4.0",
  54. "eslint-plugin-jasmine": "^4.1.1",
  55. "folder-delete": "^1.0.4",
  56. "inquirer": "^6.5.2",
  57. "jasmine": "3.5.0",
  58. "jasmine-core": "3.5.0",
  59. "jasmine-expect": "4.0.3",
  60. "js-yaml": "3.13.1",
  61. "jsdoc": "^3.6.3",
  62. "karma": "5.1.0",
  63. "karma-babel-preprocessor": "8.0.1",
  64. "karma-chrome-launcher": "3.1.0",
  65. "karma-coverage": "2.0.2",
  66. "karma-firefox-launcher": "1.3.0",
  67. "karma-ie-launcher": "1.0.0",
  68. "karma-jasmine": "3.3.1",
  69. "karma-jasmine-matchers": "4.0.2",
  70. "karma-mocha-reporter": "2.2.5",
  71. "karma-rollup-preprocessor": "^7.0.7",
  72. "karma-sauce-launcher": "4.1.5",
  73. "karma-typescript": "^5.0.3",
  74. "karma-verbose-reporter": "0.0.6",
  75. "local-web-server": "^4.2.1",
  76. "log-utils": "^1.0.0",
  77. "markdown": "0.5.0",
  78. "preprocess": "^3.2.0",
  79. "prettier": "^1.19.1",
  80. "regenerator-runtime": "^0.13.5",
  81. "requirejs": "^2.3.6",
  82. "rollup": "^2.18.2",
  83. "rollup-plugin-commonjs": "^10.1.0",
  84. "rollup-plugin-license": "^2.1.0",
  85. "rollup-plugin-node-resolve": "5.2.0",
  86. "rollup-plugin-preprocess": "0.0.4",
  87. "rollup-plugin-terser": "^6.1.0",
  88. "typescript": "^3.9.6",
  89. "yarpm": "^0.2.1"
  90. },
  91. "scripts": {
  92. "start": "ws",
  93. "build": "rollup --config rollup.config.js",
  94. "version": "yarpm run build && yarpm run generate-docs && git add -A dist docs",
  95. "pretest": "yarpm run build",
  96. "test": "yarpm run test-node && yarpm run test-saucelabs",
  97. "test-saucelabs": "karma start test/saucelabs/karma.conf.js --single-run --verbose && for a in coverage/*; do codeclimate-test-reporter < \\\"$a/lcov.info\\\"; break; done",
  98. "test-local": "yarpm run test-unit && yarpm run test-node && yarpm run test-amd && yarpm run test-esm && yarpm run test-globals && yarpm run test-typescript && yarpm run test-webworker",
  99. "test-unit": "karma start test/unit/karma.conf.js --single-run",
  100. "test-amd": "karma start test/deployment/amd/karma.conf.js --single-run",
  101. "test-esm": "karma start test/deployment/esm/karma.conf.js --single-run",
  102. "test-globals": "karma start test/deployment/globals/karma.conf.js --single-run",
  103. "test-typescript": "karma start test/deployment/typescript/karma.conf.js --single-run",
  104. "test-webworker": "karma start test/deployment/webworker/karma.conf.js --single-run",
  105. "test-node": "jasmine --config=test/deployment/node/jasmine.json",
  106. "test-training": "node test/utils/reference-server.js",
  107. "test-typings": "tsc -p types/tsconfig.json && tsc -p types/tsconfig-node.json",
  108. "prettier": "prettier --write \"*.{js,ts,md,css,json}\" \"{spec,examples,src,types}/**/*.{js,ts,md,css,json}\"",
  109. "lint": "prettier --check \"*.{js,ts,md,css,json}\" \"{spec,examples,src,types}/**/*.{js,ts,md,css,json}\"",
  110. "pregenerate-docs": "node deletedocs.js",
  111. "generate-docs": "jsdoc -c jsdoc.json --readme README.md"
  112. },
  113. "browserslist": [
  114. "last 2 versions",
  115. "IE 11"
  116. ]
  117. }