refactor(igc-ts): centralize Web Components package version constants#1752
Merged
Conversation
Copilot
AI
changed the title
[WIP] Refactor webcomponents templates to centralize package versions
refactor(igc-ts): centralize Web Components package version constants
Jul 14, 2026
kdinev
previously approved these changes
Jul 14, 2026
627955c to
7ac9226
Compare
damyanpetev
approved these changes
Jul 14, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Centralizes igniteui-webcomponents-* package version strings for the webcomponents/igc-ts templates into a single constants module, reducing duplication across template definitions and making version updates easier to apply consistently.
Changes:
- Added a new
constants.tsmodule exporting sharedigniteui-webcomponents-*package specifiers (name + version). - Updated multiple
igc-tscomponent templateindex.tsfiles to import and use these constants instead of hardcoded strings. - Updated the
igniteui-webcomponents-gridsdependency version in the_base_with_homeproject templatepackage.json.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| packages/cli/templates/webcomponents/igc-ts/constants.ts | Introduces shared constants for Web Components package specifiers. |
| packages/cli/templates/webcomponents/igc-ts/tree/default/index.ts | Replaces hardcoded package strings with imported constants for tree template deps. |
| packages/cli/templates/webcomponents/igc-ts/tree-grid/basic/index.ts | Uses centralized grids package constant. |
| packages/cli/templates/webcomponents/igc-ts/radial-gauge/default/index.ts | Uses centralized core + gauges package constants. |
| packages/cli/templates/webcomponents/igc-ts/linear-gauge/default/index.ts | Uses centralized core + gauges package constants. |
| packages/cli/templates/webcomponents/igc-ts/pie-chart/default/index.ts | Uses centralized core + charts package constants. |
| packages/cli/templates/webcomponents/igc-ts/financial-chart/default/index.ts | Uses centralized core + charts package constants. |
| packages/cli/templates/webcomponents/igc-ts/grid/default/index.ts | Uses centralized grids package constant. |
| packages/cli/templates/webcomponents/igc-ts/grid/grid-editing/index.ts | Uses centralized grids package constant. |
| packages/cli/templates/webcomponents/igc-ts/grid/grid-summaries/index.ts | Uses centralized grids package constant. |
| packages/cli/templates/webcomponents/igc-ts/hierarchical-grid/basic/index.ts | Uses centralized grids package constant. |
| packages/cli/templates/webcomponents/igc-ts/pivot-grid/basic/index.ts | Uses centralized grids package constant. |
| packages/cli/templates/webcomponents/igc-ts/projects/_base_with_home/files/package.json | Bumps igniteui-webcomponents-grids version to ~7.2.1. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "igniteui-webcomponents-core": "~7.0.0", | ||
| "igniteui-webcomponents-gauges": "~7.0.0", | ||
| "igniteui-webcomponents-grids": "~7.1.0", | ||
| "igniteui-webcomponents-grids": "~7.2.1", |
kdinev
approved these changes
Jul 14, 2026
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.
This follow-up on
update-wc-reactapplies the same version-centralization pattern used in React templates to Web Componentsigc-tstemplates, so shared package updates are defined once and reused consistently. It removes repeatedigniteui-webcomponents-*version strings from component template classes while preserving where project-level dependency declarations belong.What changed
/packages/cli/templates/webcomponents/igc-ts/constants.tswith shared package constants for:igc-tstemplateindex.tsfiles (includingtree/default/index.ts, grid variants, chart/gauge templates, and related grid templates) to import constants instead of hardcoded@~x.y.zstrings.Scope boundaries
package.jsontemplates underprojects/_base*unchanged, matching existing repository conventions.Pattern example