什么是猴修补鲍尔在包角的好方法? [英] What's a good method for monkey patching Bower packages in Angular?

查看:184
本文介绍了什么是猴修补鲍尔在包角的好方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的基础上 ngBoilerplate 的Angular.js项目。我有不得不通过添加几行的角源来解决一些环境具体问题。我有谁可能在这个项目上的一些其他队友,所以我想确保当他们在本地复制下来回购和鲍尔安装,对他们作品角度以及。什么是猴补丁修复我到应用程序,以确保他们会提供给其他人的好方法?

I'm working on an Angular.js project based on ngBoilerplate. I had some environment specific issues that had to be resolved by adding a couple lines to the Angular source. I've got some other teammates who may work on this project, so I want to make sure that when they clone down the repo locally and Bower install, Angular works for them as well. What's a good method for monkey patching my fixes into the app to ensure they'll be available for others?

推荐答案

叉角的回购,修改它,并使用自己的副本作为您的亭子依赖。务必记录你的叉子从原来的角源的不同之处。

Fork the Angular repo, modify it, and use your own copy as your bower dependency. Be sure to document how your fork differs from the original angular source.

或者寻找一种方式来解决与股票角的问题,并分发修复为所需的脚本。

Or, look for a way to resolve the issues with the stock angular, and distribute the fix as a required script.

这篇关于什么是猴修补鲍尔在包角的好方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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