Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

140 строки
4.2 KiB

  1. {
  2. "name": "vue-easy-lightbox",
  3. "version": "1.19.0",
  4. "description": "A Vue.js 3.0 image lightbox component with Zoom / Drag / Rotate / Switch",
  5. "keywords": [
  6. "vue",
  7. "vue3",
  8. "component",
  9. "image"
  10. ],
  11. "private": false,
  12. "author": "Zichao Xiong <onycat@live.cn>",
  13. "license": "MIT",
  14. "main": "dist/vue-easy-lightbox.common.min.js",
  15. "module": "dist/vue-easy-lightbox.esm.min.js",
  16. "types": "types/index.d.ts",
  17. "exports": {
  18. ".": {
  19. "types": "./types/index.d.ts",
  20. "import": "./dist/vue-easy-lightbox.esm.min.js",
  21. "require": "./dist/vue-easy-lightbox.common.min.js",
  22. "browser": "./dist/vue-easy-lightbox.umd.min.js"
  23. },
  24. "./external-css": {
  25. "types": "./types/index.d.ts",
  26. "import": "./dist/external-css/vue-easy-lightbox.esm.min.js",
  27. "require": "./dist/external-css/vue-easy-lightbox.common.min.js",
  28. "browser": "./dist/external-css/vue-easy-lightbox.umd.min.js"
  29. },
  30. "./external-css/vue-easy-lightbox.css": "./dist/external-css/vue-easy-lightbox.css",
  31. "./package.json": "./package.json",
  32. "./dist/*": "./dist/*"
  33. },
  34. "type": "module",
  35. "browser": {
  36. "./sfc": "src/vue-easy-lightbox.vue"
  37. },
  38. "scripts": {
  39. "dev:docs": "cd docs && pnpm dev",
  40. "dev": "vite --host",
  41. "dev:bd-watch": "rollup -w -c build-scripts/rollup.watch.config.js",
  42. "clean": "rimraf ./dist && rimraf ./types",
  43. "build": "pnpm run clean && pnpm run build:bundle && pnpm run build:type",
  44. "build:bundle": "rollup -c build-scripts/rollup.config.js",
  45. "build:type": "tsc --emitDeclarationOnly --project ./tsconfig.build.json",
  46. "build:docs": "cd docs && pnpm build",
  47. "deploy:docs": "bash bin/deploy-docs.sh",
  48. "lint": "eslint --fix --ext .ts,.vue,.js,.tsx ./src",
  49. "prepare": "husky install",
  50. "pre-commit": "lint-staged",
  51. "commit": "cz",
  52. "test": "vitest"
  53. },
  54. "repository": {
  55. "type": "git",
  56. "url": "git+https://github.com/XiongAmao/vue-easy-lightbox.git"
  57. },
  58. "bugs": {
  59. "url": "https://github.com/XiongAmao/vue-easy-lightbox/issues"
  60. },
  61. "homepage": "https://xiongamao.github.io/vue-easy-lightbox",
  62. "peerDependencies": {
  63. "vue": "^3.0.0"
  64. },
  65. "devDependencies": {
  66. "@babel/core": "^7.20.12",
  67. "@babel/eslint-parser": "^7.19.1",
  68. "@babel/plugin-transform-runtime": "^7.19.6",
  69. "@babel/preset-env": "^7.20.2",
  70. "@babel/preset-typescript": "^7.18.6",
  71. "@babel/runtime": "^7.20.13",
  72. "@babel/runtime-corejs3": "^7.20.13",
  73. "@commitlint/cli": "^17.4.2",
  74. "@commitlint/config-conventional": "^17.4.2",
  75. "@rollup/plugin-babel": "^5.3.1",
  76. "@rollup/plugin-node-resolve": "^13.3.0",
  77. "@rollup/plugin-replace": "^4.0.0",
  78. "@rollup/plugin-terser": "^0.4.0",
  79. "@types/babel__core": "^7.20.0",
  80. "@types/node": "^18.11.18",
  81. "@typescript-eslint/eslint-plugin": "^6.21.0",
  82. "@typescript-eslint/parser": "^6.21.0",
  83. "@vitejs/plugin-vue": "^3.2.0",
  84. "@vitejs/plugin-vue-jsx": "^2.1.1",
  85. "@vue/babel-plugin-jsx": "^1.1.1",
  86. "@vue/babel-preset-app": "^5.0.8",
  87. "@vue/compiler-sfc": "^3.2.47",
  88. "@vue/eslint-config-typescript": "^11.0.2",
  89. "@vue/test-utils": "2.0.0-rc.18",
  90. "autoprefixer": "^10.4.13",
  91. "case": "^1.6.3",
  92. "commitizen": "^4.3.0",
  93. "core-js": "^3.27.2",
  94. "cz-git": "^1.4.1",
  95. "eslint": "^8.33.0",
  96. "eslint-plugin-import": "^2.27.5",
  97. "eslint-plugin-n": "^15.6.1",
  98. "eslint-plugin-node": "^11.1.0",
  99. "eslint-plugin-promise": "^6.1.1",
  100. "eslint-plugin-vue": "^9.9.0",
  101. "fs-extra": "^10.1.0",
  102. "happy-dom": "^6.0.4",
  103. "husky": "^8.0.3",
  104. "lint-staged": "^13.1.0",
  105. "lodash": "^4.17.21",
  106. "postcss": "^8.4.21",
  107. "postcss-import": "^14.1.0",
  108. "prettier": "^2.8.3",
  109. "rimraf": "^3.0.2",
  110. "rollup": "^2.79.1",
  111. "rollup-plugin-postcss": "^4.0.2",
  112. "sass": "^1.58.0",
  113. "typescript": "^5.3.3",
  114. "vite": "^3.2.5",
  115. "vitest": "^0.19.1",
  116. "vue": "^3.2.47"
  117. },
  118. "engines": {
  119. "node": ">=14.18.3"
  120. },
  121. "lint-staged": {
  122. "src/**/*.{vue,js,ts,tsx}": [
  123. "eslint --fix",
  124. "prettier --write"
  125. ]
  126. },
  127. "files": [
  128. "dist",
  129. "src",
  130. "types",
  131. "README-CN.md"
  132. ],
  133. "packageManager": "pnpm@7.4.0",
  134. "config": {
  135. "commitizen": {
  136. "path": "node_modules/cz-git"
  137. }
  138. }
  139. }