-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
160 lines (160 loc) · 5.3 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
{
"name": "terraso-web-client",
"version": "0.1.0",
"private": true,
"sideEffects": [
"src/config.ts"
],
"dependencies": {
"@hookform/resolvers": "^3.3.4",
"@mapbox/mapbox-gl-draw": "^1.4.3",
"@mapbox/mapbox-gl-geocoder": "^5.0.2",
"@mui/icons-material": "^5.15.11",
"@mui/lab": "^5.0.0-alpha.166",
"@mui/material": "^5.15.11",
"@mui/x-data-grid": "^6.19.6",
"@reduxjs/toolkit": "^1.9.7",
"@sentry/cli": "^2.28.6",
"@sentry/react": "^7.103.0",
"@turf/bbox": "^6.5.0",
"@turf/center": "^6.5.0",
"@turf/helpers": "^6.5.0",
"canvg": "^4.0.1",
"filesize": "^10.1.0",
"get-video-id": "^4.1.5",
"i18next": "^23.10.0",
"i18next-browser-languagedetector": "^7.2.0",
"js-cookie": "^3.0.5",
"jwt-decode": "^4.0.0",
"lodash": "^4.17.21",
"mapbox-gl": "^3.1.2",
"notistack": "^3.0.1",
"path-browserify": "^1.0.1",
"query-string": "^7.1.3",
"react": "^18.2.0",
"react-avatar-editor": "^13.0.2",
"react-beautiful-dnd": "^13.1.1",
"react-dom": "^18.2.0",
"react-dropzone": "^14.2.3",
"react-error-boundary": "^4.0.12",
"react-helmet-async": "^2.0.4",
"react-highlight-words": "^0.20.0",
"react-hook-form": "^7.50.1",
"react-i18next": "^14.0.5",
"react-redux": "^8.1.3",
"react-router-dom": "^6.22.2",
"scrollama": "^3.2.0",
"slate-history": "^0.100.0",
"slate-hyperscript": "^0.100.0",
"slate-react": "^0.102.0",
"source-map-explorer": "^2.5.3",
"terraso-client-shared": "github:techmatters/terraso-client-shared#dc2e976",
"use-debounce": "^10.0.0",
"uuid": "^9.0.1",
"web-vitals": "^3.5.2",
"world-countries": "4.0.0",
"xlsx": "https://cdn.sheetjs.com/xlsx-0.18.10/xlsx-0.18.10.tgz",
"yup": "^1.3.3"
},
"overrides": {
"fork-ts-checker-webpack-plugin": "^6.5.3",
"typescript": "^5.1.6"
},
"scripts": {
"start": "npm run generate-types -- -w -s & react-scripts start",
"generate-types": "npx graphql-code-generator",
"lint-js": "eslint ./ --ext .js --ext .ts --ext .tsx --max-warnings 0 --ignore-path .gitignore",
"format-js": "npm run lint-js -- --fix",
"check-ts": "npm run generate-types && tsc --noEmit",
"lint-css": "stylelint --config=.stylelintrc '**/*.css'",
"format-css": "npm run lint-css -- --fix",
"check-modules": "depcheck",
"build": "npm run generate-types && react-scripts build",
"build-sentry": "npm run generate-types && react-scripts build && npm run sentry:sourcemaps",
"build-serve": "serve -s build",
"test": "npm run generate-types && react-scripts test",
"test-debug": "npm run generate-types && react-scripts --inspect-brk test --runInBand --no-cache",
"test-coverage": "npm run generate-types && react-scripts test --coverage --changedSince=origin/main --watchAll=falsed",
"analyze": "source-map-explorer 'build/static/js/*.js'",
"localization-to-po": "node scripts/localization/transform-to.mjs po",
"localization-to-json": "node scripts/localization/transform-to.mjs json",
"localization-check-missing": "node scripts/localization/missing-check.mjs",
"eject": "react-scripts eject",
"sentry:sourcemaps": "sentry-cli sourcemaps inject --org techmatters --project terraso-web-client ./build && sentry-cli sourcemaps upload --org techmatters --project terraso-web-client ./build"
},
"browserslist": [
">0.2%",
"not dead",
"not op_mini all"
],
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@graphql-codegen/cli": "^5.0.2",
"@graphql-codegen/client-preset": "^4.2.4",
"@ianvs/prettier-plugin-sort-imports": "^4.1.1",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
"@types/jest": "^29.5.12",
"@types/js-cookie": "^3.0.6",
"@types/react": "^18.2.60",
"@types/react-dom": "^18.2.19",
"@typescript-eslint/parser": "^7.1.1",
"depcheck": "^1.4.7",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-lodash-fp": "^2.2.0-a1",
"eslint-plugin-prettier": "^5.1.3",
"flat": "^6.0.1",
"i18next-conv": "^14.0.0",
"jest-axe": "^8.0.0",
"jest-when": "^3.6.0",
"plausible-tracker": "^0.3.8",
"prettier": "^3.2.5",
"react-scripts": "^5.0.1",
"serve": "^14.2.1",
"stylelint": "^16.2.1",
"stylelint-prettier": "^5.0.0"
},
"jest": {
"transform": {},
"collectCoverageFrom": [
"src/**/*.js",
"!src/terrasoBackend/*.js"
],
"coverageThreshold": {
"global": {
"branches": 80,
"functions": 80,
"lines": 80,
"statements": 80
}
}
},
"graphql": {
"schema": "node_modules/terraso-backend/terraso_backend/apps/graphql/schema/schema.graphql",
"documents": [
"src/**/*.{js,ts,tsx}",
"node_modules/terraso-client-shared/src/**/*Fragments.ts"
],
"extensions": {
"codegen": {
"generates": {
"src/terrasoApi/shared/graphqlSchema/": {
"preset": "client",
"config": {
"documentMode": "string",
"skipTypename": true,
"enumsAsTypes": true,
"dedupeFragments": true
},
"presetConfig": {
"fragmentMasking": false
}
}
}
}
}
},
"engines": {
"node": ">=18"
}
}