package.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. {
  2. "name": "leaflet",
  3. "version": "1.9.4",
  4. "homepage": "https://leafletjs.com/",
  5. "description": "JavaScript library for mobile-friendly interactive maps",
  6. "devDependencies": {
  7. "@mapbox/eslint-plugin-script-tags": "^1.0.0",
  8. "@rollup/plugin-json": "^4.1.0",
  9. "bundlemon": "^1.4.0",
  10. "eslint": "^8.23.0",
  11. "eslint-config-mourner": "^2.0.3",
  12. "git-rev-sync": "^3.0.2",
  13. "happen": "~0.3.2",
  14. "husky": "^8.0.1",
  15. "karma": "^6.4.0",
  16. "karma-chrome-launcher": "^3.1.1",
  17. "karma-edge-launcher": "^0.4.2",
  18. "karma-expect": "^1.1.3",
  19. "karma-firefox-launcher": "^2.1.2",
  20. "karma-ie-launcher": "^1.0.0",
  21. "karma-mocha": "^2.0.1",
  22. "karma-rollup-preprocessor": "^7.0.8",
  23. "karma-safari-launcher": "~1.0.0",
  24. "karma-sinon": "^1.0.5",
  25. "leafdoc": "^2.3.0",
  26. "lint-staged": "^13.0.3",
  27. "mocha": "^9.2.2",
  28. "prosthetic-hand": "^1.4.0",
  29. "rollup": "^2.78.1",
  30. "rollup-plugin-git-version": "^0.3.1",
  31. "sinon": "^7.5.0",
  32. "ssri": "^9.0.1",
  33. "uglify-js": "^3.17.0"
  34. },
  35. "main": "dist/leaflet-src.js",
  36. "style": "dist/leaflet.css",
  37. "files": [
  38. "dist",
  39. "src",
  40. "!dist/leaflet.zip",
  41. "!*.leafdoc",
  42. "CHANGELOG.md"
  43. ],
  44. "scripts": {
  45. "docs": "node ./build/docs.js && node ./build/integrity.js",
  46. "test": "karma start ./spec/karma.conf.js",
  47. "build": "npm run rollup && npm run uglify",
  48. "lint": "eslint .",
  49. "lintfix": "npm run lint -- --fix",
  50. "rollup": "rollup -c build/rollup-config.js",
  51. "watch": "rollup -w -c build/rollup-config.js",
  52. "uglify": "uglifyjs dist/leaflet-src.js -c -m -o dist/leaflet.js --source-map filename=dist/leaflet.js.map --source-map content=dist/leaflet-src.js.map --source-map url=leaflet.js.map --comments",
  53. "bundlemon": "bundlemon --subProject js --defaultCompression none && bundlemon --subProject js-gzip --defaultCompression gzip",
  54. "serve": "cd docs && bundle exec jekyll serve",
  55. "prepare": "husky install"
  56. },
  57. "eslintConfig": {
  58. "ignorePatterns": [
  59. "dist",
  60. "debug",
  61. "docs/docs/highlight",
  62. "docs/examples/choropleth/us-states.js",
  63. "docs/examples/geojson/sample-geojson.js",
  64. "docs/examples/map-panes/eu-countries.js",
  65. "docs/examples/extending/extending-2-layers.md",
  66. "docs/_posts/2012*",
  67. "docs/_site",
  68. "build/integrity.js"
  69. ],
  70. "root": true,
  71. "env": {
  72. "commonjs": true,
  73. "amd": true,
  74. "node": false
  75. },
  76. "extends": "mourner",
  77. "plugins": [
  78. "@mapbox/eslint-plugin-script-tags"
  79. ],
  80. "parserOptions": {
  81. "ecmaVersion": 6,
  82. "sourceType": "module"
  83. },
  84. "rules": {
  85. "linebreak-style": [
  86. 0,
  87. "unix"
  88. ],
  89. "no-mixed-spaces-and-tabs": [
  90. 2,
  91. "smart-tabs"
  92. ],
  93. "indent": [
  94. 2,
  95. "tab",
  96. {
  97. "VariableDeclarator": 0,
  98. "flatTernaryExpressions": true
  99. }
  100. ],
  101. "curly": 2,
  102. "spaced-comment": 2,
  103. "strict": 0,
  104. "wrap-iife": 0,
  105. "key-spacing": 0,
  106. "consistent-return": 0,
  107. "no-unused-expressions": [
  108. "error",
  109. {
  110. "allowShortCircuit": true
  111. }
  112. ]
  113. },
  114. "overrides": [
  115. {
  116. "files": [
  117. "build/**/*"
  118. ],
  119. "env": {
  120. "node": true
  121. },
  122. "rules": {
  123. "global-require": 0
  124. }
  125. },
  126. {
  127. "files": [
  128. "*.md"
  129. ],
  130. "rules": {
  131. "eol-last": 0,
  132. "no-unused-vars": 0
  133. }
  134. }
  135. ]
  136. },
  137. "repository": {
  138. "type": "git",
  139. "url": "git://github.com/Leaflet/Leaflet.git"
  140. },
  141. "keywords": [
  142. "gis",
  143. "map"
  144. ],
  145. "license": "BSD-2-Clause",
  146. "lint-staged": {
  147. "*.(js|md)": "eslint --cache --fix"
  148. }
  149. }