anli
anli

Reputation: 377

sbt: how to add fastOptJS to stage

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 mains, and this style permit to run multiple mains 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

Answers (2)

Muki
Muki

Reputation: 3641

You can also create a dependency.

stage := (stage dependsOn fullOptJs).value

This should execute fullOptJs for every stage call.

Upvotes: 3

anli
anli

Reputation: 377

Ugh, in fact it is very simple - just use

 ~ ;fastOptJS ;stage

in sbt session.

Upvotes: 1

Related Questions