Skip to content

Monolithic PSM file makes it harder to contribute #154

Closed

Description

All the functions and classes are in a single file.

Whilst it may be optimal to ship this way (and people will argue about that), to contribute an improvement to one function or one class is harder. Please consider splitting the file for development and merging it at build time.

Activity

  1. theJasonHelmick commented on May 23, 2022

    @theJasonHelmick
    Collaborator

    Hi James O'Neill (@jhoneill) - Are you referring to the json configurations? You can create a multiple json configurations, each with one definition, and export them individually for module testing, then all at once for a completed module. So,
    Export-CrescendoModule -ConfigurationFile ./test1.crescendo.json -ModuleName .\test1
    then
    Export-CrescendoModule -ConfigurationFile ./test1.crescendo.json, ./test2.crescendo.json, ./test3.crescendo.json -ModuleName .\Test

  2. jhoneill commented on May 23, 2022

    @jhoneill
    Author

    Jason Helmick (@theJasonHelmick) No, I mean the PSM1 file.

    If the classes were separate files and these were merged (and loaded from ScriptsToProcess in the PSD so they were accessible from outside the module). And/or each function had its own file and they were merged (or dot sourced in the PSM1) then it would be easier to say "I've updated function X" than "Here's a version of the PSM1 with my changes".

  3. theJasonHelmick commented on Jun 20, 2022

    @theJasonHelmick
    Collaborator

    James O'Neill (@jhoneill) - Thanks James for the clarification. this is an interesting and valid problem - and I have seen a few folks handle this in their build scripts - but - its worth thinking about. I would be interested in the future to hear from folks that are experiencing this problem with large modules and many cmdlets.

  4. theJasonHelmick commented on Aug 23, 2022

    @theJasonHelmick
    Collaborator

    James O'Neill (@jhoneill) - Thank you for the suggestion - after reviewing we are not going to break the psm1 apart at this time in our development.

  5. jhoneill commented on Aug 23, 2022

    @jhoneill
    Author

    Jason Helmick (@theJasonHelmick) Understood . Maybe we should talk separately about what I did with crescendo in April / May / June. You can look at the James' branch in my fork. I think I've moved things forward but don't feel able to turn that into a contribution to the project.

  6. theJasonHelmick commented on Aug 24, 2022

    @theJasonHelmick
    Collaborator

    James O'Neill (@jhoneill) - Would be very interested (as always) in your perspective and work. I'll send an email - happy to meet and discuss!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Issue-EnhancementIssue-TriagedResolution-By Design

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions