Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way to pre-compile resources during compile time #66

Open
jochenberger opened this issue Jan 13, 2017 · 2 comments
Open

Provide a way to pre-compile resources during compile time #66

jochenberger opened this issue Jan 13, 2017 · 2 comments

Comments

@jochenberger
Copy link
Contributor

To speed things up in production, it is often desirable to to the transformation step during compile time. In some of my projects, I use the Gradle Node Plugin (https://github.com/srs/gradle-node-plugin) and add a custom task that transforms the files and packages the results inside the jar/war task.
I'd like this library to provide some utility code to perform the transformation from outside of a Tapestry webapp.

jochenberger added a commit that referenced this issue Feb 16, 2017
add a standalone compiler utility class (fixes #66)
@jochenberger
Copy link
Contributor Author

Using the Reader or standalone compiler classes is not really an option if you have a large number of files. The compiler implementations are just too slow in single-file mode. Maybe they can be changed to compile multiple files at once, maybe that'll be faster.

@jochenberger jochenberger reopened this Feb 16, 2017
@jochenberger
Copy link
Contributor Author

See https://gist.github.com/jochenberger/9c61fbbb1db5d935ee35ed65e15ba1aa. We'll probably want to make that into a Gradle plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant