使用Bower安装不支持bower的库 [英] Installing non-bower-ready library with Bower

查看:148
本文介绍了使用Bower安装不支持bower的库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Bower( http://bower.io/ )管理我的应用程序的第三方库,并现在我想使用一个没有注册的Bower软件包的库,即Cloudinary的 jquery.cloudinary.js http://cloudinary.com )。

I am using Bower (http://bower.io/) to manage my app's third-party libraries and now I want to use a library which doesn't have a registered bower package, namely jquery.cloudinary.js from Cloudinary (http://cloudinary.com).

我真的很想加入 cloudinary 在我的Bower管理的库中,因为它确实有助于在需要时克隆我的开发环境。

I would really love to include cloudinary amongst my bower-managed libraries because it really helps cloning my development environment when I need to.

是否可以通过Bower安装Internet上可用的任何库我的 bower.json 文件?如果可以,怎么办?

Is it possible to install any library available in the internet with Bower by just editing my bower.json file? If so, how?

我想我可以问Cloudinary创建并注册Bower软件包还是自己动手做,但是我仍然不确定我是否应该做任何这些。

I guess I could either ask Cloudinary to create and register a Bower package or do it myself but I am still in doubt whether I should do any of these.

推荐答案

注册或直接使用git url安装: bower install http:// website .com / repo.git

Register it or install with the git url directly: bower install http://website.com/repo.git

来自 Bower自述文件


Bower提供了几种安装软件包的方法:

Bower offers several ways to install packages:

使用本地或远程软件包

bower install <package>

其中< package> 可以是以下任意一项:

Where <package> can be any one of the following:

一个名称,该名称映射到在Bower中注册的软件包,例如jquery。 ‡

A name that maps to a package registered with Bower, e.g, jquery. ‡

远程Git端点,例如git://github.com/someone/some-package.git。可以是公共的或私有的。 ‡

本地端点,即Git存储库文件夹。 ‡

A local endpoint, i.e., a folder that's a Git repository. ‡

速记端点,例如,someone / some-package(默认为GitHub)。 ‡

A shorthand endpoint, e.g., someone/some-package (defaults to GitHub). ‡

文件的URL,包括zip和tar文件。将提取其内容。

A URL to a file, including zip and tar files. Its contents will be extracted.

这篇关于使用Bower安装不支持bower的库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆