MiniScaffold 0.38.0
dotnet new install MiniScaffold::0.38.0
MiniScaffold
What is MiniScaffold?
This is an F# Template for:
- creating and publishing libraries targeting .NET 8.0
net8.0
- creating and publishing applications targeting .NET 8.0
net8.0
Why use MiniScaffold
This takes away the ambiguity that developers face when creating an OSS project. Such as:
- How do I structure my project?
- How do I create repeatable builds?
- Which test framework should I use?
- How do I create releases easily?
- What Issue/Pull Request templates should I use?
- How should I go about creating documentation?
- How do I get CI/CD setup easily?
- What's the standard .gitignore file?
- What other things would make it easier for me when starting off creating a project I might not even know about?
What does this include in the box?
All project types
- Standard project structure for your dotnet application
- Build Automation tool via FAKE
- Package management tool via Paket
- Unit Testing via Expecto
- Code Coverage via Altcover
- Also builds an html report with ReportGenerator
- Code formatting style via Fantomas
GitRelease
build step commits latest CHANGELOG.md in the body and creates a git tag.- If you reference a Pull Request in the
CHANGELOG.md
it will update that Pull Request with the version it was released in.
- If you reference a Pull Request in the
GitHubRelease
build step publishes a GitHub Release via the CHANGELOG.md and adds any artifacts (nuget/zip/targz/etc).- Continuous integration via GitHub Actions
For Libraries
- Builds for
net8.0
- Target Frameworks- To build for
net8.0
.NET 8.0 installed
- To build for
- Sourcelink which enables a great source debugging experience for your users, by adding source control metadata to your built assets
- Documentation Generation - Generates Documentation from markdown files, fsx files, and the XML Documentation Comments from your library.
- Continuous deployment via GitHub Actions
- [Publish to NuGet] - Pushes NuGet packages to NuGet
- Generates Package Version from
CHANGELOG.md
- Adds Package Release Notes metadata from
CHANGELOG.md
- Generates Package Version from
- [Documentation Publish] - Publish Documenation to Github Pages
- [Publish to NuGet] - Pushes NuGet packages to NuGet
For Applications
- Basic argument parsing example via Argu
- Builds a
net8.0
application - Target Frameworks- To build for
net8.0
- Have .NET 8.0 installed
- To build for
- Builds for
win-x64
,osx-x64
andlinux-x64
- Runtime Identifiers. Bundles the application via dotnet-packaging- Bundles the
win-x64
application in a .zip file. - Bundles the
osx-x64
application in a .tar.gz file. - Bundles the
linux-x64
application in a .tar.gz file.
- Bundles the
Getting started quickly
Install the dotnet template from NuGet:
dotnet new install "MiniScaffold::*"
Then choose:
dotnet new mini-scaffold -n MyCoolNewLib --githubUsername MyGithubUsername
dotnet new mini-scaffold -n MyCoolNewApp --githubUsername MyGithubUsername -ou console
The scaffold defaults to using the main
branch for releases. If you release from a different branch, you can use the --releaseBranch <branch name>
parameter to use your release branch instead of the default.
Builds
GitHub Actions |
---|
NuGet
Stable | Prerelease |
---|---|
Options
githubUserName
This is used to automatically configure author information in the NuGet package, as well as configure push urls for repo locations.
outputType
Defaults to Library
When set to either Console or Library project and the supporting infrastructure around their respective types.
Known issues
Permission denied
-bash: ./build.sh: Permission denied
This is because dotnet template loses permissions of files. (https://github.com/TheAngryByrd/MiniScaffold/pull/37) added a post hook to address this but this only fixes it for dotnet sdk 2.x users. dotnet sdk 1.x will need to run chmod +x ./build.sh
Appveyor badge not scaffolded correctly
Appveyor's conventions around generating URLs based on the project name has some nuances. See this issue for details.
Example Projects using this template:
- Chessie.Hopac
- Marten.FSharp
- FSharp.Control.WebSockets
- FSharp.Control.Redis.Streams
- FsLibLog
- Giraffe.HotReload
- EFCore.FSharp
This project uses the following projects:
-
.NETStandard 0.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.38.0 | 88 | 12/7/2024 |
0.38.0-beta001 | 72 | 12/7/2024 |
0.37.1 | 3,586 | 11/19/2023 |
0.37.0 | 859 | 10/25/2023 |
0.36.2 | 293 | 10/22/2023 |
0.36.1 | 222 | 10/21/2023 |
0.36.0 | 730 | 10/6/2023 |
0.35.2 | 265 | 9/18/2023 |
0.35.0 | 201 | 9/18/2023 |
0.34.2 | 246 | 9/14/2023 |
0.34.1 | 195 | 9/5/2023 |
0.34.0 | 400 | 6/9/2023 |
0.33.0 | 156 | 6/7/2023 |
0.33.0-alpha009 | 188 | 6/7/2023 |
0.33.0-alpha008 | 162 | 6/7/2023 |
0.33.0-alpha007 | 191 | 6/7/2023 |
0.33.0-alpha006 | 206 | 6/7/2023 |
0.33.0-alpha005 | 196 | 6/7/2023 |
0.33.0-alpha004 | 159 | 6/7/2023 |
0.32.0 | 968 | 9/17/2022 |
0.32.0-beta001 | 239 | 9/17/2022 |
0.31.1 | 645 | 4/29/2022 |
0.31.1-beta001 | 230 | 4/29/2022 |
0.31.0 | 557 | 2/6/2022 |
0.31.0-beta001 | 266 | 2/6/2022 |
0.30.0 | 503 | 1/18/2022 |
0.30.0-beta001 | 193 | 1/18/2022 |
0.29.1 | 486 | 10/11/2021 |
0.29.1-beta001 | 229 | 10/11/2021 |
0.29.0 | 401 | 9/29/2021 |
0.29.0-beta001 | 211 | 9/29/2021 |
0.28.0 | 2,465 | 6/3/2021 |
0.27.0 | 403 | 5/28/2021 |
0.27.0-beta002 | 242 | 5/28/2021 |
0.27.0-beta001 | 205 | 5/28/2021 |
0.26.4 | 419 | 5/25/2021 |
0.26.4-beta001 | 248 | 5/25/2021 |
0.26.3 | 573 | 3/14/2021 |
0.26.3-beta001 | 297 | 3/14/2021 |
0.26.2 | 554 | 1/22/2021 |
0.26.1 | 464 | 1/19/2021 |
0.26.1-beta001 | 258 | 1/19/2021 |
0.26.0 | 475 | 1/5/2021 |
0.26.0-beta001 | 240 | 1/5/2021 |
0.25.1 | 555 | 11/11/2020 |
0.25.0 | 792 | 7/25/2020 |
0.25.0-beta001 | 355 | 7/25/2020 |
0.24.4 | 647 | 5/9/2020 |
0.24.3 | 602 | 5/9/2020 |
0.24.2 | 609 | 5/1/2020 |
0.24.1 | 556 | 4/23/2020 |
0.24.0 | 588 | 3/26/2020 |
0.23.5 | 579 | 3/24/2020 |
0.23.4 | 584 | 3/8/2020 |
0.23.3 | 618 | 2/24/2020 |
0.23.2 | 555 | 2/24/2020 |
0.23.1 | 563 | 2/24/2020 |
0.23.0 | 598 | 2/13/2020 |
0.23.0-beta001 | 403 | 2/7/2020 |
0.22.4 | 698 | 1/23/2020 |
0.22.3 | 610 | 1/15/2020 |
0.22.2 | 618 | 1/3/2020 |
0.22.1 | 637 | 12/26/2019 |
0.22.0 | 648 | 12/26/2019 |
0.22.0-beta001 | 450 | 12/26/2019 |
0.21.5 | 615 | 12/24/2019 |
0.21.4-beta001 | 430 | 12/24/2019 |
0.21.3 | 613 | 12/21/2019 |
0.21.2 | 621 | 12/21/2019 |
0.21.1 | 609 | 12/16/2019 |
0.21.0 | 601 | 12/13/2019 |
0.20.2 | 623 | 12/13/2019 |
0.20.1 | 614 | 11/26/2019 |
0.20.0 | 615 | 10/22/2019 |
0.19.2 | 594 | 10/22/2019 |
0.19.1 | 596 | 10/21/2019 |
0.19.0 | 621 | 9/24/2019 |
0.18.0 | 612 | 9/20/2019 |
0.17.1 | 837 | 6/4/2019 |
0.16.4 | 722 | 5/20/2019 |
0.16.3 | 664 | 5/17/2019 |
0.16.2 | 666 | 5/17/2019 |
0.16.1 | 648 | 5/9/2019 |
0.16.0 | 689 | 5/8/2019 |
0.15.1 | 796 | 5/3/2019 |
0.15.0 | 769 | 5/2/2019 |
0.14.2 | 734 | 5/2/2019 |
0.14.2-beta002 | 546 | 5/2/2019 |
0.14.2-beta001 | 554 | 5/2/2019 |
0.14.1 | 747 | 4/9/2019 |
0.14.0 | 902 | 2/19/2019 |
0.14.0-beta001 | 565 | 2/18/2019 |
0.13.0 | 910 | 1/9/2019 |
0.12.1 | 774 | 1/9/2019 |
0.12.0 | 1,105 | 9/11/2018 |
0.11.0 | 855 | 8/30/2018 |
0.11.0-beta002 | 611 | 8/30/2018 |
0.11.0-beta001 | 617 | 8/30/2018 |
0.10.0 | 934 | 8/18/2018 |
0.9.7 | 921 | 8/18/2018 |
0.9.6 | 899 | 8/10/2018 |
0.9.5 | 1,072 | 7/9/2018 |
0.9.4 | 1,099 | 6/22/2018 |
0.9.3 | 1,176 | 6/1/2018 |
0.9.2 | 1,093 | 6/1/2018 |
0.9.1 | 1,165 | 5/15/2018 |
0.9.0 | 1,122 | 5/14/2018 |
0.8.1 | 1,157 | 4/9/2018 |
0.8.0 | 1,207 | 3/20/2018 |
0.8.0-alpha002 | 846 | 3/20/2018 |
0.8.0-alpha001 | 905 | 3/20/2018 |
0.7.1 | 1,133 | 3/20/2018 |
0.7.0 | 1,133 | 3/16/2018 |
0.6.1 | 1,114 | 3/11/2018 |
0.6.0 | 1,117 | 3/7/2018 |
0.6.0-beta001 | 879 | 3/6/2018 |
0.5.2 | 1,135 | 3/1/2018 |
0.5.2-beta001 | 874 | 2/25/2018 |
0.5.1 | 1,115 | 2/25/2018 |
0.5.1-beta001 | 866 | 2/25/2018 |
0.5.0 | 1,196 | 2/15/2018 |
0.5.0-beta004 | 867 | 2/12/2018 |
0.5.0-beta003 | 882 | 2/12/2018 |
0.5.0-beta002 | 891 | 2/12/2018 |
0.5.0-beta001 | 868 | 2/10/2018 |
0.4.1 | 1,171 | 2/10/2018 |
0.4.1-beta003 | 894 | 2/10/2018 |
0.4.1-beta002 | 1,140 | 2/9/2018 |
0.4.1-beta001 | 898 | 2/9/2018 |
0.4.0 | 1,154 | 1/13/2018 |
0.3.5 | 1,519 | 7/18/2017 |
0.3.4 | 1,118 | 7/3/2017 |
0.3.3 | 1,141 | 6/26/2017 |
0.3.2 | 1,158 | 5/7/2017 |
0.3.2-alpha001 | 898 | 5/2/2017 |
0.3.1 | 1,089 | 4/30/2017 |
0.3.0 | 1,098 | 4/30/2017 |
0.3.0-alpha001 | 832 | 4/30/2017 |
0.2.0 | 1,196 | 4/18/2017 |
0.2.0-alpha001 | 841 | 4/18/2017 |
0.1.0 | 1,135 | 4/14/2017 |
0.1.0-alpha008 | 833 | 4/14/2017 |
0.1.0-alpha007 | 815 | 4/14/2017 |
0.1.0-alpha006 | 814 | 4/14/2017 |
0.1.0-alpha005 | 863 | 4/14/2017 |
0.1.0-alpha004 | 828 | 4/14/2017 |
0.1.0-alpha003 | 844 | 4/14/2017 |
0.1.0-alpha002 | 866 | 4/14/2017 |
0.1.0-alpha001 | 872 | 4/14/2017 |
## [0.38.0] - 2024-12-07
[0.38.0]: https://github.com/TheAngryByrd/MiniScaffold//compare/v0.37.1...v0.38.0
### Changed
- [Adds support for .NET 8.0](https://github.com/TheAngryByrd/MiniScaffold/pull/288) from @simon-reynolds