package.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. {
  2. "name": "leaflet",
  3. "version": "1.6.0",
  4. "homepage": "https://leafletjs.com/",
  5. "description": "JavaScript library for mobile-friendly interactive maps",
  6. "devDependencies": {
  7. "eslint": "^6.8.0",
  8. "eslint-config-mourner": "^2.0.1",
  9. "git-rev-sync": "^2.0.0",
  10. "happen": "~0.3.2",
  11. "karma": "^5.0.3",
  12. "karma-chrome-launcher": "^3.1.0",
  13. "karma-edge-launcher": "^0.4.2",
  14. "karma-expect": "^1.1.3",
  15. "karma-firefox-launcher": "^1.3.0",
  16. "karma-ie-launcher": "^1.0.0",
  17. "karma-mocha": "^2.0.1",
  18. "karma-phantomjs-launcher": "^1.0.4",
  19. "karma-rollup-preprocessor": "^6.1.2",
  20. "karma-safari-launcher": "~1.0.0",
  21. "karma-sinon": "^1.0.5",
  22. "leafdoc": "^1.4.1",
  23. "mocha": "^7.1.2",
  24. "phantomjs-prebuilt": "^2.1.16",
  25. "prosthetic-hand": "^1.3.1",
  26. "rollup": "^0.59.4",
  27. "rollup-plugin-git-version": "^0.3.1",
  28. "rollup-plugin-json": "^4.0.0",
  29. "sinon": "^7.5.0",
  30. "ssri": "^8.0.0",
  31. "uglify-js": "^3.9.2"
  32. },
  33. "main": "dist/leaflet-src.js",
  34. "style": "dist/leaflet.css",
  35. "files": [
  36. "dist",
  37. "src",
  38. "!dist/leaflet.zip"
  39. ],
  40. "scripts": {
  41. "docs": "node ./build/docs.js",
  42. "pretest": "npm run lint",
  43. "test": "npm run test-nolint",
  44. "test-nolint": "karma start ./spec/karma.conf.js",
  45. "build": "npm run rollup && npm run uglify",
  46. "release": "./build/publish.sh",
  47. "lint": "eslint src spec/suites docs/docs/js",
  48. "lintfix": "npm run lint -- --fix",
  49. "rollup": "rollup -c build/rollup-config.js",
  50. "watch": "rollup -w -c build/rollup-watch-config.js",
  51. "uglify": "uglifyjs dist/leaflet-src.js -c -m -o dist/leaflet.js --source-map filename=dist/leaflet.js.map --in-source-map dist/leaflet-src.js.map --source-map-url leaflet.js.map --comments",
  52. "integrity": "node ./build/integrity.js"
  53. },
  54. "eslintConfig": {
  55. "root": true,
  56. "globals": {
  57. "L": true
  58. },
  59. "env": {
  60. "commonjs": true,
  61. "amd": true,
  62. "node": false
  63. },
  64. "extends": "mourner",
  65. "parserOptions": {
  66. "ecmaVersion": 6,
  67. "sourceType": "module"
  68. },
  69. "rules": {
  70. "linebreak-style": [
  71. 0,
  72. "unix"
  73. ],
  74. "no-mixed-spaces-and-tabs": [
  75. 2,
  76. "smart-tabs"
  77. ],
  78. "indent": [
  79. 2,
  80. "tab",
  81. {
  82. "VariableDeclarator": 0,
  83. "flatTernaryExpressions": true
  84. }
  85. ],
  86. "curly": 2,
  87. "spaced-comment": 2,
  88. "strict": 0,
  89. "wrap-iife": 0,
  90. "key-spacing": 0,
  91. "consistent-return": 0,
  92. "no-unused-expressions": [
  93. "error",
  94. {
  95. "allowShortCircuit": true
  96. }
  97. ]
  98. }
  99. },
  100. "repository": {
  101. "type": "git",
  102. "url": "git://github.com/Leaflet/Leaflet.git"
  103. },
  104. "keywords": [
  105. "gis",
  106. "map"
  107. ],
  108. "license": "BSD-2-Clause"
  109. }