forked from Wildhoney/Leaflet.FreeDraw
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
158 lines (158 loc) · 3.97 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
{
"name": "leaflet-freedraw",
"version": "2.12.0",
"description": "Zoopla inspired freehand polygon creation using Leaflet.js.",
"source": "src/FreeDraw.js",
"main": "dist/leaflet-freedraw.cjs.js",
"module": "dist/leaflet-freedraw.esm.js",
"browser": "dist/leaflet-freedraw.web.js",
"unpkg": "dist/leaflet-freedraw.iife.js",
"files": [
"dist"
],
"scripts": {
"build": "rollup -c",
"example": "webpack --config webpack.example.js && npm run css",
"watch": "npm run css && webpack --watch --config webpack.example.js",
"start": "npm i && npm run example && node --experimental-modules example/server/default.mjs",
"css": "cp node_modules/leaflet/dist/leaflet.css ./example/css",
"test": "npm run lint && npm run spec",
"spec": "ava && npm run example && mocha tests/functional/FreeDraw.test.js --compilers js:@babel/register",
"lint": "xo src/*.js src/**/*.js",
"cleanup": "rimraf node_modules"
},
"repository": {
"type": "git",
"url": "https://github.com/Wildhoney/Leaflet.FreeDraw.git"
},
"keywords": [
"leaflet",
"freedraw",
"polygon",
"drawing",
"freehand",
"zoopla",
"geospatial",
"search",
"area"
],
"author": "Adam Timberlake <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/Wildhoney/Leaflet.FreeDraw/issues"
},
"homepage": "https://github.com/Wildhoney/Leaflet.FreeDraw",
"dependencies": {
"clipper-lib": "~6.2.1",
"regenerator-runtime": "^0.13.2",
"turf-intersect": "~3.0.12",
"turf-polygon": "~1.0.3",
"@turf/points-within-polygon": "5.1.5",
"@turf/helpers": "6.1.4"
},
"peerDependencies": {
"leaflet": "^1.2.0",
"ramda": "^0.22.1"
},
"devDependencies": {
"@babel/core": "^7.3.4",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/polyfill": "^7.2.5",
"@babel/preset-env": "^7.3.4",
"@babel/preset-react": "^7.0.0",
"@babel/register": "~7.4.0",
"angular": "~1.6.10",
"ava": "^1.3.1",
"babel-eslint": "^10.0.1",
"babel-loader": "~8.0.5",
"chai": "^3.5.0",
"compression": "~1.7.2",
"concavehull": "^0.1.6",
"core-js": "~3.0.0",
"d3-selection": "~1.2.0",
"d3-shape": "^1.0.4",
"es6-set": "^0.1.4",
"es6-symbol": "^3.1.0",
"es6-weak-map": "^2.0.1",
"express": "~4.16.3",
"jsdom": "^9.8.3",
"leaflet": "~1.3.1",
"mocha": "~3.5.3",
"nightmare": "~3.0.1",
"ramda": "^0.22.1",
"rimraf": "~2.6.2",
"rollup": "^1.11.3",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-commonjs": "^9.3.4",
"rollup-plugin-node-resolve": "^4.2.4",
"rollup-plugin-terser": "^4.0.4",
"sinon": "^1.17.6",
"webpack": "~4.29.6",
"webpack-cli": "~3.3.0",
"xo": "^0.17.1"
},
"ava": {
"files": [
"tests/*.test.js",
"tests/**/*.test.js",
"!tests/functional/*.test.js"
],
"babel": {
"testOptions": {
"presets": [
"@babel/preset-env"
]
}
},
"require": [
"@babel/register",
"@babel/polyfill",
"./tests/helpers/BrowserEnv.js"
]
},
"xo": {
"space": 4,
"esnext": true,
"globals": [
"window",
"document",
"self"
],
"rules": {
"padded-blocks": "off",
"max-lines": [
2,
500
],
"object-curly-spacing": [
2,
"always"
],
"new-cap": "off",
"array-bracket-spacing": "off",
"max-nested-callbacks": [
1,
5
],
"no-unused-vars": [
1,
{
"varsIgnorePattern": "element"
}
],
"unicorn/filename-case": [
"error",
{
"case": "pascalCase"
}
],
"default-case": "off",
"no-unused-expressions": "off",
"no-case-declarations": "off",
"import/no-unassigned-import": "off",
"import/no-named-as-default": "off",
"import/prefer-default-export": "off",
"no-duplicate-imports": "off"
}
}
}