mirror of
https://github.com/fergalmoran/onearmy-community-platform.git
synced 2025-12-22 01:30:48 +00:00
* chore: upgrade react-dropzone to latest * feat: add basic image validation checks * feat: remove unused image input properties * feat: add compression to image input component * chore: remove unused compressor plugin from file input component * fix: remove on img clicked property from image converter list * test: add feature test --------- Co-authored-by: Ben Furber <ben.furber@googlemail.com>
197 lines
7.2 KiB
JSON
197 lines
7.2 KiB
JSON
{
|
|
"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 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 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:platform": "yarn build:shared && vite",
|
|
"start:platform:for-emulated-backend": "yarn build:shared && vite --port 4000",
|
|
"start:platform-ci": "yarn build:shared && vite --port 3456",
|
|
"start:shared": "yarn workspace oa-shared dev",
|
|
"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 && vite build",
|
|
"build:post": "yarn workspace oa-scripts post-build",
|
|
"build:inject-config": "yarn build:post",
|
|
"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:commits": " npx commitlint --from=$(git merge-base master HEAD) --verbose",
|
|
"lint:code": "eslint . --ext .js,.jsx,.ts,.tsx src --color",
|
|
"lint:spell": "cspell \"**/*.md\" --config ./.cspell.json",
|
|
"lint:style": "prettier --check '**/*.{md,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 '**/*.{md,json,js,tsx,ts}'",
|
|
"serve": "npx serve -s build",
|
|
"test": "yarn workspace oa-cypress start",
|
|
"test: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"
|
|
},
|
|
"config": {
|
|
"commitizen": {
|
|
"path": "@commitlint/cz-commitlint"
|
|
}
|
|
},
|
|
"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/styled": "^11.11.5",
|
|
"@sentry/react": "7.56.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",
|
|
"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",
|
|
"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": "^14.2.3",
|
|
"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.24.1",
|
|
"rxjs": "^7.8.1",
|
|
"theme-ui": "^0.16.2",
|
|
"tslog": "^4.9.2",
|
|
"yup": "^1.3.2"
|
|
},
|
|
"devDependencies": {
|
|
"@commitlint/cli": "^19.3.0",
|
|
"@commitlint/config-conventional": "^19.2.2",
|
|
"@commitlint/cz-commitlint": "^19.2.0",
|
|
"@emotion/babel-plugin": "^11.11.0",
|
|
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
|
|
"@faker-js/faker": "^8.4.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",
|
|
"commitizen": "^4.2.4",
|
|
"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": "yarn@3.6.4"
|
|
}
|