sveetch / boussole

Command line interface to build Sass projects using 'libsass-python'.
http://boussole.readthedocs.io
MIT License
10 stars 5 forks source link

Discovering and default settings backend filename #30

Closed sveetch closed 3 years ago

sveetch commented 6 years ago

Default filename for settings is currently settings.json, it is not enough since other software use a settings.* file, this may trouble user.

It would be nice that boussole search first for a boussole.json file then settings.json that will continue to be supported for ever.

tehfink commented 6 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!
sveetch commented 6 years ago

@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.

sveetch commented 3 years ago

Should be totally implemented as from 2.0.0 release