UNPKG

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