doulei8861 2015-01-18 20:18
浏览 67
已采纳

哪个包服务为Bower提供存储库?

Behind the dependency manager for PHP Composer works with the PHP package archive service Packagist. So when I want to defind Zend Framework 2 as a package, my project depends on, I use the syntax developer/package:

composer.json

{
    "name": "Project Name",
    "description": "Project Description",
    "require": {
        "php": ">=5.3.23",
        "zendframework/zendframework": ">=2.3.2,<3.0.0",
        ...
    }
    ...
}

Then I run composer install and looks in the Packagist archive for the packges, I defined as dependencies.

Now the Bower:

I can define the dependencies in the bower.json and get them with bower init or load them directly with bower install <package>. In both cases the package can be defined as a GitHub address or any URL (http://sld.tld/file.js), but also in form of developer/package (bower install angular/angular.js) or even just package (bower install jquery).

What is Bower's "Packagist"? Which package service provides the package repository for Bower?

  • 写回答

2条回答 默认 最新

  • doujia4759 2015-01-19 11:57
    关注

    The mapping between the package name and the repository holding the package content is done by the Bower registry.
    By default the Bower client will use the public Bower registry - http://bower.herokuapp.com.
    To register a new package in the registry you need to use the bower register command as described here.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么