【问题标题】:changing the bower install path for certain repositories only仅更改某些存储库的凉亭安装路径
【发布时间】:2015-11-24 14:43:46
【问题描述】:

我一直在玩 Bower,巧合的是还玩了 Polymer。

您可以通过 bower 下载聚合物元素,例如:

bower install --save PolymerElements/iron-image

我猜聚合物知道有一些 repo 可以搜索以找到该文件。

我希望将 PolymerElements/* 中的任何内容转到名为 web_components 的文件夹而不是 bower_components 文件夹,但我希望其他所有内容仍转到 bower_components 我该如何实现?

我知道我可以通过以下方式告诉所有内容转到web_components

{
  "directory" : "web_components"
}

在我的.bowerrc

【问题讨论】:

    标签: javascript polymer bower package-managers


    【解决方案1】:

    使用 bower 提供的内置工具/参数无法做到这一点。您将需要提供一个自定义脚本来处理组件放置。听起来像是一个很好的功能请求,可以添加到他们的 github 问题页面。

    【讨论】:

      猜你喜欢
      • 2017-03-14
      • 1970-01-01
      • 2013-07-03
      • 2014-02-09
      • 2013-05-23
      • 2016-06-13
      • 2017-03-18
      • 2015-03-30
      • 2014-08-08
      相关资源
      最近更新 更多