I have just added support for json5. This makes config more flexible f.e. no 
need for quotes for keys or comments ...

And you are right, this mess does exists just because 
http://wiki.commonjs.org/wiki/Packages/1.0 missed to specify how package 
manager specific declarations can be done.

Commonjs should solve this, all the managers will implement it very quickly, as 
its not hard.

Best,
Oleg


>  
> 04.02.2014, 17:01, "Oleg Slobodskoi" <[email protected]>:
>> Am 04.02.2014 um 13:46 schrieb Alex Kocharin <[email protected]>:
>> 
>>>  
>>> 1. Why JSON? This format was created for data serialization, and isn't 
>>> suited for maintaining by humans.
>>  
>> We could support cjson (https://github.com/kof/node-cjson) or yml ... but I 
>> am not sure that json is an issue here. I personally had never a need to use 
>> something more expressive in this case, but I am open for it.
>  
> YAML of course. It's the most sensible general purpose format used for config 
> files (unless your tool is able to change that config on the fly in which 
> case the issue starts to be complicated).
>  
>> 
>>> 2. Isn't it better to create a format every package manager would be 
>>> capable of using natively? And compile out of it only as a temporary 
>>> measure.
>>  
>> If you are about json vs. yml etc.  ... I don't think package managers want 
>> to support all of them ...
>>  
>  
> There were ideas about just one file with common definitions (something very 
> much like Dart's one - http://pub.dartlang.org/doc/pubspec.html ), but it's 
> extended so you can override any setting per package manager. Something like 
> this:
>  
> ---
> # all package managers would see that name of a package is foobar ...
> name: foobar
> npm:
>   # ... but npm would see it as node-foobar
>   name: node-foobar
> ---
>  
> So you can override any setting this way.
>  
> Basically, it's a similar idea, but it's designed to be consumed by package 
> managers, not intermediate tools.
>  
> The issue with one file per package manager is that you have multiple 
> autogenerated files in the root of your git repository. And this really needs 
> to be solved.
>  
> On the other hand the question is how to convince all (at least most of) 
> package managers to switch to unified format... Anyway, I don't have a good 
> solution to this. If I was, I'd be implementing one right now.
>  
>  



>>  
>>  
>>>  
>>>  
>>> 04.02.2014, 16:31, "Oleg Slobodskoi" <[email protected]>:
>>>> A you tired from writing separate .json files for every package manager?
>>>>  
>>>> Now you can write just one x-package.json file and generate from it files 
>>>> for any package manager. Every existing or upcoming manager is already 
>>>> supported. Also manager specific declarations are supported.
>>>>  
>>>> https://github.com/kof/node-xpkg
>>>>  
>>>> Best,
>>>> Oleg Slobodskoi
>>>> @oleg008
>>>>  
>>>>  
>>>>  
>>>> -- 
>>>> -- 
>>>> Job Board: http://jobs.nodejs.org/
>>>> Posting guidelines: 
>>>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>>>> You received this message because you are subscribed to the Google
>>>> Groups "nodejs" group.
>>>> To post to this group, send email to [email protected]
>>>> To unsubscribe from this group, send email to
>>>> [email protected]
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>>>  
>>>> --- 
>>>> You received this message because you are subscribed to the Google Groups 
>>>> "nodejs" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>>> email to [email protected].
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>  
>>> -- 
>>> -- 
>>> Job Board: http://jobs.nodejs.org/
>>> Posting guidelines: 
>>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>>> You received this message because you are subscribed to the Google
>>> Groups "nodejs" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>>  
>>> --- 
>>> You received this message because you are subscribed to the Google Groups 
>>> "nodejs" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>> email to [email protected].
>>> For more options, visit https://groups.google.com/groups/opt_out.
>> 
>>  
>> -- 
>> -- 
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines: 
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>  
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "nodejs" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
> 
> -- 
> -- 
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to