-
Notifications
You must be signed in to change notification settings - Fork 96
/
Copy pathpackage.json
157 lines (157 loc) · 6.88 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
{
"name": "@rapideditor/rapid",
"version": "2.5.2",
"description": "An AI-enhanced editor for OpenStreetMap",
"repository": "github:facebook/Rapid",
"homepage": "https://rapideditor.org",
"bugs": "https://github.com/facebook/Rapid/issues",
"keywords": [
"editor",
"openstreetmap"
],
"license": "ISC",
"type": "module",
"main": "dist/rapid.min.js",
"files": [
"dist"
],
"scripts": {
"all": "run-s clean build dist",
"benchmark": "run-p start:server test:benchmark",
"benchmark-cicd": "run-p start:server test:cicd-benchmark",
"build": "run-p build:**",
"build:css": "dotenvx run --quiet -- node scripts/build_css.js",
"build:data": "shx mkdir -p dist/data && node scripts/build_data.js",
"build:bundle:modern:dev": "dotenvx run --quiet -- node config/esbuild.config.modern-dev.js",
"clean": "shx rm -f dist/esbuild.json dist/*.js dist/*.map dist/*.css dist/img/*-sprite.svg",
"dist": "run-p dist:**",
"dist:bundle:legacy:dev": "dotenvx run --quiet -- node config/esbuild.config.legacy-dev.js",
"dist:bundle:modern:prod": "dotenvx run --quiet -- node config/esbuild.config.modern-prod.js",
"dist:bundle:legacy:prod": "dotenvx run --quiet -- node config/esbuild.config.legacy-prod.js",
"dist:svg:community": "svg-sprite --symbol --symbol-dest . --shape-id-generator \"community-%s\" --symbol-sprite dist/img/community-sprite.svg node_modules/osm-community-index/dist/img/*.svg",
"dist:svg:fa": "svg-sprite --symbol --symbol-dest . --symbol-sprite dist/img/fa-sprite.svg svg/fontawesome/*.svg",
"dist:svg:maki": "svg-sprite --symbol --symbol-dest . --shape-id-generator \"maki-%s\" --symbol-sprite dist/img/maki-sprite.svg node_modules/@mapbox/maki/icons/*.svg",
"dist:svg:mapillary:signs": "svg-sprite --symbol --symbol-dest . --symbol-sprite dist/img/mapillary-sprite.svg node_modules/@rapideditor/mapillary_sprite_source/package_signs/*.svg",
"dist:svg:mapillary:objects": "svg-sprite --symbol --symbol-dest . --symbol-sprite dist/img/mapillary-object-sprite.svg node_modules/@rapideditor/mapillary_sprite_source/package_objects/*.svg",
"dist:svg:rapid": "svg-sprite --symbol --symbol-dest . --shape-id-generator \"rapid-%s\" --symbol-sprite dist/img/rapid-sprite.svg \"svg/rapid-sprite/**/*.svg\"",
"dist:svg:roentgen": "svg-sprite --symbol --symbol-dest . --shape-id-generator \"roentgen-%s\" --symbol-sprite dist/img/roentgen-sprite.svg svg/roentgen/*.svg",
"dist:svg:temaki": "svg-sprite --symbol --symbol-dest . --shape-id-generator \"temaki-%s\" --symbol-sprite dist/img/temaki-sprite.svg node_modules/@rapideditor/temaki/icons/*.svg",
"docs": "jsdoc -c webdoc.conf.json -r",
"imagery": "dotenvx run --quiet -- node scripts/update_imagery.js",
"lint": "eslint modules test",
"start": "run-s build start:server",
"quickstart": "npm run start",
"stats": "run-s stats:codeviz stats:cloc:**",
"stats:codeviz": "esbuild-visualizer --metadata dist/esbuild.json --filename docs/statistics.html",
"stats:cloc:modules": "npx cloc --skip-uniqueness --include-ext=css,js,ts,jsx,tsx ./css ./data ./modules",
"stats:cloc:tests": "npx cloc --skip-uniqueness --include-ext=css,js,ts,jsx,tsx ./test",
"start:server": "dotenvx run --quiet -- node scripts/server.js",
"test": "npm-run-all -s lint build test:unit test:browser",
"test:benchmark": "npm run test:unzip-benchmark-data && npx playwright test --workers=1 --config=test/benchmark/playwright.config.mjs && npm run test:cleanup-benchmark-data",
"test:browser": "karma start karma.conf.cjs",
"test:unit": "dotenvx run --quiet -- c8 node --test-reporter spec --test test/unit/**/*.test.js",
"test:unzip-benchmark-data": "tar -xvf test/benchmark/tokyo_canned_data.zip -C test/benchmark",
"test:cleanup-benchmark-data": "rm test/benchmark/tokyo_*_canned_osm_data.js",
"translations": "dotenvx run --quiet -- node scripts/tx_pull.js"
},
"dependencies": {
"@mapbox/geojson-area": "^0.2.2",
"@mapbox/geojson-rewind": "^0.5.2",
"@mapbox/polylabel": "1.0.2",
"@mapbox/sexagesimal": "1.2.0",
"@mapbox/vector-tile": "^2.0.3",
"@openstreetmap/id-tagging-schema": "~6.6.0",
"@rapid-sdk/math": "~1.0.0-pre.3",
"@rapid-sdk/util": "~1.0.0-pre.3",
"@rapideditor/country-coder": "~5.3.1",
"@rapideditor/location-conflation": "~1.4.1",
"@rapideditor/wayback-core": "^1.0.7",
"@tmcw/togeojson": "^6.0.0",
"@types/chai": "^5.0.1",
"d3": "~7.9.0",
"editor-layer-index": "github:osmlab/editor-layer-index#gh-pages",
"fast-deep-equal": "~3.1.3",
"fast-json-stable-stringify": "2.1.0",
"lodash-es": "~4.17.21",
"mapillary-js": "^4.1.2",
"maplibre-gl": "^3.6.2",
"marked": "~15.0.6",
"name-suggestion-index": "~6.0.20250112",
"node-diff3": "~3.1.2",
"osm-auth": "2.5.0",
"osm-community-index": "~5.9.1",
"pannellum": "^2.5.6",
"pbf": "^4.0.1",
"pixi-filters": "^6.0.6",
"pixi.js": "8.6.6",
"pmtiles": "^4.2.1",
"polyclip-ts": "~0.16.8",
"prop-types": "^15.8.1",
"rbush": "4.0.1",
"spectorjs": "^0.9.30",
"which-polygon": "2.2.1",
"wkt": "^0.1.1",
"wmf-sitematrix": "^0.2.0"
},
"optionalDependencies": {
"@esbuild/darwin-arm64": "^0.24.2"
},
"devDependencies": {
"@dotenvx/dotenvx": "^1.33.0",
"@fortawesome/fontawesome-svg-core": "^6.7.2",
"@fortawesome/free-brands-svg-icons": "^6.7.2",
"@fortawesome/free-regular-svg-icons": "^6.7.2",
"@fortawesome/free-solid-svg-icons": "^6.7.2",
"@mapbox/maki": "^8.0.1",
"@pixi/jsdoc-template": "^2.6.0",
"@playwright/test": "^1.49.1",
"@rapideditor/mapillary_sprite_source": "^1.8.0",
"@rapideditor/temaki": "~5.10.0",
"@transifex/api": "~7.1.3",
"autoprefixer": "^10.4.20",
"benchmark": "^2.1.4",
"c8": "^10.1.3",
"chai": "^5.1.2",
"chalk": "^5.4.1",
"cldr-core": "46.1.0",
"cldr-localenames-full": "46.1.0",
"cloc": "^2.2.0-cloc",
"concat-files": "^0.1.1",
"esbuild": "^0.24.2",
"esbuild-visualizer": "^0.7.0",
"eslint": "^9.18.0",
"fetch-mock": "^12.2.0",
"gaze": "^1.1.3",
"glob": "^10.4.5",
"globals": "^15.14.0",
"happen": "^0.3.2",
"js-yaml": "^4.1.0",
"json-stringify-pretty-compact": "^4.0.0",
"json5": "^2.2.3",
"karma": "^6.4.4",
"karma-chrome-launcher": "^3.2.0",
"karma-coverage": "^2.2.1",
"karma-json-fixtures-preprocessor": "^0.0.6",
"karma-mocha": "^2.0.1",
"karma-mocha-reporter": "^2.2.5",
"karma-remap-istanbul": "^0.6.0",
"mocha": "^11.1.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.5.1",
"postcss-selector-prepend": "^0.5.0",
"shelljs": "^0.8.5",
"shx": "^0.3.4",
"sinon": "^19.0.2",
"static-server": "^3.0.0",
"svg-sprite": "2.0.4"
},
"engines": {
"node": ">=18.18"
},
"browserslist": [
"> 1%, last 3 major versions, Firefox ESR, maintained node versions, not dead"
],
"volta": {
"node": "18.19.1"
}
}