diff --git a/build-js.sh b/build-js.sh index ab7940c..c24b0cb 100755 --- a/build-js.sh +++ b/build-js.sh @@ -85,7 +85,7 @@ done if [ "$neochan" == "yes" ] ; then set +e - for exe in lessc tsc ; do + for exe in lessc coffee ; do which $exe &> /dev/null if [ "$?" != "0" ] ; then echo "$exe not installed"; @@ -98,10 +98,10 @@ if [ "$neochan" == "yes" ] ; then echo initfile "$neochan_js_outfile" - - echo "compile typescript" - tsc ./contrib/js/neochan/*.ts - + for f in ./contrib/js/neochan/*.coffee ; do + echo "compile $f" + coffee -cs < "$f" > "$f.js" + done for f in ./contrib/js/neochan/*.js ; do mini "$f" "$neochan_js_outfile" done diff --git a/contrib/js/neochan/.gitignore b/contrib/js/neochan/.gitignore index 4c43fe6..5e8935c 100644 --- a/contrib/js/neochan/.gitignore +++ b/contrib/js/neochan/.gitignore @@ -1 +1 @@ -*.js \ No newline at end of file +*.coffee.js \ No newline at end of file diff --git a/contrib/js/neochan/postform.ts b/contrib/js/neochan/init.coffee similarity index 100% rename from contrib/js/neochan/postform.ts rename to contrib/js/neochan/init.coffee diff --git a/contrib/js/neochan/init.coffee.js b/contrib/js/neochan/init.coffee.js new file mode 100644 index 0000000..49caa98 --- /dev/null +++ b/contrib/js/neochan/init.coffee.js @@ -0,0 +1,5 @@ +// Generated by CoffeeScript 1.11.1 +(function() { + + +}).call(this); diff --git a/contrib/templates/neochan/postform.mustache b/contrib/templates/neochan/postform.mustache index aacee01..f135674 100644 --- a/contrib/templates/neochan/postform.mustache +++ b/contrib/templates/neochan/postform.mustache @@ -8,9 +8,9 @@ - files ( bool, do we allow attachments ? ) - csrf ( csrf token ) }} -