package.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {
  2. "name": "photoswipe",
  3. "version": "5.4.4",
  4. "main": "dist/photoswipe.esm.js",
  5. "style": "dist/photoswipe.css",
  6. "type": "module",
  7. "types": "./dist/types/photoswipe.d.ts",
  8. "exports": {
  9. ".": {
  10. "types": "./dist/types/photoswipe.d.ts",
  11. "default": "./dist/photoswipe.esm.js"
  12. },
  13. "./lightbox": {
  14. "types": "./dist/types/lightbox/lightbox.d.ts",
  15. "default": "./dist/photoswipe-lightbox.esm.js"
  16. },
  17. "./dist/photoswipe.css": "./dist/photoswipe.css",
  18. "./photoswipe.css": "./dist/photoswipe.css",
  19. "./style.css": "./dist/photoswipe.css"
  20. },
  21. "typesVersions": {
  22. "*": {
  23. "lightbox": [
  24. "dist/types/lightbox/lightbox.d.ts"
  25. ]
  26. }
  27. },
  28. "files": [
  29. "dist",
  30. "src",
  31. "README.md"
  32. ],
  33. "engines": {
  34. "node": ">= 0.12.0"
  35. },
  36. "scripts": {
  37. "build": "npm run build-and-minify-js && npm run build-css && npm run copy-to-dist",
  38. "watch": "concurrently \"npm:watch-js\" \"npm:watch-css\" \"npm:watch-docs\"",
  39. "watch-local": "concurrently \"npm:watch-js\" \"npm:watch-css\" \"npm:watch-docs-local\"",
  40. "build-and-minify-js": "rollup --config build/rollup.config.js && npm run tsc",
  41. "watch-js": "rollup --config build/rollup.config.watch.js --watch",
  42. "build-css": "copyfiles -f src/*.css dist/ && copyfiles -f src/*.css demo-docs-website/static/photoswipe/",
  43. "watch-css": "chokidar \"src/*.css\" --command \"npm run build-css\"",
  44. "watch-docs": "cd demo-docs-website/ && npm start",
  45. "watch-docs-local": "cd demo-docs-website/ && npm start -- --host 192.168.1.120",
  46. "copy-to-dist": "copyfiles -f demo-docs-website/static/photoswipe/* dist/ && copyfiles -f demo-docs-website/static/photoswipe/umd/* dist/umd/",
  47. "lint": "eslint src/js/**/*.js",
  48. "lint-auto-fix": "eslint src/js/**/*.js --fix",
  49. "test": "npm run lint",
  50. "tsc": "tsc"
  51. },
  52. "devDependencies": {
  53. "@babel/core": "^7.18.0",
  54. "@babel/eslint-parser": "^7.17.0",
  55. "@babel/plugin-syntax-class-properties": "^7.12.13",
  56. "@babel/plugin-transform-nullish-coalescing-operator": "^7.22.11",
  57. "@babel/plugin-transform-optional-chaining": "^7.22.10",
  58. "@rollup/plugin-babel": "^6.0.3",
  59. "chokidar-cli": "^3.0.0",
  60. "concurrently": "^6.0.2",
  61. "copyfiles": "^2.4.1",
  62. "eslint": "^8.16.0",
  63. "eslint-config-airbnb-base": "^15.0.0",
  64. "eslint-plugin-import": "^2.26.0",
  65. "rollup": "^2.46.0",
  66. "rollup-plugin-copy": "^3.4.0",
  67. "rollup-plugin-terser": "^7.0.2",
  68. "typescript": "^4.7.3"
  69. },
  70. "repository": {
  71. "type": "git",
  72. "url": "git://github.com/dimsemenov/Photoswipe.git"
  73. },
  74. "description": "JavaScript gallery",
  75. "bugs": {
  76. "url": "https://github.com/dimsemenov/Photoswipe/issues"
  77. },
  78. "homepage": "https://photoswipe.com",
  79. "keywords": [
  80. "gallery",
  81. "lightbox",
  82. "photo",
  83. "image",
  84. "touch",
  85. "swipe",
  86. "zoom"
  87. ],
  88. "author": "Dmytro Semenov (https://dimsemenov.com)",
  89. "license": "MIT"
  90. }