sproutcore / build-tools

SproutCore Build Tools
12 stars 7 forks source link

Adds a --config-file option #71

Closed nicolasbadia closed 7 years ago

nicolasbadia commented 7 years ago

This is useful to have several instance of SC running on different ports.

mauritslamers commented 7 years ago

Not that I disagree with this PR (because I don't) but what is the difference between being able to give a certain project config file as command line parameter or going to that project and run the BT there?

nicolasbadia commented 7 years ago

In my case, I have all my apps and frameworks in the same project, and the sc_config to run the tests needs to be different than my config for my app. So I created 2 differents config which allows me to run together my app and the tests from the same project in 2 differents BT instances. Moreover, now that I just added support for absolute path, you can even set the BT.projectPath in the config file and run sproutcore-serve from any directory as long as you specify the correct config path.

mauritslamers commented 7 years ago

Thanks for the clear use case!