index.js is simply require('./app');, and the GorillaScript files are compiled one-to-one from src to app. Currently to accomplish something like make continuously from the projet root directory, the command is cd src; gorilla -cwo ../app/ *.gs. This has two disadvantages as I see it:
The cd src is necessary rather than watching src/*.gs because the latter will result in the scripts being output to app/src/ rather than app/.
The target selection is not "smart" in that I must specify *.gs. This means that, for example, models stored in src/models/ would require another separate compiler command.
I would like to be able to write (executing from the project root) gorilla -cwo app src. The compiler would then recursively look for all of the GorillaScript source files underneath src/ and output them underneath app/ with the same folder structure.
Imagine I have a folder structure something like this:
index.js
is simplyrequire('./app');
, and the GorillaScript files are compiled one-to-one fromsrc
toapp
. Currently to accomplish something likemake continuously
from the projet root directory, the command iscd src; gorilla -cwo ../app/ *.gs
. This has two disadvantages as I see it:cd src
is necessary rather than watchingsrc/*.gs
because the latter will result in the scripts being output toapp/src/
rather thanapp/
.*.gs
. This means that, for example, models stored insrc/models/
would require another separate compiler command.I would like to be able to write (executing from the project root)
gorilla -cwo app src
. The compiler would then recursively look for all of the GorillaScript source files underneathsrc/
and output them underneathapp/
with the same folder structure.