mirror of
https://github.com/mapillary/mapillary-js.git
synced 2026-01-25 14:07:28 +00:00
Extending Error does not create instances of the created error classes. Act accordingly in unit test error type checks. Upgrade three js typings for compatibility. Error derived classes does not need to create stack trace explicitly. Use tilde ranges for ts dev deps for future compatibility.
90 lines
3.3 KiB
JSON
90 lines
3.3 KiB
JSON
{
|
|
"name": "mapillary-js",
|
|
"version": "2.2.0",
|
|
"description": "WebGL JavaScript library for displaying street level imagery from mapillary.com",
|
|
"main": "dist/mapillary.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.17",
|
|
"falcor-http-datasource": "^0.1.3",
|
|
"latlon-geohash": "^1.1.0",
|
|
"pbf": "^3.0.2",
|
|
"rbush": "^2.0.1",
|
|
"rxjs": "^5.0.1",
|
|
"three": "^0.83.0",
|
|
"underscore": "^1.8.3",
|
|
"unitbezier": "^0.0.0",
|
|
"virtual-dom": "^2.1.1",
|
|
"when": "^3.7.7"
|
|
},
|
|
"devDependencies": {
|
|
"autoprefixer": "^6.5.2",
|
|
"brfs": "^1.4.3",
|
|
"browserify": "^13.1.1",
|
|
"browserify-middleware": "^7.1.0",
|
|
"cssnano": "^3.8.0",
|
|
"exorcist": "^0.4.0",
|
|
"express": "^4.14.0",
|
|
"ghooks": "^2.0.0",
|
|
"jasmine-core": "^2.5.2",
|
|
"karma": "^1.3.0",
|
|
"karma-browserify": "^5.1.0",
|
|
"karma-firefox-launcher": "^1.0.0",
|
|
"karma-jasmine": "^1.0.2",
|
|
"postcss-cli": "^2.6.0",
|
|
"postcss-middleware": "^1.1.2",
|
|
"tsify": "~2.0.3",
|
|
"tslint": "~3.15.1",
|
|
"typedoc": "~0.5.1",
|
|
"typedoc-default-themes": "~0.4.0",
|
|
"typescript": "~2.1.4",
|
|
"typings": "~2.1.0",
|
|
"uglify-js": "^2.7.4",
|
|
"watchify": "^3.7.0"
|
|
},
|
|
"browser": {
|
|
"falcor": "./node_modules/falcor/dist/falcor.browser.min.js",
|
|
"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.min.css",
|
|
"build-dev": "browserify src/Mapillary.ts --plugin tsify --transform brfs --standalone Mapillary --debug | exorcist dist/mapillary.js.map > dist/mapillary.js",
|
|
"build-watch": "watchify src/Mapillary.ts --plugin tsify --transform brfs --standalone Mapillary --debug -v -o 'exorcist dist/mapillary.js.map > dist/mapillary.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 -c -m > dist/mapillary.min.js",
|
|
"clean": "npm run clean-dist && npm run clean-docs && npm run clean-typings",
|
|
"clean-dist": "rm -rf dist && mkdir dist",
|
|
"clean-docs": "rm -rf docs",
|
|
"clean-typings": "rm -rf typings/modules && rm -rf typings/globals && rm -f 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"
|
|
}
|
|
}
|