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
This commit is contained in:
1 parent
a104d65978
commit
883440b8be
8 files changed
+1164
-110
No files matched your search
@@ -46,9 +46,23 @@
|
||||
"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",
|
||||
@@ -64,6 +78,7 @@
|
||||
"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"
|
||||
|
||||
Reference in new issue
Block a user