Closed samzilverberg closed 10 years ago
I am not sure if this is possible as the sbt settings won't be available in the application at runtime. We probably should devise some other way of configuring this, in Globals perhaps?
Anyone has any ideas on this, please chime in!
I thought of a couple of ways, but sadly none can reuse the settings defined for sbt.
I guess it could be ok to have different settings for sbt and for the app yeoman related stuff. One configuration is for the build process (and sbt console) and the other is for the runtime and assets. They don't necessarily have to be the same. Actually in my project they are not exactly the same. The grunfile is in the yeomanDir sbt settings at "/frontend" but my assets are in a subdir "/frontend/public".
what do you think?
By the way I ended up doing something like 3. I copied the Yeoman controller code and made the changes needed so it would work for my project which has a different project structure.
Will it help if we make it configurable in conf/application.conf?
yeah sure.
+1 on this because we don't use yo and our boilerplate has different directory names
+1
Base dir is hard-coded to "ui". Other sub dirs too: "dist", ".tmp", "app". would be better if it used the "yeomanDirectory" sbt setting for the base dir and perhaps have more sbt setting to override the sub dirs (especially for dist)