2013-11-12 18:15:04 +02:00
jspm Registry
2013-09-16 11:23:44 +02:00
---
2013-12-04 14:42:44 +02:00
[View the registry file here ](https://github.com/jspm/registry/blob/master/registry.json )
2014-12-17 16:06:12 +02:00
Pull requests welcome for `registry.json` and the `package_overrides` folder.
2013-09-16 11:23:44 +02:00
2014-12-17 16:06:12 +02:00
All registry entries are managed here through GitHub, moderated by the registry maintainers.
2013-09-27 10:16:16 +02:00
2014-02-04 15:15:47 +02:00
Registry
2013-09-16 11:23:44 +02:00
---
2014-12-17 16:06:12 +02:00
The currently supported endpoints are:
2013-09-16 11:23:44 +02:00
2014-12-17 16:06:12 +02:00
* Github
* npm
2013-11-12 17:25:43 +02:00
2014-12-17 16:06:12 +02:00
The registry provides a simple mapping in the file [`registry.json` ](https://github.com/jspm/registry/blob/master/registry.json ), which maps a shortname (`bootstrap` ) to a canonical endpoint name (`github:twbs/bootstrap` ). It is simply a convenience for installing through jspm.
2013-11-12 17:18:29 +02:00
2014-02-04 15:15:47 +02:00
Package.json Overrides
---
2013-11-12 17:13:31 +02:00
The registry also provides a service for overriding the `package.json` of existing repos.
2013-11-12 18:15:04 +02:00
This is useful for enabling jspm functionality in the `package.json` when direct access to the underlying repo is not possible.
2013-11-12 17:32:51 +02:00
2014-12-17 16:06:12 +02:00
jspm uses the `package.json` for modular package configuration, including:
2013-11-12 17:13:31 +02:00
* Setting the main entry point (`main` )
* Shim config for globals (`shim` )
2014-02-04 10:40:43 +02:00
* Map configuration (`map` )
* Module format (`format` )
2013-11-12 17:13:31 +02:00
2013-12-07 15:15:23 +02:00
In this way, the right package options can make any package play well with jspm, without needing any manual configuration at all.
2013-11-12 17:13:31 +02:00
2014-12-17 16:06:12 +02:00
> Submitting a pull request to the original repo should be done at the same time as this is designed as a temporary service only and not a long term solution to the configuration problem.
2013-11-12 17:32:51 +02:00
2013-11-12 18:15:04 +02:00
Read more about [configuring packages for jspm ](https://github.com/jspm/registry/wiki/Configuring-Packages-for-jspm ) in the wiki.
2013-11-12 17:30:22 +02:00
2014-12-17 16:06:12 +02:00
Examples of jspm package.json files for common packages can be found in the [package overrides ](https://github.com/jspm/registry/tree/master/package-overrides ) section of the registry.
2014-02-04 15:15:47 +02:00
### Testing Package Overrides
2014-04-10 15:41:22 -07:00
Package overrides may take some testing to get exactly the right configuration.
2014-02-04 15:15:47 +02:00
2014-04-10 15:41:22 -07:00
See the [testing guide within Configuration Packages for jspm ](https://github.com/jspm/registry/wiki/Configuring-Packages-for-jspm#testing-configuration ).
2014-02-04 15:15:47 +02:00
### Submitting a Package Override
2013-11-12 17:30:22 +02:00
To submit a new package override:
2014-06-23 20:40:12 +01:00
* Fork this repo, then create the file `package-overrides/[endpoint name]/[repo name]@x.y.z.json` .
2013-11-12 17:30:22 +02:00
* 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.
2014-12-17 16:06:12 +02:00
> The overrides will apply for all versions semver compatible with the override version, with the highest version override taking precedence.