Reputation: 377
I have cross-project (JVM + JS) and also use sbt native packager. With clean JVM projects I have found handy to use ~stage
command on my development iterations.
The project contains plenty of main
s, and this style permit to run multiple main
s with script getting CLASSPATH from prepared stages on the separated terminals.
Now I'd want to add fastOptJS
command be also executed (inserted into, merged with, or what?) on the ~stage
triggering cycle.
How to?
Upvotes: 0
Views: 361
Reputation: 3641
You can also create a dependency.
stage := (stage dependsOn fullOptJs).value
This should execute fullOptJs for every stage call.
Upvotes: 3
Reputation: 377
Ugh, in fact it is very simple - just use
~ ;fastOptJS ;stage
in sbt session.
Upvotes: 1