如何推动鲍尔依赖关系的变化? [英] How to push changes in bower dependencies?
问题描述
我有一个演示webapp( https://github.com/freedomotic/fd-polymer- webapp ),它依赖于我在customelements.io上发布的一些Polymer元素(其中一些列在这里 https:/ / b> 由于demo webapp将这些元素作为bower依赖关系,所以我找不到正确管理工作流的方法。 是否有更简单的方法来处理这种工作流程?是否有可能以某种方式将我的bower_components文件夹中的那些git存储库链接起来,以便我可以直接从那里推送更改?解析方案
现在我在我的bower_components文件夹中修改这些元素,然后在每个不同的存储库中替换它们,推送更改并在演示项目上运行bower更新以查看是否所有平滑运行。如果是的话,我会在演示库上推演示版项目变更。
现在我在我的bower_components文件夹中修改这些元素
您可能不应该这样做。如果您认为您的修补程序与社区相关,请查找源代码库(不一定是修补程序从中抽取的代码库)并打开一个请求(可能会被作者拒绝)。
如果你想修改它只是为了你的目的,试着在包含你需要的库之后重写函数或变量。
实际上也可以只需修改并预编译你的依赖关系到一个文件中,这比移动很多bower_components更麻烦。
I have a demo webapp ( https://github.com/freedomotic/fd-polymer-webapp ) that relies on some Polymer elements that i published on customelements.io (some of them are listed here https://github.com/freedomotic ).
Since the demo webapp has these elements as bower dependencies I can't find a way to properly manage my workflow. By now I modify these elements in my bower_components folder, then replace them in each distinct repository, push the changes and run bower update on the demo project to see if all runs smoothly. If yes, I push the demo project changes on the demo repository.
Is there a simplier way to handle this kind of workflow? Is it possible to link in some way those git repositories in my bower_components folder so that I can push changes directly from there?
By now I modify these elements in my bower_components folder
You probably shouldn't. If you think your fix is relevant to the community, find the source repository (which is not necessarily the repository that bower draws from) and open a pull request (which can be rejected by the authors)
If you want to modify it only for your purposes, try to override the functions or variables after including what ever library you need.
Also practical could be to just modify and pre-compile your dependencies into one file, which is less annoying to move around than a lot of bower_components
这篇关于如何推动鲍尔依赖关系的变化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!