mapillary-js/package.json
Oscar Lorentzon b562a0b06c chore: build with rollup
Migrate to Rollup.
Emit umd, minified umd, module, type declarations
and source maps.
Work around problems with Falcor by using
virtual module.

Migrate to Jest.
Run tests in with CommonJS modules becasue ES6
is not supported.
Work around dependency problems by bootstrap
to ensure they are not loaded during test.

Remove all unused dependencies.

Create state transition matrix to avoid
circular dependencies.

chore: tsc and rollup watch build
chore: incremental watch build
Remove unused dependencies.
chore: use existing type packages
chore: mock favicon
chore: improve watch build
chore: fix styles build
chore: specific commonjs build for tests
chore: reset spec files
refactor: explicit state transition matrix
chore: make src commands work
chore: working unit tests and lib
chore: add serve docs script
chore: remove unused bundle config
chore: refactor rollup config to avoid duplication
fix: falcor imports
fix: transition from source to target

Fixes #87
Fixes #100
Fixes #159
Fixes #208
2021-03-15 11:23:22 +01:00

106 lines
3.5 KiB
JSON

{
"name": "mapillary-js",
"version": "3.1.0",
"description": "A WebGL interactive street imagery library",
"main": "dist/mapillary.js",
"module": "dist/mapillary.module.js",
"style": "dist/mapillary.min.css",
"types": "dist/mapillary.d.ts",
"type": "module",
"license": "MIT",
"keywords": [
"3d",
"computational-geometry",
"imagery",
"mapillary",
"spatial-visualization",
"street-imagery",
"typescript",
"viewer",
"webgl"
],
"repository": "mapillary/mapillary-js",
"homepage": "https://github.com/mapillary/mapillary-js",
"bugs": {
"url": "https://github.com/mapillary/mapillary-js/issues"
},
"dependencies": {
"@mapbox/unitbezier": "0.0.0",
"earcut": "^2.2.2",
"falcor": "^0.1.17",
"falcor-http-datasource": "^0.1.3",
"latlon-geohash": "^1.1.0",
"martinez-polygon-clipping": "^0.7.0",
"pako": "^2.0.3",
"pbf": "^3.2.1",
"polylabel": "^1.1.0",
"rbush": "^3.0.1",
"rxjs": "^6.5.5",
"s2-geometry": "^1.2.10",
"three": "^0.125.2",
"virtual-dom": "^2.1.1"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^17.1.0",
"@rollup/plugin-node-resolve": "^11.1.1",
"@rollup/plugin-virtual": "^2.0.3",
"@types/earcut": "^2.1.1",
"@types/falcor": "^0.1.22",
"@types/falcor-http-datasource": "^0.1.19",
"@types/jest": "^26.0.20",
"@types/latlon-geohash": "^1.1.0",
"@types/node": "^14.14.31",
"@types/pako": "^1.0.1",
"@types/pbf": "^3.0.2",
"@types/polylabel": "^1.0.5",
"@types/rbush": "^3.0.0",
"@types/three": "^0.125.3",
"@types/virtual-dom": "^2.1.0",
"autoprefixer": "^10.2.4",
"concurrently": "^6.0.0",
"cssnano": "^4.1.10",
"express": "^4.17.1",
"jest": "^26.6.3",
"postcss": "^8.2.6",
"postcss-cli": "^8.3.1",
"postcss-inline-svg": "^5.0.0",
"rollup": "^2.38.1",
"rollup-plugin-dts": "^2.0.1",
"rollup-plugin-postcss": "^4.0.0",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-terser": "^7.0.2",
"tslint": "^6.1.2",
"typedoc": "^0.20.28",
"typedoc-default-themes": "^0.12.7",
"typescript": "^4.2.2"
},
"browserslist": [
"last 2 versions"
],
"scripts": {
"build": "yarn build-styles && yarn build-src",
"build-docs": "typedoc --options typedoc.json",
"build-src": "yarn compile && yarn bundle",
"build-styles": "cat styles/*.css | postcss -o dist/mapillary.css",
"bundle": "rollup -c",
"bundle-watch": "rollup -w --no-watch.clearScreen -c rollup.umd.config.js",
"clean": "yarn clean-build && yarn clean-dist && yarn clean-docs",
"clean-build": "rm -rf build",
"clean-dist": "rm -rf dist && mkdir dist",
"clean-docs": "rm -rf docs/build",
"compile": "tsc -p tsconfig.json",
"compile-incremental": "tsc --incremental -p tsconfig.json",
"compile-test": "tsc -p tsconfig.test.json",
"compile-watch": "tsc -w --incremental --preserveWatchOutput -p tsconfig.json",
"lint": "yarn lint-spec && yarn lint-src",
"lint-spec": "tslint -c tslint.json -p tsconfig.json \"spec/**/*.ts\"",
"lint-src": "tslint -c tslint.json -p tsconfig.json \"src/**/*.ts\"",
"prepare": "yarn clean && yarn lint && yarn build",
"serve": "node server.js",
"serve-docs": "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 clean-dist && yarn build-styles && yarn compile-incremental",
"test": "yarn clean-build && yarn compile-test && jest"
}
}