mirror of
https://github.com/mapillary/mapillary-js.git
synced 2026-01-25 14:07:28 +00:00
Remove all usages of any in graph class. Simplify array for loop. Make graphlib typings non global. Add clean typings npm script.
90 lines
3.3 KiB
JSON
90 lines
3.3 KiB
JSON
{
|
|
"name": "mapillary-js",
|
|
"version": "1.6.0",
|
|
"description": "WebGL JavaScript library for displaying street level imagery from mapillary.com",
|
|
"main": "dist/mapillary-js.min",
|
|
"license": "MIT",
|
|
"homepage": "https://github.com/mapillary/mapillary-js#readme",
|
|
"keywords": [
|
|
"mapillary",
|
|
"webgl",
|
|
"viewer"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/mapillary/mapillary-js.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/mapillary/mapillary-js/issues"
|
|
},
|
|
"dependencies": {
|
|
"earcut": "^2.1.1",
|
|
"falcor": "^0.1.16",
|
|
"falcor-http-datasource": "^0.1.3",
|
|
"graphlib": "^2.1.0",
|
|
"latlon-geohash": "^1.0.1",
|
|
"pbf": "^2.0.1",
|
|
"rbush": "^2.0.1",
|
|
"rest": "~1.3.1",
|
|
"rxjs": "^5.0.0-beta.10",
|
|
"three": "^0.79.0",
|
|
"underscore": "~1.8.3",
|
|
"unitbezier": "0.0.0",
|
|
"virtual-dom": "^2.1.1",
|
|
"when": "~3.7.4"
|
|
},
|
|
"devDependencies": {
|
|
"autoprefixer": "^6.3.7",
|
|
"brfs": "^1.4.1",
|
|
"browserify": "^13.0.0",
|
|
"browserify-middleware": "^7.0.0",
|
|
"cssnano": "^3.7.3",
|
|
"exorcist": "^0.4.0",
|
|
"express": "^4.14.0",
|
|
"ghooks": "^1.2.1",
|
|
"jasmine-core": "^2.4.1",
|
|
"karma": "^0.13.19",
|
|
"karma-browserify": "^5.0.3",
|
|
"karma-chrome-launcher": "^0.2.3",
|
|
"karma-firefox-launcher": "0.1.7",
|
|
"karma-jasmine": "^0.3.8",
|
|
"postcss-cli": "^2.5.2",
|
|
"postcss-middleware": "^1.1.2",
|
|
"tsify": "^0.16.0",
|
|
"tslint": "3.7.4",
|
|
"typedoc": "^0.4.4",
|
|
"typedoc-default-themes": "^0.4.0",
|
|
"typescript": "^1.8.10",
|
|
"typings": "^1.0.4",
|
|
"uglify-js": "^2.7.0",
|
|
"watchify": "3.7.0"
|
|
},
|
|
"browser": {
|
|
"three": "./node_modules/three/build/three.min.js"
|
|
},
|
|
"config": {
|
|
"ghooks": {
|
|
"pre-commit": "npm run lint",
|
|
"pre-push": "npm test"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build-css": "cat styles/*.css | postcss --use autoprefixer --autoprefixer.browsers 'last 2 versions, safari 7, ie 11' --use cssnano -o dist/mapillary-js.min.css",
|
|
"build-dev": "browserify src/Mapillary.ts --plugin tsify --transform brfs --standalone Mapillary --debug | exorcist dist/mapillary-js.js.map > dist/mapillary-js.js",
|
|
"build-watch": "watchify src/Mapillary.ts --plugin tsify --transform brfs --standalone Mapillary --debug -v -o 'exorcist dist/mapillary-js.js.map > dist/mapillary-js.js'",
|
|
"build-docs": "typedoc --mode file --target ES5 --module commonjs --theme default --excludeExternals --name MapillaryJS --out docs/",
|
|
"build-min": "browserify src/Mapillary.ts --plugin tsify --transform brfs --standalone Mapillary | uglifyjs > dist/mapillary-js.min.js",
|
|
"clean": "rm -rf dist && mkdir dist",
|
|
"clean-typings": "rm -rf typings/modules && rm -rf typings/globals && rm typings/index.d.ts",
|
|
"copy-assets": "cp -a styles/*.svg dist",
|
|
"lint": "npm run lint-spec && npm run lint-src",
|
|
"lint-spec": "tslint -c tslint.json ./spec/**/*.ts ./spec/**/**/*.ts",
|
|
"lint-src": "tslint -c tslint.json src/*.ts src/**/*.ts src/**/**/*.ts src/**/**/**/*.ts",
|
|
"prepublish": "npm run clean && npm run lint-src && typings install && npm run build-min && npm run build-dev && npm run build-css && npm run copy-assets",
|
|
"start": "node server.js",
|
|
"test": "karma start --single-run",
|
|
"test-watch": "karma start",
|
|
"typings": "typings"
|
|
}
|
|
}
|