Skip to content

removed template files and added new tests#7

Merged
y-aithnini merged 3 commits intodevelopfrom
feature/improvements
Apr 10, 2026
Merged

removed template files and added new tests#7
y-aithnini merged 3 commits intodevelopfrom
feature/improvements

Conversation

@y-aithnini
Copy link
Copy Markdown

Summary

  • What does this PR change?

Why

  • Why is this change needed?

Checklist

  • Added/updated tests (if behavior changed)
  • npm run lint passes
  • npm run typecheck passes
  • npm test passes
  • npm run build passes
  • Added a changeset (npx changeset) if this affects consumers

Notes

  • Anything reviewers should pay attention to?

@y-aithnini y-aithnini requested a review from a team as a code owner April 10, 2026 11:19
Copilot AI review requested due to automatic review settings April 10, 2026 11:19
Copy link
Copy Markdown

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 removes the leftover “example kit” template boilerplate from the package and expands @ciscode/config-kit’s public API around typed config ergonomics and async module registration patterns, with accompanying tests and a version bump.

Changes:

  • Removed template/example module files (controller/service/repository/DTO/entity/guard/decorator/module) from src/.
  • Added InferConfig<T> type helper, ConfigService.getAll(), and registerAsync() support for useClass / useExisting.
  • Added/updated unit + integration tests and bumped package version / changelog.

Reviewed changes

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

Show a summary per file
File Description
src/services/example.service.ts Removed template service boilerplate.
src/repositories/example.repository.ts Removed template repository boilerplate.
src/guards/example.guard.ts Removed template guard boilerplate.
src/example-kit.module.ts Removed template module boilerplate.
src/entities/example.entity.ts Removed template entity boilerplate.
src/dto/create-example.dto.ts Removed template DTO boilerplate.
src/dto/update-example.dto.ts Removed template DTO boilerplate.
src/decorators/example.decorator.ts Removed template decorator boilerplate.
src/controllers/example.controller.ts Removed template controller boilerplate.
src/index.ts Exported InferConfig and ConfigModuleOptionsFactory from the public API.
src/define-config.ts Added InferConfig<T> type helper.
src/define-config.spec.ts Added tests covering InferConfig<T> usage.
src/config.service.ts Added ConfigService.getAll() to retrieve the validated config object.
src/config.module.ts Extended registerAsync() to support useClass / useExisting via a shared async provider builder.
src/config.module.spec.ts Added integration tests for getAll() and registerAsync() class-based patterns.
package.json Bumped version to 0.3.0.
CHANGELOG.md Added a 0.3.0 entry describing the new API surface and template removal.

Copilot AI review requested due to automatic review settings April 10, 2026 12:42
Copy link
Copy Markdown

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.

Copilot was unable to review this pull request because the user who requested the review is ineligible. To be eligible to request a review, you need a paid Copilot license, or your organization must enable Copilot code review.

@y-aithnini y-aithnini merged commit 6615c6d into develop Apr 10, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants