You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2012/08/02 18:56:48 UTC

[6/6] git commit: Add a simple script for compiling CoffeeScript

Add a simple script for compiling CoffeeScript


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/b9097e75
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/b9097e75
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/b9097e75

Branch: refs/heads/5.4-js-rewrite
Commit: b9097e75aad8688b5db8e0776adb6476bd434e21
Parents: 9dc4943
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Thu Aug 2 08:37:47 2012 -0700
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Thu Aug 2 08:37:47 2012 -0700

----------------------------------------------------------------------
 tapestry-core/compile-coffeescript |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/b9097e75/tapestry-core/compile-coffeescript
----------------------------------------------------------------------
diff --git a/tapestry-core/compile-coffeescript b/tapestry-core/compile-coffeescript
new file mode 100755
index 0000000..2e2546c
--- /dev/null
+++ b/tapestry-core/compile-coffeescript
@@ -0,0 +1,11 @@
+#!/bin/sh
+# This is handy when developing as the Gradle build can be very slow.
+# Starts coffee in --watch mode, so it will keep compiling files on change.
+# Expects coffee to be on the path.
+
+inputdir=src/main/coffeescript/META-INF/modules
+outputDir=build/generated-sources/compiled-coffeescript/META-INF/modules
+
+# Because all generated CoffeeScript are AMD modules, they don't need a hygenic function wrapper,
+# so we can use --bare
+coffee --watch --bare --output $outputDir/core $inputDir/core/*.coffee
\ No newline at end of file