I'm going to work on a large power script project. I want to create an architecture for my files and make it more maintainable.
I want to put each function in a separate ps1 file, so I can manage them separately.
For example, consider I want to have 2 ps1 files call it: FunctionA, FunctionB.
Then I want to have a MyFunctions.psm1 which is an aggregation of those 2 functions.
I don't want to write the functions directly in the psm1 file. I want write functions separately in the files, then aggregate them in the module.
The aggregation operation is something like building a project.
My utopia is a Visual Studio Project which I can add ps1 files in it, then, when I build the project a psm1 file would be generated.
I found a CodePlex project (PowerGUI) which is a Visual Studio Extension that adds a PowerShell Project Template.
But, unfortunately, it doesn't seem to have this psm1 auto generating.
Question 1: Is there any way to add this feature to the project, For example, adding something to Build Events.
Question 2: Is there another way of creating a psm1 file from ps1 files. Something like a Aggregate-Functions cmdlet or function!?
Modulesinto a finalModulewould be a better question?