Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alt conf format support #23

Open
danmindru opened this issue Aug 19, 2016 · 2 comments
Open

Alt conf format support #23

danmindru opened this issue Aug 19, 2016 · 2 comments

Comments

@danmindru
Copy link
Owner

danmindru commented Aug 19, 2016

JSON is not the best format for configs. In general it's a bit strict and it doesn't allow comments.

Could deprecate it in favor of YAML. Vanilla JS is also an option.

@danmindru danmindru changed the title YAML support Alt conf format support Jul 14, 2017
@paskainos
Copy link

@danmindru are you still considering this? If so, I could possibly commit some time to it if you could provide a little guidance / insight on exactly what you envision.

@danmindru
Copy link
Owner Author

Hi @paskainos, still think the JSON is a bit clunky.
I’m not too strict about it, just have a checklist of improvements in mind:

  • a file format with lighter syntax. JSON requires around properties, :, ,, etc; anything lighter is a win IMO
  • allows inline comments
  • can handle a single config object or an array of config objects (to match current JSON that can either take {} or [{},{}]
  • would be nice if multi-line strings are allowed as a bonus (thinking for those that write light HTML)

Any other ideas are welcome :)
Not sure if JSON should remain as a legacy format or not. I guess it wouldn’t hurt to keep it.
Thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants