I am about to write a common Angular module which can be used as a plug and play module in my application.
What I want
I want to put the module definition and all its factory, directive, constants in a single js file, example:
angular.module('commonModule', [])
.factory(...)
.directive(...)
.constant(...)
Why because
Whenever a developer wants to use my module he/she just need to call a single js file and just need to inject my module in their module.
What is my problem
I have read the John papa's Angular 1 good practice style guide, he told that it is good to define a single component in a file, but here I am doing the opposite so what should I do?