Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Organization of catalog.json

bryanwb edited this page Sep 13, 2010 · 13 revisions

This is a proposed structure for catalog.json

It roughly follows the schema


catalog_name, type, origin, packages[ 
    package_name : [ 
       [ installation_info_if_installed ],
       [ source_package_info ],
       [ package_metadata]  # this is the entire contents of the package's package.json file
  ]

Here is an example

 
{
    "name": "com.github.tlrobinson.narwhal",       
    "type": "sea",
    "origin": {
        "locate": "http://github.com/cadorn/narwhal/raw/master/catalog.json"
    },
    "packages": {
        "narwhal": [
            ["source", {
                "locate": "file://./",
                "package": "narwhal",
                "revision": "latest"
            }],
            ["latest", {
                "locate": "http://github.com/tlrobinson/narwhal/zipball/master/",
                "package": "narwhal",
                "revision": "master"
            }]
        ],
        "template": [
            ["source", {
                "locate": "git://github.com/gmosx/template.git",
                "package": "template",
                "revision": "master"
            }],
            ["latest", {
                "locate": "http://github.com/gmosx/template/zipball/master/",
                "package": "template",
                "revision": "master"
            }]
        ]
    }
}
Clone this wiki locally