Skip to content

refactor(igc-ts): cleanup project scripts setup#1622

Open
damyanpetev wants to merge 10 commits intomasterfrom
dpetev/update-wc
Open

refactor(igc-ts): cleanup project scripts setup#1622
damyanpetev wants to merge 10 commits intomasterfrom
dpetev/update-wc

Conversation

@damyanpetev
Copy link
Copy Markdown
Member

Closes # .

Additional information related to this pull request:

@coveralls
Copy link
Copy Markdown

coveralls commented Apr 14, 2026

Coverage Status

coverage: 86.278%. remained the same — dpetev/update-wc into master

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the igc-ts Web Components project templates to simplify the tooling setup (Vite-first workflow), modernize TypeScript/lint configuration, and align template code with the updated build/dev story.

Changes:

  • Update Web Components template entrypoints to load ./src/index.ts (instead of ./dist/src/index.js) and adjust corresponding update spec expectations.
  • Simplify template package.json scripts/dependencies (remove tsc/concurrently/rimraf pipeline; use vite/vitest directly; move typescript to devDependencies).
  • Modernize template TS/ESLint config (bundler-mode tsconfig, lit ESLint flat config, and a narrower parserOptions.project list in repo ESLint config).

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated no comments.

Show a summary per file
File Description
spec/unit/update-spec.ts Updates the HTML fixture expectations used by workspace update unit tests to match the new template entrypoint.
packages/cli/templates/webcomponents/igc-ts/projects/side-nav/files/src/app/app.ts Layout/style adjustments for side-nav template + minor template cleanup.
packages/cli/templates/webcomponents/igc-ts/projects/_base_with_home/files/src/app/app-routing.ts Uses import { type Route } for type-only import.
packages/cli/templates/webcomponents/igc-ts/projects/_base_with_home/files/package.json Simplifies scripts and dependency placement for the “base with home” template.
packages/cli/templates/webcomponents/igc-ts/projects/_base_with_home/files/index.html Switches entry script to ./src/index.ts.
packages/cli/templates/webcomponents/igc-ts/projects/_base/files/vite.config.ts Minor config cleanup (including removing emptyOutDir: false).
packages/cli/templates/webcomponents/igc-ts/projects/_base/files/tsconfig.test.json Removes the dedicated test TS config (no longer referenced by scripts).
packages/cli/templates/webcomponents/igc-ts/projects/_base/files/tsconfig.json Replaces old emit-based TS config with Vite-style “bundler mode” no-emit config.
packages/cli/templates/webcomponents/igc-ts/projects/_base/files/src/app/app-routing.ts Uses import { type Route } for type-only import.
packages/cli/templates/webcomponents/igc-ts/projects/_base/files/package.json Simplifies scripts and dependency placement for the base template.
packages/cli/templates/webcomponents/igc-ts/projects/_base/files/index.html Switches entry script to ./src/index.ts.
packages/cli/templates/webcomponents/igc-ts/projects/_base/files/eslint.config.js Adds lit flat recommended config + normalizes formatting.
packages/cli/templates/webcomponents/igc-ts/grid/grid-editing/files/src/app/path/filePrefix.ts Converts a type import to type-only import.
packages/cli/templates/webcomponents/igc-ts/grid/default/files/src/app/path/filePrefix.ts Converts a type import to type-only import.
packages/cli/templates/webcomponents/igc-ts/dock-manager/default/files/src/app/path/filePrefix.ts Converts a type import to type-only import.
packages/cli/templates/webcomponents/igc-ts/card/default/files/src/app/path/filePrefix.ts Updates component registrations and card actions markup for the card template.
eslint.config.mjs Narrows TypeScript project references used by ESLint’s TS parser.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants