bower - 如何覆盖依赖的 bower.json 文件的 "ignore"部分?

标签 bower bower-install

我想用 https://github.com/MrRio/jsPDF在我的 ember 项目中。
我想将 jsPDF 作为依赖项导入,因此我以这种方式开始:
bower install git@github.com:MrRio/jsPDF.git --save
不幸的是,我无法从插件目录安装文件,因为 "plugins/*"目录在 bower.json 文件中被忽略。
我曾尝试以这种方式覆盖它,但没有成功。

  "overrides": {
    "jspdf": {
      "ignore": [
        "**/.*",
        "libs",
        "CNAME",
        "jspdf.js",
        "examples/jspdf.PLUGINTEMPLATE.js",
        "todo.txt",
        "wscript.py",
        "build.sh",
        "test",
        "tools"
      ]
    }
  }

请你帮助我好吗?

最佳答案

我刚刚向 bower 添加了一个 jsPDF 插件包。
您可以通过添加所有插件

bower install jsPDF-plugins --save

关于bower - 如何覆盖依赖的 bower.json 文件的 "ignore"部分?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31659729/

相关文章:

gruntjs - Grunt.Js (+ Yeoman) - 构建时复制 bower 文件

javascript - "UNMET PEER DEPENDENCY"尝试将 bootstrap-ui 添加到我的 Angular 时

nuget - 同时使用多个前端程序包管理器(Bower,NuGet)

node.js - Bower 安装因 module_not_found 而失败

npm - Nuget/npm/bower/typings 等包管理器的自定义路径

angularjs - 未安装 Angular 文件保护程序

javascript - 我需要哪个 Bower 包才能在 angularJS 中使用 locationProvider

npm - 基础 6 : how to include static css from package manager?

gulp - 为什么在Windowsroot中安装 bower 组件

bower - 为什么 bower 安装 github/repo 不会克隆我的 bower.json?