问题
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