Closed sveetch closed 3 years ago
It would also be nice if boussole could automatically determine the backend from the boussole.xxx
configuration file's format. This doesn't work as expected:
$ boussole startproject --backend yaml
Project base directory [.]:
Sources directory [scss]: sass
Target directory [css]: compiled
15:29:58 - Project directory structure and configuration file have been created.
15:29:58 - Now you should start to create some Sass sources into '/Users/tehfink/…/my_project/static/css/sass', then compile them using:
15:29:58 - boussole compile --config=/Users/tehfink/…/my_project/static/css/settings.yml
$ boussole -v 5 compile
15:30:09 - Building project
15:30:09 - Unable to find settings file: /Users/tehfink/…/my_project/static/css/settings.json
Aborted!
$ boussole -v 5 compile --config=settings.yml
15:30:26 - Building project
15:30:26 - No JSON object could be decoded from file: /Users/tehfink/…/my_project/static/css/settings.yml
Aborted!
@tehfink sure it would be, i didn't do it because i felt automatic guess would bring some "magic", but think it again, i may have changed my mind.
I will definitively think about it again when i will have some time for this issue.
Should be totally implemented as from 2.0.0 release
Default filename for settings is currently
settings.json
, it is not enough since other software use asettings.*
file, this may trouble user.It would be nice that boussole search first for a
boussole.json
file thensettings.json
that will continue to be supported for ever.