-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
166 lines (166 loc) · 8.05 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
158
159
160
161
162
163
164
165
166
{
"name": "atlas-app",
"version": "0.2.0",
"author": "FixMyCity <[email protected]>",
"license": "AGPL-3.0",
"private": true,
"engines": {
"node": ">=18.0.0 <19.0.0"
},
"scripts": {
"start": "npx [email protected] start --hostname 127.0.0.1 --port 4000",
"dev": "npx [email protected] dev --hostname 127.0.0.1 --port 5173",
"predev": "cp -f ../.env ./ && npm run predev:check_docker && npm run predev:check_migration",
"predev:check_docker": "if [ \"$(docker inspect -f '{{.State.Running}}' db)\" != \"true\" ]; then docker compose -f ../docker-compose.yml up db tiles -d; fi",
"predev:check_migration": "node scripts/CheckMigrations/check.js",
"build": "npx [email protected] build",
"bleach": "rm -rf node_modules/ && rm -rf .next/ && npm install",
"bleach:full": "rm package-lock.json && npm run bleach",
"docker:cleanup": "docker system prune --force --all --volumes && docker builder prune --all --force",
"studio": "npx [email protected] prisma studio",
"openTypes": "code \"node_modules/.prisma/client/index.d.ts\"",
"migrate": "npx [email protected] prisma migrate dev",
"migrate:create": "npx [email protected] prisma migrate dev --create-only && npm run migrate:create:openMigration",
"migrate:create:openMigration": "code $(find ./db/migrations -type f -name \"migration.sql\" -cmin -1 | head -n 1)",
"migrate:check": "npx [email protected] prisma migrate status",
"migrate:compare": "git diff origin/main... -- db/migrations",
"seed": "npm run predev && npm run migrate && npx [email protected] prisma migrate reset && npx [email protected] db seed",
"type-check": "tsc --noEmit",
"lint": "next lint",
"format": "prettier --ignore-path .gitignore \"(src|mailers)/**/*.+(ts|js|tsx|md)\" --write",
"save-configs": "bun \"src/app/regionen/[regionSlug]/_hooks/useQueryState/useCategoriesConfig/v2/saveConfigs.ts\" && prettier --write \"src/**/v2/configs/index.ts\" \"src/**/v2/configs/*.ts\"",
"test": "vitest watch",
"test:run": "vitest run --passWithNoTests",
"test:ui": "vitest --ui",
"coverage": "vitest run --coverage",
"check": "npm run type-check && npm run lint && npm run format && npm run test:run",
"MapboxStyles:update": "bun ./scripts/MapboxStyles/process.ts && npm run lint -- --fix && prettier \"src/app/regionen/[regionSlug]/_mapData/mapDataSubcategories/mapboxStyles\" --write && github",
"StaticDatasets:link": "ln -s ../../../../atlas-static-data/geojson scripts/StaticDatasets",
"StaticDatasets:update:help": "echo \"(i) Use --dry-run to test but not publish\n(i) Use --keep-tmp to inspect the processed files\n(i) Use --folder-filter=FOO to only upload folder/files with this term\"",
"StaticDatasets:update:dev": "bun --env-file=.env --env-file=./scripts/StaticDatasets/.env.development ./scripts/StaticDatasets/updateStaticDatasets.ts --folder-filter=",
"StaticDatasets:update:staging": "bun --env-file=.env --env-file=./scripts/StaticDatasets/.env.staging ./scripts/StaticDatasets/updateStaticDatasets.ts --folder-filter=",
"StaticDatasets:update:production": "bun --env-file=.env --env-file=./scripts/StaticDatasets/.env.production ./scripts/StaticDatasets/updateStaticDatasets.ts --folder-filter=",
"StaticDatasets:updateWfsSources": "bun --env-file=.env ./scripts/StaticDatasets/updateWfsSources.ts --folder-filter=",
"StaticDatasets:deleteAll:dev": "echo \"Reminder: We cannot use this on staging, production, see https://github.com/FixMyBerlin/private-issues/issues/2283\" && bun --env-file=.env --env-file=./scripts/StaticDatasets/.env.development ./scripts/StaticDatasets/deleteAllStaticDatasets.ts",
"RegionalMasks:update": "npm run RegionalMasks:update:createGeojson && npm run RegionalMasks:update:createPmtiles && npm run RegionalMasks:update:upload && github",
"RegionalMasks:update:createGeojson": "bun ./scripts/RegionalMasks/createGeojson.ts && prettier \"scripts/RegionalMasks/geojson/\" --write",
"RegionalMasks:update:createPmtiles": "bun ./scripts/RegionalMasks/createPmtiles.ts",
"RegionalMasks:update:upload": "bun ./scripts/RegionalMasks/upload.ts",
"MapboxTilesets:update": "bun ./scripts/MapboxTilesets/process.ts",
"MaprouletteCreate": "bun run --env-file=scripts/MaprouletteCreate/.env scripts/MaprouletteCreate/process.ts",
"MaprouletteRebuild": "bun run --env-file=scripts/MaprouletteCreate/.env scripts/MaprouletteRebuild/process.ts",
"Maproulette:help": "echo -e '\\033[0;32m Help: Use `npm run maproulette:process -- --filter FOOBAR` \\033[0m' && echo -e '\\033[0;32m Rebuild: Use `npm run maproulette:rebuild -- --filter FOOBAR` \\033[0m'",
"updatePackages:major": "npx taze major --includeLocked --write --exclude eslint,minimatch && npm run updatePackages:minor && npm install",
"updatePackages:minor": "npx taze minor --includeLocked --write && npm install",
"release": "gh pr create --base main --head develop --title \"Release $(date '+%Y-%m-%d')\" --body \"\"",
"prepare": "cd .. && husky app/.husky",
"postinstall": "patch-package"
},
"prisma": {
"schema": "db/schema.prisma"
},
"browserslist": [
"defaults",
"last 2 IE major versions",
"last 4 Edge major versions"
],
"dependencies": {
"@blitzjs/auth": "2.1.3",
"@blitzjs/next": "2.1.3",
"@blitzjs/rpc": "2.1.3",
"@headlessui/react": "2.1.10",
"@hookform/error-message": "2.0.1",
"@hookform/resolvers": "3.9.0",
"@json2csv/plainjs": "7.0.6",
"@mapbox/mapbox-gl-draw": "^1.4.3",
"@maptiler/geocoding-control": "2.1.6",
"@prisma/client": "5.21.1",
"@tanstack/react-query": "5.59.15",
"@turf/turf": "^7.1.0",
"adler-32": "1.3.1",
"ajv": "8.17.1",
"blitz": "2.1.3",
"date-fns": "4.1.0",
"dompurify": "^3.1.7",
"geojson": "0.5.0",
"immer": "10.1.1",
"js-cookie": "3.0.5",
"jsts": "2.11.3",
"jsurl2": "2.2.0",
"lodash": "4.17.21",
"maplibre-gl": "4.7.1",
"next": "14.2.16",
"next-auth": "4.24.8",
"nuqs": "1.20.0",
"pluralize": "8.0.0",
"pmtiles": "3.2.0",
"prisma": "5.21.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-hook-form": "7.53.1",
"react-intl": "^6.8.1",
"react-map-gl": "7.1.7",
"react-remark": "^2.1.0",
"secure-password": "4.0.0",
"server-only": "0.0.1",
"sharp": "0.33.5",
"slugify": "1.6.6",
"tailwind-merge": "2.5.4",
"tiny-invariant": "^1.3.3",
"use-resize-observer": "9.1.0",
"zod": "3.23.8",
"zustand": "^5.0.0"
},
"devDependencies": {
"@aws-sdk/client-s3": "3.677.0",
"@heroicons/react": "^2.1.5",
"@next/bundle-analyzer": "14.2.16",
"@next/env": "14.2.16",
"@tailwindcss/forms": "^0.5.9",
"@tailwindcss/typography": "^0.5.15",
"@testing-library/jest-dom": "6.6.2",
"@testing-library/react": "16.0.1",
"@testing-library/react-hooks": "8.0.1",
"@total-typescript/ts-reset": "0.6.1",
"@types/dompurify": "^3.0.5",
"@types/js-cookie": "3.0.6",
"@types/jsurl2": "^2.1.4",
"@types/lodash": "4.17.12",
"@types/mapbox__mapbox-gl-draw": "^1.4.8",
"@types/node": "18.19.59",
"@types/pako": "2.0.3",
"@types/preview-email": "3.0.4",
"@types/react": "18.3.12",
"@types/react-dom": "^18.3.1",
"@types/spritesmith": "3.4.5",
"@types/web": "0.0.172",
"@typescript-eslint/eslint-plugin": "8.11.0",
"@vitejs/plugin-react": "4.3.3",
"@vitest/ui": "2.1.3",
"autoprefixer": "^10.4.20",
"bun-types": "1.1.32",
"chalk": "^5.3.0",
"eslint": "8.57.1",
"eslint-config-next": "14.2.16",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react-compiler": "19.0.0-beta-df7b47d-20241124",
"husky": "9.1.6",
"jsdom": "25.0.1",
"minimatch": "9.0.5",
"pako": "2.1.0",
"papaparse": "5.4.1",
"parse-gitignore": "2.0.0",
"patch-package": "8.0.0",
"postcss": "^8.4.47",
"prettier": "3.3.3",
"prettier-plugin-organize-imports": "4.1.0",
"prettier-plugin-prisma": "5.0.0",
"prettier-plugin-tailwindcss": "0.6.8",
"preview-email": "3.1.0",
"spritesmith": "3.5.0",
"tailwindcss": "^3.4.14",
"typescript": "^5.6.3",
"use-changed-props": "0.1.0",
"vitest": "2.1.3"
}
}