Matthew Phillips 2ab8f03ee8 Updated to restrict files included.
Also moved the spot in the registry to keep it alphabetical.
2013-12-28 14:07:18 -05:00
2013-11-26 21:40:36 +02:00
2013-11-26 21:40:36 +02:00
2013-11-09 13:15:53 +02:00
2013-12-07 15:15:23 +02:00

jspm Registry

View the registry file here

Pull requests welcome for registry.json to add or modify entries.

All registry entries are managed here through Github, moderated by the registry maintainers.

What it does

1. Endpoint Mappings (registry.json)

Modules are served from endpoint servers. Endpoints include github:, npm: and cdnjs:, and anyone can submit a new endpoint, provided it meets certain requirements.

If I want to load Twitter Bootstrap directly from the Github endpoint with the jspm loader, I would write the following:

  jspm.import('github:twbs/bootstrap@3.0/js/bootstrap');

The loader then sends a request to the URL https://github.jspm.io/twbs/bootstrap@3.0/js/bootstrap.js and the Github endpoint server, returns the associated code.

The registry simply remembers the github:twbs/bootstrap part, allowing the shortcut form:

  jspm.import('bootstrap@3.0/js/bootstrap');

The registry.json is just a collection of these mappings:

  "bootstrap": "github:twbs/bootstrap"

Anyone is welcome to submit a mapping.

The current supported endpoint servers are:

  • Github (SPDY optimized)
  • npm (SPDY optimized)
  • cdnjs

To add a new endpoint server to the registry, provide a pull request to endpoints.json.

For more information on endpoints, read the Endpoint Conventions guide.

2. Package.json Overrides (package_overrides)

The registry also provides a service for overriding the package.json of existing repos.

This is useful for enabling jspm functionality in the package.json when direct access to the underlying repo is not possible.

This is because jspm uses the package.json for modular package configuration, including:

  • Setting the main entry point (main)
  • Shim config for globals (shim)
  • Auto-enabling minification (buildOptions.uglify)

In this way, the right package options can make any package play well with jspm, without needing any manual configuration at all.

Submitting a pull request to the original repo is still preferable to package overrides, this is a convenience service only and not a long term solution.

Read more about configuring packages for jspm in the wiki.

To submit a new package override:

  • Fork this repo, then create the file `package_overrides/[endpoint name]/[repo name]@x.y.z.json.
  • Provide the correct configuration according to the configuration guide above.
  • Submit a pull request.
  • If the configuration is correct, this will be accepted and that will instantly enable the functionality on the endpoint.

The overrides only apply to exact version, tag or branch names.

Note that package overrides do not work for the cdnjs endpoint, so manual configuration is still necessary here.

S
Description
The jspm registry and package.json override service
https://jspm.io
Readme
2.2 MiB
Languages
JavaScript 100%