Khanetor
Khanetor

Reputation: 12302

Sbt tasks with additional commands

In addition to my main Play app, I have webpack npm task to build my javascripts.

Is it possible to hook the sbt tasks so that it can run arbitrary unix command?

For example, when I run sbt run, I also want to invoke npm run watch, and

when I run sbt stage, I also want to invoke npm run build.

Upvotes: 1

Views: 61

Answers (1)

metasim
metasim

Reputation: 4960

See the Modifying an Existing Task section in the SBT docs on how to do that.

Upvotes: 3

Related Questions