mapcomplete/package.json

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

146 lines
8.3 KiB
JSON
Raw Normal View History

2020-06-24 00:35:19 +02:00
{
"name": "mapcomplete",
2022-12-23 16:33:23 +01:00
"version": "0.25.1",
2020-09-20 23:29:53 +02:00
"repository": "https://github.com/pietervdvn/MapComplete",
2020-06-24 00:35:19 +02:00
"description": "A small website to edit OSM easily",
"bugs": "https://github.com/pietervdvn/MapComplete/issues",
"homepage": "https://mapcomplete.osm.be",
2023-01-31 14:45:32 +01:00
"main": "index.ts",
2023-01-17 18:31:51 +01:00
"type": "module",
2020-06-24 00:35:19 +02:00
"scripts": {
2022-02-25 00:05:27 +01:00
"start": "npm run generate:layeroverview && npm run strt",
"strt": "vite --host",
2022-09-08 21:26:17 +02:00
"strttest": "export NODE_OPTIONS=--max_old_space_size=8364 && parcel serve test.html assets/templates/*.svg assets/templates/fonts/*.ttf",
"watch:css": "tailwindcss -i index.css -o css/index-tailwind-output.css --watch",
2021-10-03 02:50:11 +02:00
"generate:css": "tailwindcss -i index.css -o css/index-tailwind-output.css",
2022-04-08 17:59:14 +02:00
"generate:doctests": "doctest-ts-improved . --ignore .*.spec.ts --ignore .*ConfigJson.ts",
2023-02-06 00:22:11 +01:00
"test:run-only": "vitest --run test",
"test": "npm run clean:tests && (npm run generate:doctests 2>&1 | grep -v \"No doctests found in\") && npm run test:run-only && npm run clean:tests",
2023-02-10 01:49:42 +01:00
"init": "npm ci && npm run generate && npm run generate:editor-layer-index && npm run generate:layouts && npm run clean && npm run weblate-add-upstream",
"generate:editor-layer-index": "vite-node scripts/downloadEli.ts",
"generate:polygon-features": "vite-node scripts/downloadFile.ts -- https://raw.githubusercontent.com/tyrasd/osm-polygon-features/master/polygon-features.json assets/polygon-features.json",
"generate:images": "vite-node scripts/generateIncludedImages.ts",
"generate:translations": "vite-node scripts/generateTranslations.ts",
"reset:translations": "vite-node scripts/generateTranslations.ts -- --ignore-weblate",
"generate:layouts": "vite-node scripts/generateLayouts.ts",
"generate:docs": "vite-node scripts/generateDocs.ts && vite-node scripts/generateTaginfoProjectFiles.ts",
"generate:cache:speelplekken": "npm run generate:layeroverview && vite-node scripts/generateCache.ts -- speelplekken 14 ../MapComplete-data/speelplekken_cache/ 51.20 4.35 51.09 4.56",
"generate:cache:natuurpunt": "npm run generate:layeroverview && vite-node scripts/generateCache.ts -- natuurpunt 12 ../MapComplete-data/natuurpunt_cache/ 50.40 2.1 51.54 6.4 --generate-point-overview nature_reserve,visitor_information_centre",
2023-02-10 14:55:41 +01:00
"generate:layeroverview": "export NODE_OPTIONS=\"--max-old-space-size=8192\" && vite-node scripts/generateLayerOverview.ts",
"generate:licenses": "vite-node scripts/generateLicenseInfo.ts -- --no-fail",
"query:licenses": "vite-node scripts/generateLicenseInfo.ts -- --query",
"generate:contributor-list": "vite-node scripts/generateContributors.ts",
"generate:schemas": "ts2json-schema -p Models/ThemeConfig/Json/ -o Docs/Schemas/ -t tsconfig.json -R . -m \".*ConfigJson\" && vite-node scripts/fixSchemas.ts ",
2023-02-24 17:47:30 +01:00
"generate:service-worker": "tsc service-worker.ts --outFile public/service-worker.js && git_hash=$(git rev-parse HEAD) && sed -i \"s/GITHUB-COMMIT/$git_hash/\" public/service-worker.js",
2020-11-15 16:30:26 +01:00
"optimize-images": "cd assets/generated/ && find -name '*.png' -exec optipng '{}' \\; && echo 'PNGs are optimized'",
"generate:stats": "vite-node scripts/GenerateSeries.ts",
2023-03-08 19:02:41 +01:00
"reset:layeroverview": "echo {\\\"themes\\\":[]} > ./assets/generated/known_themes.json && echo {\\\"layers\\\": []} > ./assets/generated/known_layers.json && rm -f ./assets/generated/layers/*.json && rm -f ./assets/generated/themes/*.json && npm run generate:layeroverview && vite-node scripts/generateLayerOverview.ts -- --force",
2022-07-18 15:06:12 +02:00
"generate": "mkdir -p ./assets/generated; npm run generate:licenses; npm run generate:images; npm run generate:charging-stations; npm run generate:translations; npm run reset:layeroverview; npm run generate:service-worker",
"generate:charging-stations": "cd ./assets/layers/charging_station && vite-node csvToJson.ts && cd -",
2022-06-02 03:04:11 +02:00
"prepare-deploy": "npm run generate:service-worker && ./scripts/build.sh",
"format": "npx prettier --write --svelte-bracket-new-line=false --html-whitespace-sensitivity=ignore '**/*.ts' '**/*.svelte'",
"clean:tests": "(find . -type f -name \"*.doctest.ts\" | xargs -r rm)",
"clean": "rm -rf .cache/ && (find *.html | grep -v \"^\\(404\\|index\\|land\\|test\\|preferences\\|customGenerator\\|professional\\|automaton\\|import_helper\\|import_viewer\\|theme\\).html\" | xargs -r rm) && (ls | grep \"^index_[a-zA-Z_-]\\+\\.ts$\" | xargs -r rm) && (ls | grep \".*.webmanifest$\" | grep -v \"manifest.webmanifest\" | xargs -r rm)",
"generate:dependency-graph": "node_modules/.bin/depcruise --exclude \"^node_modules\" --output-type dot Logic/State/MapState.ts > dependencies.dot && dot dependencies.dot -T svg -o dependencies.svg && rm dependencies.dot",
2023-02-10 01:49:42 +01:00
"weblate-add-upstream": "git remote add weblate-github git@github.com:weblate/MapComplete.git && git remote add weblate-hosted-core https://hosted.weblate.org/git/mapcomplete/core/ && git remote add weblate-hosted-layers https://hosted.weblate.org/git/mapcomplete/layers/",
"weblate-merge": "git remote update weblate-github; git merge weblate-github/weblate-mapcomplete-core weblate-github/weblate-mapcomplete-layers weblate-github/weblate-mapcomplete-layer-translations",
2023-02-10 01:49:42 +01:00
"weblate-fix-heavy": "git fetch weblate-hosted-layers; git fetch weblate-hosted-core; git merge weblate-hosted-layers/master weblate-hosted-core/master ",
2023-03-08 19:02:41 +01:00
"housekeeping": "git pull && npm run weblate-fix-heavy && npm run generate && npm run generate:docs && npm run generate:contributor-list && vite-node scripts/fetchLanguages.ts && npm run format && git add assets/ langs/ Docs/ **/*.ts Docs/* && git commit -m 'chore: automated housekeeping...'",
"parseSchools": "vite-node scripts/schools/amendSchoolData.ts"
2020-06-24 00:35:19 +02:00
},
"keywords": [
"OpenStreetMap",
"Editor"
],
"author": "pietervdvn",
"license": "GPL-3.0-or-later",
2022-06-02 02:59:34 +02:00
"browserslist": [
">0.2%",
"not dead",
"not ie < 11",
"not op_mini all"
],
2020-06-24 00:35:19 +02:00
"dependencies": {
"@onsvisual/svelte-maps": "^1.1.6",
2023-03-28 05:13:48 +02:00
"@rgossiaux/svelte-headlessui": "^1.0.2",
"@rgossiaux/svelte-heroicons": "^0.1.2",
2023-01-31 14:45:32 +01:00
"@rollup/plugin-typescript": "^11.0.0",
2022-06-07 19:48:09 +02:00
"@turf/boolean-intersects": "^6.5.0",
"@turf/buffer": "^6.5.0",
"@turf/collect": "^6.5.0",
"@turf/distance": "^6.5.0",
"@turf/length": "^6.5.0",
"@turf/turf": "^6.5.0",
"@types/showdown": "^2.0.0",
2022-07-20 09:36:00 +02:00
"chart.js": "^3.8.0",
2020-10-05 20:42:23 +02:00
"country-language": "^0.1.7",
2022-06-13 17:48:29 +02:00
"csv-parse": "^5.1.0",
2022-06-13 00:51:53 +02:00
"doctest-ts-improved": "^0.8.8",
"email-validator": "^2.0.4",
"escape-html": "^1.0.3",
"fake-dom": "^1.0.4",
2023-04-14 04:33:06 +02:00
"geojson2svg": "^1.3.3",
2023-03-29 17:21:20 +02:00
"html-to-markdown": "^1.0.0",
"i18next-client": "^1.11.4",
"idb-keyval": "^6.0.3",
2023-02-03 04:48:32 +01:00
"jest-mock": "^29.4.1",
2022-09-08 21:26:17 +02:00
"jspdf": "^2.5.1",
2021-12-13 20:50:29 +01:00
"latlon2country": "^1.2.6",
2022-07-13 17:59:10 +02:00
"libphonenumber-js": "^1.10.8",
"lz-string": "^1.4.4",
2023-01-22 01:09:16 +01:00
"mangrove-reviews-typescript": "^1.1.0",
"maplibre-gl": "^2.4.0",
"opening_hours": "^3.6.0",
2020-06-24 00:35:19 +02:00
"osm-auth": "^1.0.2",
"osmtogeojson": "^3.0.0-beta.5",
"papaparse": "^5.3.1",
2023-01-30 01:19:37 +01:00
"pic4carto": "^2.1.15",
"prompt-sync": "^4.2.0",
"showdown": "^2.1.0",
2022-09-14 12:18:51 +02:00
"svg-path-parser": "^1.1.0",
2022-09-04 21:04:13 +02:00
"tailwindcss": "^3.1.8",
2021-11-08 20:49:51 +01:00
"togpx": "^0.5.4",
"vite-node": "^0.28.3",
2023-02-03 04:05:47 +01:00
"vitest": "^0.28.3",
"wikibase-sdk": "^7.14.0",
"wikidata-sdk": "^7.14.0",
"xml2js": "^0.4.23"
2020-06-24 00:35:19 +02:00
},
"devDependencies": {
"@babel/polyfill": "^7.10.4",
2022-09-04 21:04:13 +02:00
"@babel/preset-env": "7.13.8",
2022-09-03 18:00:54 +02:00
"@parcel/service-worker": "^2.6.0",
2023-01-16 15:05:22 +01:00
"@rollup/plugin-json": "^6.0.0",
2023-01-17 18:31:51 +01:00
"@sveltejs/vite-plugin-svelte": "^2.0.2",
"@tsconfig/svelte": "^3.0.0",
2022-09-04 21:04:13 +02:00
"@types/chai": "^4.3.0",
"@types/geojson": "^7946.0.10",
"@types/lz-string": "^1.3.34",
2023-01-15 23:28:02 +01:00
"@types/node": "^18.11.18",
2022-09-04 21:04:13 +02:00
"@types/papaparse": "^5.3.1",
"@types/prompt-sync": "^4.1.0",
"@types/wikidata-sdk": "^6.1.0",
"@types/xml2js": "^0.4.9",
2020-08-22 12:44:11 +02:00
"assert": "^2.0.0",
"chai": "^4.3.6",
2021-10-14 20:14:14 +02:00
"dependency-cruiser": "^10.4.0",
"fs": "0.0.1-security",
"node-html-parser": "^6.1.5",
"prettier": "^2.7.1",
2023-01-17 18:31:51 +01:00
"prettier-plugin-svelte": "^2.9.0",
2020-07-25 18:00:08 +02:00
"read-file": "^0.2.0",
2023-02-08 02:47:32 +01:00
"sass": "^1.58.0",
"sharp": "^0.30.5",
2023-01-17 18:31:51 +01:00
"svelte": "^3.55.1",
"svelte-check": "^3.0.2",
2023-01-31 14:45:32 +01:00
"svelte-preprocess": "^5.0.1",
2022-09-05 08:09:56 +02:00
"ts-node": "^10.9.1",
"ts2json-schema": "^1.4.0",
2023-01-31 14:45:32 +01:00
"tslib": "^2.5.0",
2022-09-04 23:21:24 +02:00
"tslint": "^6.1.3",
2021-04-10 03:50:44 +02:00
"tslint-no-circular-imports": "^0.7.0",
2023-01-15 23:28:02 +01:00
"typescript": "^4.7.4",
"vite": "^4.0.4"
2020-06-24 00:35:19 +02:00
}
}