What's a good method for monkey patching Bower packages in Angular?

淺唱寂寞╮ 提交于 2019-12-11 09:44:08

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/25435329/whats-a-good-method-for-monkey-patching-bower-packages-in-angular

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!