readme updates
This commit is contained in:
@@ -7,9 +7,20 @@ While the registry is small enough, all registry entries are managed through Git
|
||||
|
||||
* The registry provides a mapping from a unique registry name (`jquery`), to a target package (`github:components/jquery` / `npm:jquery`).
|
||||
* For ease of reference, please ensure new names are added in the correct alphabetical location.
|
||||
* Currently the following SPDY-optimized `locations` are available in the registry mapping:
|
||||
|
||||
* Github: `github:jquery/jquery` -> `https://github.jspm.io/jquery/jquery.js`
|
||||
* NPM: `npm:underscore` -> `https://npm.jspm.io/underscore.js`
|
||||
|
||||
In this way, any package on Github or NPM is available for reference in the jspm registry.
|
||||
|
||||
Additional locations are in planning for other servies. Anyone can provide a location service. To provide a new
|
||||
location service, see the [location service guidelines](), then contact us directly to have your location service
|
||||
included in jspm.
|
||||
|
||||
* An optional `main` entry point can be specified with `#main-file-name`. For example:
|
||||
|
||||
`"jquery": "github:components/jquery#jquery"
|
||||
`"jquery": "github:components/jquery#jquery"`
|
||||
|
||||
will map:
|
||||
|
||||
@@ -18,16 +29,11 @@ While the registry is small enough, all registry entries are managed through Git
|
||||
|
||||
It is simply a shorthand for specifying the main entry point when the package is requested directly by name.
|
||||
|
||||
* Currently the following `locations` are available in the registry mapping:
|
||||
* Versions numbers are automatically appended onto the end of the target name. For example:
|
||||
|
||||
* `github:*`: Maps to the Github service.
|
||||
* `npm:*` : Maps to the NPM service.
|
||||
`jquery@2.0` -> `github:components/jquery/jquery@2.0`
|
||||
|
||||
In this way, any package on Github or NPM is available for reference in the jspm registry.
|
||||
|
||||
Additional locations are in planning for other servies. Anyone can provide a location service. To provide a new
|
||||
location service, see the Location Service Guidelines, then contact us directly to have your location service
|
||||
included in jspm.
|
||||
All location services are designed to work with these [jspm version conventions]().
|
||||
|
||||
|
||||
Package Overrides
|
||||
@@ -35,9 +41,10 @@ Package Overrides
|
||||
|
||||
The registry also provides a `package.json` override system.
|
||||
|
||||
All jspm package configuration options are specified in the `package.json` file for packages. The jspm `package.json`
|
||||
extension properties are documented here. Often changes need to be made to packages one may not have maintainer access to.
|
||||
In this case, submit the `package.json` as an override in this repo to override the `package.json` file jspm uses for a given package.
|
||||
All jspm package configuration options are specified in the `package.json` file for packages, as described
|
||||
in the [jspm package.json specification](). Often changes need to be made to packages one may not have maintainer
|
||||
access to. In this case, submit the `package.json` as an override in this repo to override the `package.json`
|
||||
file jspm uses for a given package.
|
||||
|
||||
The overrides are located in the `package-overrides` folder of this repo, with the folder format:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user