Feat/blazor templates#198
Open
dkalinovInfra wants to merge 5 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Introduces
IgniteUI.Blazor.Templates, adotnet newtemplate pack that scaffolds a ready-to-run Blazor Web App preconfigured with IgniteUI for Blazor (Lite + GridLite). The pack exposes theigb-blazorshort name and supports parameterized hosting model (Server/Wasm/Auto), theme (bootstrap/material/fluent/indigo), color variant (light/dark), and an opt-in Weather demo page (IgbGridLite + ApexCharts). Generated projects targetnet10.0and ship with the IgniteUI theme<link>s andapp.bundle.js<script>already wired intoComponents/App.razor. Localized template strings are included foren,ja, andko. The template lives undertemplates/IgniteUI.Blazor.Templates/and packs as a standalone NuGet template package; no source inIgniteUI.Blazor.Lite.csprojis modified.Motivation / Context
Consumers adopting IgniteUI for Blazor currently have to start from the stock Blazor Web App template and manually add the IgniteUI package reference, theme
<link>tags, JS bundle<script>, and DI registration before they can use any component. This template pack removes that boilerplate:dotnet new igb-blazor -n MyApp(or the VS "New Project" dialog) produces a project that builds, runs, and renders IgniteUI components on first launch, including a working sample page that exercisesIgbGridLiteand a chart.Type of Change (check all that apply):
Component(s) / Area(s) Affected:
templates/IgniteUI.Blazor.Templates/(template pack project,template.json,ide.host.json, localized strings, content tree)templates/README.md(local pack/install/smoke-test loop documentation)IgniteUI.Blazor.Litelibrary sourcesHow Has This Been Tested?
Manual smoke loop per
templates/README.md:dotnet packthe template project, thendotnet new installthe produced nupkg.dotnet new igb-blazor -hlists the expected parameter surface (--Hosting,--Theme,--Variant,--IncludeWeatherSample,--SkipRestore).Server,Wasm,Auto) into a fresh directory; verified the output layout (Serverproduces a single project,Wasm/Autoproduce host +.Client+.slnfrom CLI, no.slnfrom VS) and that namespaces inProgram.cs,_Imports.razor,Models/,Services/are renamed to match-n./,/counter, and/weatherreturn 200; navbar/nav-drawer render; with--IncludeWeatherSample truethe grid + chart render and theigc-*custom elements are present in the DOM.--Themeand--Variantand confirming the generatedApp.razor<link>URLs and chart light/dark mode match.HostIdentifier) and omits the.slnso VS can create its own.slnx.DOTNET_CLI_UI_LANGUAGE=ja dotnet new igb-blazor -h.Test Configuration:
net10.0)Screenshots / Recordings
N/A — no visual changes to the library itself. The generated sample app renders the stock IgniteUI navbar / nav-drawer /
IgbGridLitechrome.Checklist:
README.MDCHANGELOG.MDupdates for newly added functionalityCloses #