如何推动鲍尔依赖关系的变化? [英] How to push changes in bower dependencies?

查看:113


现在我在我的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屋!

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