Craftsman is the workhorse behind the Wrapt framework and provides a suite of CLI commands for quickly scaffolding out new files and projects for your .NET Web APIs with simple CLI commands and configuration files.
- Make sure you have the .NET 8 SDK installed, along with EF Core
- Install the craftsman tool
dotnet tool install -g craftsman
- Spin up an example project
craftsman new example MyFirstProject
For all the documentation on how to use Craftsman, visit wrapt.dev.
You can find some highlights below. I have some reminement items in the pipe and I'm working through a deep example project the really dogfood things and will be making updates around my finding from there.
Have a request for something you don't see in the project? Join our discord and let's talk about it!
β Primary Constructors
β Updated API Versioning
β .NET 8 scaffolding
β Archicture test enhancement
β Remove obsolete BFF commands
β Fix test actions
β Logging enhancements and masking
β Dependabot and Github Actions for tests
β
string[]
support for Postgres
β Value Object property scaffolding
β Moq -> NSub
β
New GetAll
feature
β Hangfire scaffolding
β Move from Sieve to QueryKit
β TestContainers updated
β Records for queries and commands and DTOs
β Relationships overhaul
β New default error handler middleware (existing still optional)
β Mapster -> Mapperly
β Intermediate model to not pass DTOs to domain
β Specification support
β Test projects updated to use XUnit
β .NET 7
β Integration tests have better service collection scoping and now have a service collection per test. This makes service mocking possible without clashing with other tests
β Options Pattern Configuration
β Environment Service
β Built in Migrations
β Various testing and other improvements
β Users and Roles managed in each boundary (AuthN still separate)
β
New Email
Value Object
β Functional Tests use Docker DB and has other cleanup items
β NextJS template (still a WIP and not documented, but you can find the sandbox for things here and poke through the Craftsman code if you'd like. Can answer questions in out Discord as well.)
β Testing Optimizations
β Common Value Object Scaffolding
β Auth Server rewrite with Keycloak
β Move permission guards to feature
β
Migrate Automapper
to Mapster
β Updated CLI command structure
β OpenTelemetry & Jaeger Tracing
β Built in Domain Event support (with unit test scaffolding)
β
Moved to Program.cs
only format
β Added repository & unit of work abstractions for better testing and validation
β SmartEnum property scaffolding support
β Duende BFF scaffolding
β React scaffolding
β Dockerfile and Docker Compose scaffolding
β DDD promoted entities (private setters, factory methods, associated fakers)
β Huge permissions upgrade. Significantly simplified setup which resulted in a new library (HeimGuard) that can be used in any .NET project.
β
New register:producer
command
β Added soft delete capability
β Added Shared Kernel
β .NET 6 Scaffolding
β Docker utility updates for integration tests using Fluent Docker π³
β
add:feature
enhancement to add more than just ad-hoc features
β
new:example
command to generate example projects with associated templates
β Auth Server Scaffolding (In-Memory)
β Auditable entities
If Wrapt and Craftsman are saving you time and helping your projects, consider sponsoring me on Github to support ongoing Wrapt development and make it even better!
Time is of the essence. Before developing a Pull Request I recommend opening a new topic for discussion. I also haven't had enough PR interest to take the time and put together a contributing.md
, but if you are interested, I will definitely put together a detailed writeup.
Sometimes Github notifications get lost in the shuffle. If you file an issue and don't hear from me in 24-48 hours feel free to ping me on twitter or Discord (pdevito3#4244). We also have own discord channel now for easy contact with me and larger community discussions!