Files
JustZoe101 883440b8be feat: CodeMirror 6 editor with in-editor search/replace
- bundle CodeMirror 6 (+ langs/search) via scripts/build-editor.mjs into a
  generated TS module (inlined into the WebView; no remote code, no asset
  pipeline)
- CodeEditor now renders CodeMirror 6 with line numbers, language modes and a
  search/replace panel exposed from a toolbar button
- npm run build:editor; language mapping by file extension
2026-10-09 19:08:38 +02:00

99 lines
3.3 KiB
JSON

{
"name": "gitea-native",
"main": "index.ts",
"version": "0.1.0",
"private": true,
"dependencies": {
"@expo/vector-icons": "^15.0.2",
"@react-native-async-storage/async-storage": "2.2.0",
"@react-navigation/bottom-tabs": "^7.20.0",
"@react-navigation/native": "^7.5.0",
"@react-navigation/native-stack": "^7.20.0",
"@shopify/flash-list": "2.0.2",
"@tanstack/query-async-storage-persister": "^5.104.1",
"@tanstack/react-query": "^5.104.1",
"@tanstack/react-query-persist-client": "^5.104.1",
"expo": "~57.0.27",
"expo-constants": "~57.0.21",
"expo-document-picker": "~57.0.3",
"expo-font": "~57.0.4",
"expo-haptics": "~57.0.3",
"expo-image": "~57.0.5",
"expo-linking": "~57.0.12",
"expo-local-authentication": "~57.0.3",
"expo-localization": "~57.0.2",
"expo-secure-store": "~57.0.4",
"expo-splash-screen": "~57.0.9",
"expo-status-bar": "~57.0.1",
"expo-symbols": "~57.0.3",
"expo-system-ui": "~57.0.4",
"expo-web-browser": "~57.0.3",
"i18next": "^26.4.2",
"intl-pluralrules": "^2.0.1",
"marked": "^18.1.0",
"react": "19.2.3",
"react-dom": "19.2.3",
"react-i18next": "^17.0.16",
"react-native": "0.86.3",
"react-native-gesture-handler": "~2.32.0",
"react-native-reanimated": "4.5.1",
"react-native-safe-area-context": "~5.7.0",
"react-native-screens": "~4.26.0",
"react-native-svg": "15.15.4",
"react-native-web": "~0.21.0",
"react-native-webview": "13.16.1",
"react-native-worklets": "0.10.1",
"zustand": "^5.0.15"
},
"devDependencies": {
"@codemirror/lang-cpp": "^6.0.3",
"@codemirror/lang-css": "^6.3.1",
"@codemirror/lang-go": "^6.0.1",
"@codemirror/lang-html": "^6.4.12",
"@codemirror/lang-java": "^6.0.2",
"@codemirror/lang-javascript": "^6.2.5",
"@codemirror/lang-json": "^6.0.2",
"@codemirror/lang-markdown": "^6.5.2",
"@codemirror/lang-php": "^6.0.2",
"@codemirror/lang-python": "^6.2.1",
"@codemirror/lang-rust": "^6.0.2",
"@codemirror/search": "^6.7.2",
"@testing-library/react-native": "^14.1.0",
"@types/jest": "^29.5.14",
"@types/react": "~19.2.2",
"codemirror": "^6.0.2",
"esbuild": "^0.28.2",
"eslint": "^9.39.5",
"eslint-config-expo": "~57.0.2",
"jest": "~29.7.0",
"jest-expo": "~57.0.5",
"prettier": "^3.9.9",
"typescript": "~6.0.3"
},
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"lint": "expo lint",
"typecheck": "tsc --noEmit",
"test": "jest",
"build:editor": "node scripts/build-editor.mjs",
"format": "prettier --write \"src/**/*.{ts,tsx}\" \"*.{md,json,js}\"",
"format:check": "prettier --check \"src/**/*.{ts,tsx}\" \"*.{md,json,js}\"",
"verify": "npm run typecheck && npm run lint && npm test"
},
"jest": {
"preset": "jest-expo",
"setupFilesAfterEnv": [
"<rootDir>/jest.setup.ts"
],
"moduleNameMapper": {
"^@/(.*)$": "<rootDir>/src/$1"
},
"transformIgnorePatterns": [
"node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@sentry/react-native|native-base|react-native-svg|@shopify/flash-list|marked)"
]
}
}