summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-11-14 20:05:06 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-11-14 20:06:21 -0500
commit711269a7eb2e151512bcaf1afcf45b13540d8f8e (patch)
tree6129dd55bb8946f1d059b900e3c971ef1eb745a7
parent9c4b8766cbdc2a4c63a03292b58cf35d981e1321 (diff)
vendor codemirror
-rw-r--r--.gitmodules3
-rw-r--r--Makefile9
m---------static/codemirror0
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
diff --git a/Makefile b/Makefile
index 0ec6d38..ddfa81c 100644
--- a/Makefile
+++ b/Makefile
@@ -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