How to specify intra-asset dependency in sbt-web?

87 views Asked by At

I have developed an sbt-web plugin for Elm language for which I used as inspiration sbt-stylus plugin from this tutorial.

The usage is the following: In assets/elm directory one can put an Elm project: i.e., *.elm files and elm-packages.json. The plugin will only compile Main.elm if it exists, and generate a Main.js. elm-make makes sure to recursively compile only the modules that are imported by Main.elm.

The problem I have is that if I modify one of the modules imported by Main.elm, a new compilation of Main.elm does not get triggered by sbt. Could anyone tell me how to specify the other *.elm files as dependencies of Main.elm in order to trigger the compilation?

Note that I do not want to do something like:

elm-make *.elm --output=Main.js

Thanks!

0

There are 0 answers