I've recently started on a new google app engine project that uses RestEasy for MVC and Gradle for our build process. Now I'm at a point where I want to include SASS, javascript, and closure template files but I'm unsure about how I should do this. Ideally I'd like to satisfy the following requirements:
- The files should live in their own source directory. eg src/main/javascript, src/main/sass.
- When deploying, the javascript files should be minified.
- When developing, the closure templates and sass files should be watched for changes and hot-swapped into the running environment.
- The closure templates should be accessible by the client and server. (That way rendering can happen on either end)
What do you think is the best way to accomplish all of this? Thanks for your time.