/jspm-git

Generic git endpoint for JSPM

Primary LanguageJavaScriptMIT LicenseMIT

jspm-git Build Status

A generic jspm endpoint for Git Repositories.

jspm-git is based on Guy Bedford's github endpoint for jspm.

Compatibility

The most recent release of jspm-git is always compatible to the most recent release of jspm. For different jspm releases please have a look on the Jspm Compatibility Wiki to find a compatible jspm-git release.

Installation

Install the endpoint globally or locally within your project:

# Global installation
npm install -g jspm-git

# OR local installation
npm install jspm-git --save-dev

Create a new jspm-git endpoint:

jspm endpoint create mygit jspm-git

Where mygit will be the name of your new git endpoint.

Configure an existing endpoint:

jspm endpoint config mygit

Where mygit is the name of your existing endpoint which you want to configure.

Usage

Exemplary usage of jspm-git to install a jspm package from a git server located at ssh://username@code.mycompany.com/

# Exemplary endpoint configuration of mygit
# baseurl: ssh://username@code.mycompany.com/

jspm install mygit:projname/reponame

jspm-git will then try to install the package located at

ssh://username@code.mycompany.com/projname/reponame.git

Endpoint Configurations

Endpoint configurations for popular Git hosting services

Bitbucket

jspm endpoint create bitbucket jspm-git
# baseurl: https://bitbucket.org/

jspm install bitbucket:accountname/reponame

If you want to avoid rate limits please use the base URL ssh://git@bitbucket.org/ instead.

Please note that you've to upload your public key to your Bitbucket account or otherwise Bitbucket will refuse the sshconnection. For more details please see official Bitbucket manual Set up SSH for Git

Github

Please use the official github endpoint that comes along with the jspm-cli