From acca81076a39299e23b4908fe71683d018afe0c9 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Tue, 17 May 2016 13:27:54 -0400 Subject: [PATCH] todomvc: compile Syndicate DSL ahead of time --- js/examples/todo/.gitignore | 1 + js/examples/todo/Makefile | 7 +++++++ js/examples/todo/index.html | 5 ++--- 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 js/examples/todo/.gitignore create mode 100644 js/examples/todo/Makefile diff --git a/js/examples/todo/.gitignore b/js/examples/todo/.gitignore new file mode 100644 index 0000000..62138e5 --- /dev/null +++ b/js/examples/todo/.gitignore @@ -0,0 +1 @@ +*.expanded.js diff --git a/js/examples/todo/Makefile b/js/examples/todo/Makefile new file mode 100644 index 0000000..6b0a114 --- /dev/null +++ b/js/examples/todo/Makefile @@ -0,0 +1,7 @@ +all: index.expanded.js + +%.expanded.js: %.js + ../../bin/syndicatec $< > $@ || (rm -f $@; false) + +clean: + rm -f *.expanded.js diff --git a/js/examples/todo/index.html b/js/examples/todo/index.html index a32df86..4601c61 100644 --- a/js/examples/todo/index.html +++ b/js/examples/todo/index.html @@ -9,9 +9,7 @@ - - - +
@@ -60,5 +58,6 @@

Created by Tony Garnock-Jones and Sam Caldwell

Part of TodoMVC

+