You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior:
A JSON file is used as config for the aurelia-cli
What is the expected behavior?
A pleasant config editing experience
What is the motivation / use case for changing the behavior?
Being happy!
Currently bundle configuration goes into aurelia.json. It's very common one has to edit this file manually.
The problem with using JSON for such a config, with a bunch of settings that are non-obvious, is that JSON does not support any type of comments.
In many other config formats it's common to have comments explaining the different settings. Also it's at times extremely useful to be able to comment on "hacks" that had to be done for some random dependency.
JSON is a subset of YAML. So how about using YAML of this config instead, to make the editing experience a bit more pleasurable?
I guess one issue will be the tools that automatically edit this file and add dependencies when running au install. But from my experience, that never works properly anyway? #530
I would rather have a nice useful help text in the config file that explains where to add what. Thoughts?
The text was updated successfully, but these errors were encountered:
I would love this. It would be easy to implement using js-yaml from NPM. Perhaps a question in au new? Or just make the user add it. "You can use aurelia.yaml instead of aurelia.json, but you have to manually npm install -D js-yaml." Or have the CLI automatically install js-yaml if it detects a YAML config.
Technically, you don't actually need any conditional logic, if you're willing to add js-yaml to the CLI's dependencies. YAML is a strict superset of JSON, so any valid JSON is also valid YAML.
I'm submitting a feature request
aurelia
Current behavior:
A JSON file is used as config for the aurelia-cli
What is the expected behavior?
A pleasant config editing experience
What is the motivation / use case for changing the behavior?
Being happy!
Currently bundle configuration goes into
aurelia.json
. It's very common one has to edit this file manually.The problem with using JSON for such a config, with a bunch of settings that are non-obvious, is that JSON does not support any type of comments.
In many other config formats it's common to have comments explaining the different settings. Also it's at times extremely useful to be able to comment on "hacks" that had to be done for some random dependency.
JSON is a subset of YAML. So how about using YAML of this config instead, to make the editing experience a bit more pleasurable?
I guess one issue will be the tools that automatically edit this file and add dependencies when running
au install
. But from my experience, that never works properly anyway? #530I would rather have a nice useful help text in the config file that explains where to add what. Thoughts?
The text was updated successfully, but these errors were encountered: