forked from facebook/Rapid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
145 lines (145 loc) · 6.41 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
{
"name": "@rapideditor/rapid",
"version": "2.2.5",
"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",
"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-s build:css build:data build:bundle",
"build:css": "node scripts/build_css.js",
"build:data": "shx mkdir -p dist/data && node scripts/build_data.js",
"build:bundle": "node config/esbuild.config.modern.js",
"clean": "shx rm -f dist/esbuild.json dist/*.js dist/*.map dist/*.css dist/img/*-sprite.svg",
"dist": "run-p dist:**",
"dist:legacy:bundle": "node config/esbuild.config.legacy.js",
"dist:min:bundle": "node config/esbuild.config.modern-min.js",
"dist:min:legacy:bundle": "node config/esbuild.config.legacy-min.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": "node scripts/update_imagery.js",
"lint": "eslint modules test",
"start": "run-s build:css build:bundle 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": "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": "c8 node --test test/unit",
"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": "node scripts/update_locales.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": "^1.3.1",
"@pixi/display": "7.4.0",
"@pixi/events": "7.4.0",
"@rapid-sdk/math": "~1.0.0-pre.1",
"@rapid-sdk/util": "~1.0.0-pre.1",
"@rapideditor/country-coder": "~5.2.2",
"@rapideditor/location-conflation": "~1.3.0",
"@rapideditor/pixi-dashed-line": "7.4.0",
"@rapideditor/pixi-texture-allocator": "7.4.0",
"@tmcw/togeojson": "^5.8.1",
"@types/chai": "^4.3.11",
"d3": "~7.8.5",
"fast-deep-equal": "~3.1.3",
"fast-json-stable-stringify": "2.1.0",
"lodash-es": "~4.17.21",
"marked": "~12.0.0",
"node-diff3": "~3.1.2",
"osm-auth": "2.4.0",
"pbf": "^3.2.1",
"pixi-filters": "5.3.0",
"pixi.js": "7.4.0",
"pmtiles": "^3.0.3",
"polyclip-ts": "~0.16.3",
"prop-types": "^15.8.1",
"rbush": "3.0.1",
"which-polygon": "2.2.1"
},
"devDependencies": {
"@fortawesome/fontawesome-svg-core": "^6.5.1",
"@fortawesome/free-brands-svg-icons": "^6.5.1",
"@fortawesome/free-regular-svg-icons": "^6.5.1",
"@fortawesome/free-solid-svg-icons": "^6.5.1",
"@mapbox/maki": "^8.0.1",
"@openstreetmap/id-tagging-schema": "~6.6.0",
"@pixi/jsdoc-template": "^2.6.0",
"@playwright/test": "^1.41.2",
"@rapideditor/mapillary_sprite_source": "^1.8.0",
"@rapideditor/temaki": "~5.7.0",
"autoprefixer": "^10.4.17",
"benchmark": "^2.1.4",
"btoa": "^1.2.1",
"c8": "^9.1.0",
"chai": "^5.1.0",
"chalk": "^5.3.0",
"cldr-core": "44.1.0",
"cldr-localenames-full": "44.1.0",
"cloc": "^1.98.0-cloc",
"concat-files": "^0.1.1",
"editor-layer-index": "github:osmlab/editor-layer-index#gh-pages",
"esbuild": "^0.20.1",
"esbuild-visualizer": "^0.6.0",
"eslint": "^8.56.0",
"fetch-mock": "^9.11.0",
"gaze": "^1.1.3",
"glob": "^10.3.10",
"happen": "^0.3.2",
"js-yaml": "^4.1.0",
"json-stringify-pretty-compact": "^4.0.0",
"karma": "^6.4.2",
"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": "^10.3.0",
"name-suggestion-index": "~6.0.20240214",
"npm-run-all": "^4.1.5",
"osm-community-index": "~5.6.1",
"postcss": "^8.4.35",
"postcss-selector-prepend": "^0.5.0",
"shelljs": "^0.8.5",
"shx": "^0.3.4",
"sinon": "^17.0.1",
"static-server": "^3.0.0",
"svg-sprite": "2.0.2"
},
"engines": {
"node": ">=18"
},
"browserslist": [
"> 0.2%, last 3 major versions, Firefox ESR, maintained node versions"
],
"volta": {
"node": "18"
}
}