forked from Sagarpreet/Leaflet.FreeDraw
-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
173 lines (173 loc) · 4.4 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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
{
"name": "leaflet-craft",
"version": "4.1.7",
"description": "Zoopla inspired freehand polygon creation using Leaflet.js.",
"source": "src/FreeDraw.js",
"module": "dist/leaflet-freedraw.esm.js",
"main": "dist/leaflet-freedraw.web.js",
"unpkg": "dist/leaflet-freedraw.iife.js",
"types": "types/main.d.ts",
"files": [
".babelrc",
"dist/*",
"src/*",
"types/*"
],
"scripts": {
"dev": "yarn clean:example && parcel example/index.html & rimraf dist",
"clean:example": "rimraf example-dist",
"example": "yarn clean:example && parcel build example/index.html --out-dir example-dist --no-minify",
"build:craft": "rimraf dist && rollup -c",
"build": "yarn build:craft",
"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",
"prepublish": "yarn build"
},
"repository": {
"type": "git",
"url": "https://github.com/sagarpreet-chadha/Leaflet-Craft"
},
"keywords": [
"leaflet",
"freedraw",
"polygon",
"drawing",
"freehand",
"zoopla",
"geospatial",
"search",
"area"
],
"author": "Sagarpreet Chadha<[email protected]> | Adam Timberlake <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/sagarpreet-chadha/Leaflet-Craft"
},
"homepage": "https://github.com/sagarpreet-chadha/Leaflet-Craft",
"dependencies": {
"@turf/area": "6.0.1",
"@turf/clean-coords": "^6.0.1",
"@turf/helpers": "6.1.4",
"@turf/points-within-polygon": "5.1.5",
"@turf/simplify": "^5.1.5",
"@turf/union": "^5.1.5",
"@turf/unkink-polygon": "^5.1.5",
"concavehull": "^0.1.6",
"d3-selection": "^1.4.1",
"d3-shape": "^1.3.7",
"turf-intersect": "~3.0.12",
"turf-polygon": "~1.0.3"
},
"peerDependencies": {
"leaflet": "^1.6.0",
"ramda": "^0.22.1",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-leaflet": "^2.6.1",
"regenerator-runtime": "^0.13.2"
},
"devDependencies": {
"@babel/cli": "^7.7.5",
"@babel/core": "^7.7.5",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/polyfill": "^7.2.5",
"@babel/preset-env": "^7.7.6",
"@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",
"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.6.0",
"mocha": "~3.5.3",
"nightmare": "~3.0.1",
"parcel": "^1.12.3",
"ramda": "^0.22.1",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-leaflet": "^2.6.1",
"rimraf": "~2.6.2",
"rollup": "^1.27.13",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-commonjs": "^9.3.4",
"rollup-plugin-node-resolve": "^4.2.4",
"rollup-plugin-postcss": "^2.0.3",
"rollup-plugin-terser": "^4.0.4",
"rollup-plugin-visualizer": "^3.3.1",
"sinon": "^1.17.6",
"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"
}
}
}