Razor components to house commonly used web components in my Blazor projects. It is the Razor equivalent to my component library for ReactJS projects (@Smalls1652/react-smallsonline-core)
If you want to see the test app in action you can visit it here:
This component library is utilizing Bootstrap and wrapping specific CSS classes into usable Razor components. The intention of making this component library is to make implementing the UI easier and to keep the UI consistent across various different projects. The goal is to keep it in line with what I'm doing in the ReactJS version of this.
- .NET 6 SDK
- PowerShell 7 (or higher)
- NodeJS/NPM
- NPM is needed for installing/updating Bootstrap into the test project.
To initialize both the component library and the test app, run the following in a PowerShell console (pwsh
):
# Either of these commands are valid:
# Using the parameter to directly specify
.\init.ps1 -Project "ComponentLibraryAndTestApp"
# Using the default parameter values:
.\init.ps1
To initialize only the component library, run:
.\init.ps1 -Project "ComponentLibrary"
To build both the component library and the test app, run the following in a PowerShell console (pwsh
):
# Either of these commands are valid:
# Using the parameter to directly specify
.\build.ps1 -Project "ComponentLibraryAndTestApp"
# Using the default parameter values:
.\build.ps1
To build only the component library, run:
.\build.ps1 -Project "ComponentLibrary"
In addition you can add the -Config
parameter to select a config type (Either Release
or Debug
). By default it uses the Release
config.
# Build the component library using the 'Debug' config.
.\build.ps1 -Project "ComponentLibrary" -Config "Debug"
# Build the component library and the test app using the 'Release' config.
.\build.ps1 -Project "ComponentLibraryAndTestApp" -Config "Release"