diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-11-14 20:05:06 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-11-14 20:06:21 -0500 |
commit | 711269a7eb2e151512bcaf1afcf45b13540d8f8e (patch) | |
tree | 6129dd55bb8946f1d059b900e3c971ef1eb745a7 | |
parent | 9c4b8766cbdc2a4c63a03292b58cf35d981e1321 (diff) |
vendor codemirror
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | Makefile | 9 | ||||
m--------- | static/codemirror | 0 |
3 files changed, 11 insertions, 1 deletions
diff --git a/.gitmodules b/.gitmodules index 0ab69ea..fea77d9 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,3 +7,6 @@ [submodule "static/font-awesome"] path = static/font-awesome url = https://github.com/FortAwesome/Font-Awesome +[submodule "static/codemirror"] + path = static/codemirror + url = https://github.com/codemirror/CodeMirror @@ -1,3 +1,10 @@ -all: +all: bin/edit +all: static/codemirror/lib/codemirror.js + +bin/edit: FORCE GOPATH=$$PWD go install edit +static/codemirror/lib/codemirror.js: static/codemirror/rollup.config.js $(shell find static/codemirror/src -name '*.js') + cd static/codemirror && npm install && npm run build && rm -rf node_modules + +.PHONY: FORCE diff --git a/static/codemirror b/static/codemirror new file mode 160000 +Subproject d221bf5d15680e06528e1558c014d178c4bc740 |