leaflet.freedraw
Version:
Zoopla inspired freehand polygon creation using Leaflet.js.
125 lines • 3.26 kB
JSON
{
"name": "leaflet.freedraw",
"version": "2.0.1",
"description": "Zoopla inspired freehand polygon creation using Leaflet.js.",
"main": "dist/leaflet.freedraw.cjs.js",
"browser": "dist/leaflet.freedraw.web.js",
"scripts": {
"dev": "webpack --config webpack.example.js && npm run css",
"watch": "npm run css && webpack --watch --config webpack.example.js",
"start": "npm i && npm run dev && babel example/server/default.js | node",
"css": "cp node_modules/leaflet/dist/leaflet.css ./example/css",
"test": "npm run lint && npm run spec",
"spec": "ava && npm run dev && mocha tests/functional/FreeDraw.test.js --compilers js:babel-register",
"lint": "xo src/*.js src/**/*.js",
"cleanup": "rimraf node_modules",
"build": "webpack --config webpack.cjs.js && webpack --config webpack.web.js -p"
},
"repository": {
"type": "git",
"url": "https://github.com/Wildhoney/Leaflet.FreeDraw.git"
},
"keywords": [
"leaflet",
"freedraw",
"polygon",
"drawing",
"freehand"
],
"author": "Adam Timberlake <adam.timberlake@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/Wildhoney/Leaflet.FreeDraw/issues"
},
"homepage": "https://github.com/Wildhoney/Leaflet.FreeDraw",
"dependencies": {
"clipper-lib": "^6.2.1",
"leaflet": "^1.0.1",
"ramda": "^0.22.1"
},
"devDependencies": {
"angular": "^1.6.0-rc.1",
"ava": "^0.17.0",
"babel-cli": "^6.18.0",
"babel-loader": "^6.2.8",
"babel-polyfill": "^6.16.0",
"babel-preset-es2015": "^6.18.0",
"babel-preset-stage-3": "^6.17.0",
"babel-register": "^6.18.0",
"chai": "^3.5.0",
"compression": "^1.6.2",
"concavehull": "^0.1.6",
"d3-selection": "^1.0.3",
"d3-shape": "^1.0.4",
"es6-set": "^0.1.4",
"es6-symbol": "^3.1.0",
"es6-weak-map": "^2.0.1",
"express": "^4.14.0",
"jsdom": "^9.8.3",
"mocha": "^3.1.2",
"nightmare": "^2.8.1",
"opener": "^1.4.2",
"rimraf": "^2.5.4",
"sinon": "^1.17.6",
"webpack": "^2.1.0-beta.27",
"xo": "^0.17.1"
},
"ava": {
"files": [
"tests/*.test.js",
"tests/**/*.test.js",
"!tests/functional/*.test.js"
],
"babel": "inherit",
"require": [
"babel-polyfill",
"babel-register",
"./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"
}
}
}