jspm-git

A generic jspm registry for Git Repositories

jspm-git

A generic jspm registry for Git Repositories.

jspm-git is based on Guy Bedford's github registry 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 Wikito find a compatible jspm-git release.

For all jspm@0.17-betausers, please use the beta version of jspm-git.

npm install jspm-git@beta

Installation

Install the registry 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 registry

jspm registry create mygit jspm-git

Where mygitwill be the name of your new git registry.

Configure an existing registry

jspm registry config mygit

Where mygitis the name of your existing registry which you want to configure.

Export & Import registry configurations

Please have a look on the Auto-configuring Registriesdocumentation of jspm.

Usage

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

# Exemplary registry 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

Troubleshooting

These combinations of jspmand jspm-gitare valid

  • global jspm + global jspm-git
  • local jspm + local jspm-git

These combinations of jspmand jspm-gitare invalid

  • global jspm + local jspm-git
  • local jspm + global jspm-git

Registry Configurations

Registry configurations for popular Git hosting services

Bitbucket

jspm registry 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 registry that comes along with the jspm-cli

Configuration File

You can find your jspm-git registry configuration in the following locations

  • Linux Systems ~/.jspm/config file
  • Windows %LOCALAPPDATA%/.jspm/config

HomePage

https://github.com/Orbs/jspm-git

Repository

https://github.com/Orbs/jspm-git


上一篇:aurelia-router
下一篇:aurelia-kendoui-bridge

相关推荐

  • 鲍尔注册本地的Git包

    鲍尔注册本地的Git包...

    2 年前
  • 高效阅读Github源代码

    三种办法。如果你主要看前端项目的代码,直接看第三种。 1,用Chrome插件Octotree,左侧会出现树形结构,方便你浏览源代码。 (https://img.javascriptcn.com/6...

    2 年前
  • 链接和执行外部JavaScript文件托管在GitHub上

    AuthorProxy(https://stackoverflow.com/users/1763061/authorproxy)提出了一个问题:Link and execute external Ja...

    2 年前
  • 邮件驱动 Git 工作流的优势

    git 2.18.0(/go/?target=https%3A%2F%2Fraw.githubusercontent.com%2Fgit%2Fgit%2Fmaster%2FDocumentation%...

    2 年前
  • 通过 41 个 问答方式快速了解学习 Git

    为了保证的可读性,本文采用意译而非直译。 1. 你最喜欢的 Git 命令是什么 个人比较喜欢 这增加了“补丁模式”的变化,这是一个内置的命令行程序。它遍历了每个更改,并要求确认是否要执行它们。

    7 个月前
  • 详解 Github App 的玩法

    image(https://img.javascriptcn.com/8ee2bda1b962f5c4f8ece5c07608382e "image") 之前在使用 Github issues 搭建...

    1 年前
  • 解决sourceTree的git clone 报SSH密钥认证失败的问题

    好不容易通过了不用登录sourceTree的问题,开开森森打开sourceTree的时候,使用Clone的时候发现还是无法使用会报SSH错认证失败,崩溃! clipboard.png(https:/...

    2 年前
  • 规范git commit的提交记录

    📖博客原文 :xxoo521.com《规范git commit的提交记录(交互式命令行)》 随着项目体积的增加,参与到项目中的同学越来越多,每个人都有自己的打 git log 的习惯: 格式 1:...

    1 个月前
  • 管理多个git生成的ssh key

    经常我们可能需要上传github,和gitlab,或者你有多个github账号,我们需要对应不同的账号上传,我们需要配置多个ssh key 这里我们就以配置github,gitlab,两个ssh k...

    2 年前
  • 私有化部署git管理流程

    git 分支结构 结构解读 目前私有化部署管理分成两个部分主版本和定制版本 主版本: 厂商没有定制化需求,也愿意跟着我们的 bug fix 及功能迭代走 定制版本: 厂商有定制化的需求,主版本...

    3 个月前

官方社区

扫码加入 JavaScript 社区