cdnjs/website — Issue #1: packages.json is missing, breaks `cdnjs-command`
Author: audionerd
Created: 2011-12-29 18:27:35+00:00
State: open

The flat JSON data manifest that used to exist here:

http://cdnjs.com/packages.json

Has been removed, which breaks compatibility with tools like cndjs-command:

https://github.com/rstacruz/cdnjs-command/blob/master/lib/cdnjs_command/package.rb

The only manifest on the site now is `packages.js`, but that file now has an added JavaScript variable assignment, and so it can't be parsed as JSON without some string manipulation.

Does the JS file need to be available to cross-domain requests? If not, I'd recommend that packages.json be returned, and a more simple method be used to pull the JSON data into cdnjs.com

If it does need to be available to cross-domain requests, I'd still suggest that packages.json be available, but use Jekyll to wrap it automatically in a callback for JSON-P as a generated `packages.js`