mirror of
https://github.com/mapillary/mapillary-js.git
synced 2025-12-08 17:35:55 +00:00
112 lines
3.7 KiB
JSON
112 lines
3.7 KiB
JSON
{
|
|
"name": "mapillary-js",
|
|
"version": "5.0.0-alpha.0",
|
|
"description": "A WebGL interactive street imagery library",
|
|
"license": "MIT",
|
|
"main": "dist/mapillary.js",
|
|
"module": "dist/mapillary.module.js",
|
|
"style": "dist/mapillary.css",
|
|
"types": "dist/mapillary.d.ts",
|
|
"type": "module",
|
|
"keywords": [
|
|
"3d",
|
|
"computational-geometry",
|
|
"geospatial",
|
|
"imagery",
|
|
"map-building",
|
|
"mapillary",
|
|
"renderer",
|
|
"spatial-visualization",
|
|
"street-imagery",
|
|
"typescript",
|
|
"viewer",
|
|
"webgl"
|
|
],
|
|
"repository": "github:mapillary/mapillary-js",
|
|
"homepage": "https://mapillary.github.io/mapillary-js",
|
|
"bugs": {
|
|
"url": "https://github.com/mapillary/mapillary-js/issues"
|
|
},
|
|
"browserslist": [
|
|
"last 2 versions"
|
|
],
|
|
"dependencies": {
|
|
"@types/earcut": "^2.1.1",
|
|
"@types/node": "^18.6.1",
|
|
"@types/pako": "^2.0.0",
|
|
"@types/pbf": "^3.0.2",
|
|
"@types/polylabel": "^1.0.5",
|
|
"@types/rbush": "^3.0.0",
|
|
"@types/three": "^0.142.0",
|
|
"@types/virtual-dom": "^2.1.1",
|
|
"earcut": "^2.2.4",
|
|
"martinez-polygon-clipping": "^0.7.3",
|
|
"pako": "^2.0.4",
|
|
"pbf": "^3.2.1",
|
|
"polylabel": "^1.1.0",
|
|
"rbush": "^3.0.1",
|
|
"rxjs": "^7.5.6",
|
|
"s2-geometry": "^1.2.10",
|
|
"three": "^0.142.0",
|
|
"virtual-dom": "^2.1.1"
|
|
},
|
|
"devDependencies": {
|
|
"@rollup/plugin-commonjs": "^22.0.1",
|
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
"@types/jest": "^27.4.1",
|
|
"autoprefixer": "^10.4.7",
|
|
"concurrently": "^7.3.0",
|
|
"express": "^4.18.1",
|
|
"flowgen": "^1.20.1",
|
|
"jest": "^27.5.1",
|
|
"postcss": "^8.4.14",
|
|
"postcss-cli": "^10.0.0",
|
|
"postcss-inline-svg": "^5.0.0",
|
|
"rollup": "^2.70.0",
|
|
"rollup-plugin-dts": "^4.2.0",
|
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
"rollup-plugin-terser": "^7.0.2",
|
|
"tslint": "^6.1.2",
|
|
"typescript": "^4.7.4"
|
|
},
|
|
"scripts": {
|
|
"build": "yarn build-styles && yarn build-src",
|
|
"build-flow": "yarn flowgen build/declarations/mapillary.js.flow",
|
|
"build-src": "yarn compile && yarn bundle",
|
|
"build-styles": "cat styles/*.css | postcss --config ./config -o dist/mapillary.css",
|
|
"bundle": "rollup -c",
|
|
"bundle-watch": "rollup -w --no-watch.clearScreen -c ./config/rollup.serve.config.js",
|
|
"clear": "yarn clear-build && yarn clear-dist",
|
|
"clear-build": "rm -rf build",
|
|
"clear-token": "rm -rf doc/.access-token",
|
|
"clear-dist": "rm -rf dist && mkdir dist",
|
|
"compile": "tsc -p tsconfig.json",
|
|
"compile-incremental": "tsc --incremental -p tsconfig.json",
|
|
"compile-test": "tsc -p ./config/tsconfig.test.json",
|
|
"compile-watch": "tsc -w --incremental --preserveWatchOutput -p tsconfig.json",
|
|
"copy-flow": "cp declarations/mapillary.js.flow dist/mapillary.js.flow && cp declarations/mapillary.js.flow dist/mapillary.module.js.flow",
|
|
"flowgen": "flowgen dist/mapillary.d.ts --add-flow-header -o",
|
|
"setup": "node ./config/init.js",
|
|
"lint": "yarn lint-test && yarn lint-src",
|
|
"lint-src": "tslint -c ./config/tslint.json -p tsconfig.json \"src/**/*.ts\"",
|
|
"lint-test": "tslint -c ./config/tslint.json -p tsconfig.json \"test/**/*.ts\"",
|
|
"prepare": "yarn clear && yarn lint && yarn build && yarn copy-flow",
|
|
"serve": "node server.js",
|
|
"serve-umd": "python3 -m http.server",
|
|
"start": "yarn start-init && concurrently --kill-others-on-fail -n 'compile,bundle,serve' 'yarn compile-watch' 'yarn bundle-watch' 'yarn serve'",
|
|
"start-init": "yarn clear-build && yarn clear-dist && yarn build-styles && yarn compile-incremental",
|
|
"test": "yarn clear-build && yarn compile-test && jest"
|
|
},
|
|
"files": [
|
|
"dist/",
|
|
"src/",
|
|
"styles/",
|
|
"types/",
|
|
"CHANGELOG.md",
|
|
"LICENCE",
|
|
"README.md",
|
|
"package.json",
|
|
"tsconfig.json"
|
|
]
|
|
}
|