lihaoyi / workbench

Tooling around scala-js
234 stars 56 forks source link

* improvement: enable user to configure when workbench server should start #36

Closed torstenrudolf closed 6 years ago

torstenrudolf commented 7 years ago

Up to now the workbench web server started whenever sbt was started. This is particular annoying when having a multi-project setup. In order to work properly, one needs to start the frontend project first, before starting the backend, otherwise workbench won't work properly.

With this change, you can enable the workbench plugin only for the frontend project (which was possible previously, but didn't bring much, since the server still started anyway on sbt load), and have it only started when running sbt "~frontend/fastOptJS".

The three settings are:

ochrons commented 6 years ago

Hey, workbench got updated to SBT 1.0 and in the process this PR resulted in some (minor) conflicts. If you can resolve the conflicts, we can include this in the upcoming Workbench release. Thanks!

ochrons commented 6 years ago

I retargetted this to a different branch (for sbt 0.13 compatibility)

ochrons commented 6 years ago

Functionality merged into the sbt 1.0 version, too.

torstenrudolf commented 6 years ago

sweet, thanks otto!