Closed notslang closed 10 years ago
Any particular reason for this?
CSON is pretty and easier to write than JSON? This isn't really an important issue, it's just something that I'm planning on adding cause it's a simple & useful feature.
We don't use json right now though...
Actually that was part of the switch to jsonschema for validation. I'll add YAML back if people want it, but for now JSON is much easier to work with.
Definitely would rather have yaml for a config file than json. You can just parse the yaml into json anyway :grinning:
cool, I'll add YAML too
I like CSON / YAML / js with a module.exports pattern / JSON
We don't need module.exports
for a shipfile config. I feel like if you are trying to execute js in a shipfile you are doing it so wrong that it shouldn't even be allowed. This is not like app.coffee
in roots, this is purely config.
config can be dynamic tho depending on ENV ... I think that is super valuable
We have different shipfiles for different environments
There's also a JS API for any other fancy programmatic stuff someone might want to do - this is strictly for configuration for the CLI
:+1:
this has been talked about a tiny bit before as well https://github.com/jenius/roots/search?q=CSON&ref=cmdform&type=Issues