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

Live transpiling #243

Open
turutosiya opened this issue Mar 10, 2021 · 4 comments
Open

Live transpiling #243

turutosiya opened this issue Mar 10, 2021 · 4 comments
Labels
question Further information is requested

Comments

@turutosiya
Copy link

Hi.

I'm implementing custom validation rules.

It takes time to run :

$ mvn clean package -Ptranspilation

Is there any option to transpile lively along with editing original .java files?

@EricWittmann
Copy link
Member

We don't have a live transpilation option at the moment, because our typical development workflow is to do everything in Java (using a standard Java toolchain/IDE) first. This lets us write code and test that code using JUnit as the iterative development process. Once we're happy with the code, then we can make sure it also works when transpiled using the maven build.

So typically we write code in e.g. Eclipse or Intellij. And we run the tests using JUnit, also typically in the IDE. This allows debugging and fast iterations. Then verify transpilation at the end.

@EricWittmann
Copy link
Member

That said, I'm not opposed to a live transpilation feature of some kind. So if you wanted to contribute something like that, that sounds very cool. :)

@EricWittmann EricWittmann added the question Further information is requested label Mar 10, 2021
@turutosiya
Copy link
Author

Thanks! I understood.

I realized that jsweet-maven-plugin is ready for Hot Transpilation :

$ mvn jsweet:watch

https://github.com/lgrignon/jsweet-maven-plugin#hot-transpilation

I'll try this.

@EricWittmann
Copy link
Member

Awesome - if you can configure something that works well for you, I would love to add it to the documentation/readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants