-
-
Notifications
You must be signed in to change notification settings - Fork 389
/
package.json
196 lines (196 loc) · 7.26 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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
{
"name": "one-army-community-platform",
"repository": {
"type": "git",
"url": "https://github.com/ONEARMY/community-platform.git"
},
"workspaces": [
"functions",
"shared",
"packages/*",
"scripts"
],
"private": true,
"main": "lib/index.js",
"type": "module",
"scripts": {
"start": "concurrently --kill-others --names shared,themes,components,platform --prefix-colors cyan,blue,magenta \"yarn start:shared\" \"yarn start:themes\" \"yarn start:components\" \"yarn start:platform\"",
"start-ci": "concurrently --kill-others --names shared,themes,components,platform --prefix-colors cyan,blue,magenta \"yarn start:themes\" \"yarn start:components\" \"yarn start:platform-ci\"",
"start:themes": "yarn workspace oa-themes dev",
"start:components": "yarn workspace oa-components dev",
"start:shared": "yarn workspace oa-shared dev",
"start:platform": "yarn build:shared && node ./server.js",
"start:platform:for-emulated-backend": "yarn build:shared && vite --port 4000",
"start:platform-ci": "yarn build:shared && cross-env NODE_ENV=production node ./server.js",
"frontend:for-emulated-backend:watch": "concurrently --kill-others --names themes,components,platform --prefix-colors yellow,cyan,blue,magenta \"yarn start:themes\" \"yarn start:components\" \"yarn start:platform:for-emulated-backend\"",
"backend:emulator:watch": "docker-compose up --force-recreate --build",
"build:themes": "yarn workspace oa-themes build",
"build:components": "yarn workspace oa-components build",
"build:vite": "tsc && remix vite:build",
"build:shared": "yarn workspace oa-shared build",
"build": "yarn build:shared && yarn build:themes && yarn build:components && yarn build:vite",
"lint": "yarn lint:style && yarn lint:code",
"lint:code": "eslint . --ext .js,.jsx,.ts,.tsx src --color",
"lint:spell": "cspell \"**/*.md\" --config ./.cspell.json",
"lint:style": "prettier --check '**/*.{json,js,tsx,ts}'",
"format": "yarn format:code && yarn format:style",
"format:code": "eslint . --ext .js,.jsx,.ts,.tsx src --color --fix",
"format:style": "prettier --write '**/*.{json,js,tsx,ts}'",
"serve": "npx serve -s build",
"test": "yarn workspace oa-cypress start",
"test:components": "yarn build:themes && yarn build:components && yarn workspace oa-components test",
"test:unit": "yarn build:themes && yarn build:components && vitest",
"test:madge": "npx madge --circular --extensions ts,tsx ./ --exclude src/stores",
"storybook": "yarn workspace oa-components start",
"__note_build-storybook": "build-storybook is needed for the CI",
"build-storybook": "yarn build:themes && yarn workspace oa-components chromatic",
"storybook:build": "yarn build:shared && yarn build:themes && yarn workspace oa-components build:sb",
"docs": "yarn workspace oa-docs start",
"install:clean": "yarn workspace oa-scripts install:clean",
"postinstall": "husky install",
"commit": "git-cz"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"resolutions": {
"__note1__": "Pin react version consistently in all child workspaces",
"react": "18.3.1",
"@types/react": "18.3.3"
},
"dependencies": {
"@emotion/react": "^11.11.4",
"@emotion/server": "^11.11.0",
"@emotion/styled": "^11.11.5",
"@remix-run/express": "^2.12.1",
"@remix-run/node": "^2.12.1",
"@remix-run/react": "^2.12.1",
"@sentry/react": "7.56.0",
"@sentry/remix": "^8.26.0",
"@uppy/compressor": "^1.1.4",
"@uppy/core": "^3.11.3",
"@uppy/dashboard": "^3.8.3",
"@uppy/drag-drop": "^3.1.0",
"@uppy/file-input": "^3.1.2",
"@uppy/progress-bar": "^3.1.1",
"@uppy/react": "^3.3.1",
"compression": "^1.7.4",
"compressorjs": "^1.2.1",
"countries-list": "^2.6.1",
"date-fns": "^3.3.0",
"debounce": "^1.2.0",
"dexie": "^3.2.4",
"dotenv": "^10.0.0",
"final-form": "4.20.2",
"final-form-arrays": "^3.0.2",
"final-form-calculate": "^1.3.2",
"firebase": "10.6.0",
"framer-motion": "^11.2.10",
"fs-extra": "^10.0.0",
"fuse.js": "^6.4.6",
"helmet": "^7.1.0",
"isbot": "^5.1.13",
"keyv": "^5.1.2",
"leaflet": "^1.5.1",
"leaflet.markercluster": "^1.4.1",
"mobx": "6.9.0",
"mobx-react": "7.6.0",
"oa-components": "workspace:*",
"oa-shared": "workspace:*",
"oa-themes": "workspace:*",
"react": "18.3.1",
"react-country-flag": "^3.1.0",
"react-dom": "18.3.1",
"react-dropzone-esm": "^15.0.1",
"react-final-form": "6.5.3",
"react-final-form-arrays": "^3.1.3",
"react-foco": "^1.3.1",
"react-ga4": "^1.4.1",
"react-highlight-words": "^0.20.0",
"react-leaflet": "^2.5.0",
"react-leaflet-markercluster": "^2.0.0-rc3",
"react-router": "^6.24.1",
"react-router-dom": "^6.26.0",
"remix-utils": "^7.6.0",
"rxjs": "^7.8.1",
"theme-ui": "^0.16.2",
"tslog": "^4.9.2",
"yup": "^1.3.2"
},
"devDependencies": {
"@emotion/babel-plugin": "^11.11.0",
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
"@faker-js/faker": "^8.4.1",
"@remix-run/dev": "^2.12.1",
"@remix-run/testing": "^2.12.1",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@testing-library/jest-dom": "^6.4.6",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.4.3",
"@types/browser-image-compression": "^1.0.9",
"@types/flux-standard-action": "1.1.0",
"@types/node": "^20.8.0",
"@types/pubsub-js": "^1.5.18",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@types/react-leaflet": "^1.1.6",
"@types/react-leaflet-markercluster": "^2.0.0",
"@types/react-select": "^2.0.17",
"@typescript-eslint/eslint-plugin": "^7.13.0",
"@typescript-eslint/parser": "^7.13.0",
"@vitejs/plugin-react": "^4.3.0",
"@vitest/coverage-v8": "^1.6.0",
"all-contributors-cli": "^6.20.0",
"chai-subset": "^1.6.0",
"concurrently": "^6.2.0",
"cross-env": "^7.0.3",
"cspell": "^6.1.0",
"env-cmd": "^10.1.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-cypress": "^3.3.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prefer-arrow-functions": "^3.3.2",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.2",
"eslint-plugin-simple-import-sort": "^12.1.0",
"eslint-plugin-sort-class-members": "^1.20.0",
"eslint-plugin-unicorn": "^53.0.0",
"eslint-plugin-vitest": "^0.5.4",
"husky": "^9.0.11",
"idb": "^8.0.0",
"lint-staged": "^15.2.7",
"mobx-react-devtools": "^6.1.1",
"prettier": "3.3.2",
"react-dev-utils": "^12.0.1",
"resize-observer-polyfill": "^1.5.1",
"ts-node": "^10.9.2",
"typescript": "^5.1.6",
"vite": "^5.2.12",
"vite-plugin-env-compatible": "^2.0.1",
"vite-plugin-svgr": "^4.2.0",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^1.6.0"
},
"dependenciesMeta": {
"cypress": {
"built": true
}
},
"engines": {
"npm": "please-use-yarn",
"node": ">=20"
},
"packageManager": "[email protected]"
}