File tree 2 files changed +20
-3
lines changed
2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 1
- // in the bull/third_party/codemirror directory:
1
+ // To re-generate the CodeMirror editor JavaScript bundle with the currently
2
+ // used versions, run regenerate.sh.
2
3
//
3
- // npm install codemirror
4
- // npm install codemirror/lang-markdown
4
+ // To update to a new CodeMirror version, run:
5
+ //
6
+ // (cd third_party/codemirror && npm install codemirror)
7
+ // (cd third_party/codemirror && npm install codemirror/lang-markdown)
5
8
6
9
import { EditorView } from "codemirror"
7
10
import { markdown } from "@codemirror/lang-markdown"
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
+ if [ ! -d " third_party/codemirror/node_modules" ]
4
+ then
5
+ echo " Cannot re-generate CodeMirror JavaScript bundle:" >&2
6
+ echo " " >&2
7
+ echo " No node_modules directory found in third_party/codemirror!" >&2
8
+ echo " " >&2
9
+ echo " To install the CodeMirror editor and dependencies into third_party," >&2
10
+ echo " install the npm JavaScript package manager and run:" >&2
11
+ echo " " >&2
12
+ echo " (cd third_party/codemirror && npm install)" >&2
13
+ echo " " >&2
14
+ exit 2
15
+ fi
16
+
3
17
export NODE_PATH=$PWD /third_party/codemirror/node_modules
4
18
go tool esbuild \
5
19
internal/codemirror/bull-codemirror.ts \
You can’t perform that action at this time.
0 commit comments