|
| 1 | +# Contribute |
| 2 | + |
| 3 | +Contributions to the project are appreciated. |
| 4 | + |
| 5 | +## Project Structure |
| 6 | + |
| 7 | +* \docs |
| 8 | + The docs for the module |
| 9 | +* src/AMSoftware.Dataverse.PowerShell |
| 10 | + A single project for the entire module. |
| 11 | + * Code files for the Binary Module part |
| 12 | + * .psd1 for the module description and exported cmdlets and functions. |
| 13 | + * Types.ps1xml for the Type Descriptors. |
| 14 | + * Formats.ps1xml for the Table and View definitions. |
| 15 | + * AMSoftware.Dataverse.PowerShell.psm1 as the startup script for the module. |
| 16 | + * .psm1 for the additional script modules. |
| 17 | + |
| 18 | +## Tools |
| 19 | + |
| 20 | +* VSCode |
| 21 | +* .NET 8 |
| 22 | +* PlatyPS to generate the docs |
| 23 | +* Pester to run tests (when available) |
| 24 | + |
| 25 | +## Build |
| 26 | + |
| 27 | +To build the module for test and documentation. |
| 28 | + |
| 29 | +``` powershell |
| 30 | +# Build Debug. This builds the module and copies neccesary files to output |
| 31 | +dotnet build ./src/ --no-incremental |
| 32 | +
|
| 33 | +# Build docs for Debug module |
| 34 | +./builddocs.ps1 |
| 35 | +
|
| 36 | +# Update Docs with help and exmples |
| 37 | +
|
| 38 | +# Create Release which includes module and help content |
| 39 | +dotnet build ./src/ --no-incremental --configuration 'Release' |
| 40 | +# Release is placed in ./dist/ |
| 41 | +./release.ps1 |
| 42 | +``` |
| 43 | + |
| 44 | +## How to contribute |
| 45 | + |
| 46 | +* Create a GitHib issue to track the contribution and to related the PR to. |
| 47 | +* Fork the repo by click "Fork" button on right top corner, which brings entire repo to your GitHub account. |
| 48 | +* Add a branch to work on. Please name the branch as issue number so that we can easily relate a pull request to an issue. |
| 49 | +* Once you fixed the issue or added new function, please make pull request. |
| 50 | + |
| 51 | +Make sure of the following before making a Pull Request: |
| 52 | + |
| 53 | +* Use {Verb}-Dataverse{Noun} to name function or cmdlet. |
| 54 | +* Specify Parameter parameters. At least Mandatory. |
| 55 | +* Add docs page with help and examples. |
0 commit comments