blob: 4af28e2fa2cb83a9c048a3969999bd740b060364 [file] [log] [blame]
#!/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.
# Should be executed from the tapestry-core folder.
# Doe NOT compile the test scripts.
inputDir=src/main/coffeescript/META-INF/modules
outputDir=build/generated-sources/compiled-coffeescript/META-INF/modules
# Because all of these 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