tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject [6/6] git commit: Add a simple script for compiling CoffeeScript
Date Thu, 02 Aug 2012 16:56:48 GMT
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 <hlship@apache.org>
Authored: Thu Aug 2 08:37:47 2012 -0700
Committer: Howard M. Lewis Ship <hlship@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


Mime
View raw message