package.json 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. {
  2. "name": "@splidejs/splide",
  3. "version": "4.1.3",
  4. "description": "Splide is a lightweight, flexible and accessible slider/carousel. No dependencies, no Lighthouse errors.",
  5. "author": "Naotoshi Fujita",
  6. "license": "MIT",
  7. "main": "dist/js/splide.cjs.js",
  8. "module": "dist/js/splide.esm.js",
  9. "types": "dist/types/index.d.ts",
  10. "svelte": "dist/js/splide.esm.js",
  11. "jsdelivr": "dist/js/splide.min.js",
  12. "keywords": [
  13. "splide",
  14. "slider",
  15. "carousel",
  16. "slideshow",
  17. "gallery",
  18. "lightweight",
  19. "touch",
  20. "responsive",
  21. "typescript"
  22. ],
  23. "homepage": "https://splidejs.com/",
  24. "repository": {
  25. "type": "git",
  26. "url": "git+https://github.com/Splidejs/splide.git"
  27. },
  28. "bugs": {
  29. "url": "https://github.com/Splidejs/splide/issues"
  30. },
  31. "devDependencies": {
  32. "@babel/core": "^7.18.13",
  33. "@babel/preset-env": "^7.18.10",
  34. "@rollup/plugin-babel": "^5.3.1",
  35. "@rollup/plugin-node-resolve": "^13.3.0",
  36. "@types/jest": "^29.0.0",
  37. "@types/node": "^18.7.14",
  38. "@typescript-eslint/eslint-plugin": "^5.36.1",
  39. "@typescript-eslint/parser": "^5.36.1",
  40. "autoprefixer": "^10.4.8",
  41. "babel-jest": "^29.0.1",
  42. "babel-loader": "^8.2.5",
  43. "chokidar": "^3.5.3",
  44. "cssnano": "^5.1.13",
  45. "esbuild": "^0.15.6",
  46. "eslint": "^8.23.0",
  47. "jest": "^29.0.1",
  48. "jest-environment-jsdom": "^29.0.1",
  49. "postcss": "^8.4.16",
  50. "rollup": "^2.79.0",
  51. "rollup-plugin-dts": "^4.2.2",
  52. "rollup-plugin-esbuild": "^4.10.1",
  53. "sass": "^1.54.8",
  54. "stylelint": "^14.11.0",
  55. "stylelint-config-sass-guidelines": "^9.0.1",
  56. "stylelint-order": "^5.0.0",
  57. "stylelint-scss": "^4.3.0",
  58. "ts-jest": "next",
  59. "tslib": "^2.4.0",
  60. "typescript": "^4.8.2",
  61. "uglify-js": "^3.17.0"
  62. },
  63. "scripts": {
  64. "develop": "node scripts/develop.js",
  65. "build:js": "node scripts/build-script.js",
  66. "build:module": "node scripts/build-module.js",
  67. "build:types": "node scripts/build-types.js",
  68. "build:css": "node scripts/build-css.js",
  69. "build:all": "npm run build:js && npm run build:module && npm run build:css && npm run build:types && node scripts/build-utils.js",
  70. "check:types": "tsc --noEmit",
  71. "jest": "jest --clearCache && jest",
  72. "eslint": "eslint src",
  73. "stylelint": "npx stylelint --fix ./src/css/**/*.scss",
  74. "beforecommit": "npm run eslint && npm run stylelint && npm run jest && npm run build:all"
  75. },
  76. "browserslist": [
  77. "> 5%",
  78. "ie 10"
  79. ],
  80. "files": [
  81. "dist",
  82. "src/css/",
  83. "src/js/components",
  84. "src/js/constants",
  85. "src/js/constructors",
  86. "src/js/core",
  87. "src/js/renderer",
  88. "src/js/transitions",
  89. "src/js/types",
  90. "src/js/utils"
  91. ],
  92. "exports": {
  93. ".": {
  94. "require": "./dist/js/splide.cjs.js",
  95. "import": "./dist/js/splide.esm.js",
  96. "default": "./dist/js/splide.esm.js"
  97. },
  98. "./src/js/utils": {
  99. "require": "./dist/js/utils/splide-utils.cjs.js",
  100. "import": "./dist/js/utils/splide-utils.esm.js",
  101. "default": "./dist/js/utils/splide-utils.esm.js",
  102. "types": "./src/js/utils/index.ts"
  103. },
  104. "./css": "./dist/css/splide.min.css",
  105. "./css/core": "./dist/css/splide-core.min.css",
  106. "./css/*": "./dist/css/themes/splide-*.min.css",
  107. "./dist/": "./dist/",
  108. "./src/css/template/": "./src/css/template/",
  109. "./package.json": "./package.json"
  110. }
  111. }