Commit Graph

152 Commits

Author SHA1 Message Date
didavila
463626da0c feat: add .spec.ts generation for models, mappers, repositories and use-cases
Add 4 new Mustache templates for generating unit test specs:
- model-entity.spec.mustache: tests instantiation, property setting, mock builder
- mapper.spec.mustache: tests per-property DTO→Entity mapping, instanceof, all fields
- api.repository.impl.spec.mustache: tests HTTP method, response mapping, error propagation
- api.use-cases.impl.spec.mustache: tests repository delegation, observable forwarding

Generator changes:
- Add uppercaseHttpMethod to TagOperation for spec HTTP assertions
- Add testValue to TagOperationParam for auto-generated test arguments
- Add resolveTestParamValue utility for primitive/complex type test literals
- Add specs counter to GeneratedCount and GenerationReport
- Wire 4 new renderTemplate calls in schema and tag loops
- Update report generator to count .spec.ts files

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-26 10:52:58 +01:00
05a58c4254 chore: bump to version v1.1.0 2026-03-25 10:52:48 +00:00
d4d6148b25 Merge pull request 'feat: add mocks-generator' (#47) from feat/mocks-generator into main
Some checks failed
Publish / publish (push) Failing after 57s
Reviewed-on: #47
Reviewed-by: blas <me@blassanto.me>
v1.1.0
2026-03-25 10:49:34 +00:00
didavila
cc650f9635 Merge branch 'main' into feat/mocks-generator
All checks were successful
Lint / lint (pull_request) Successful in 15s
2026-03-25 11:15:53 +01:00
didavila
99658800ed feat: ensure required fields are marked with '!' in generated model entities 2026-03-25 11:15:37 +01:00
0c162e30b8 Merge pull request 'chore: migrate from node to bun' (#46) from test/bun into main
Reviewed-on: #46
Reviewed-by: didavila <diego.davilafreitas@gmail.com>
2026-03-25 10:14:22 +00:00
didavila
9c14a070c6 feat: add linting option and implement linting for generated TypeScript files 2026-03-25 11:10:08 +01:00
94263d0329 chore: fix bun action
All checks were successful
Lint / lint (pull_request) Successful in 4m16s
2026-03-25 11:04:48 +01:00
06c4356f16 chore: fix bun action
All checks were successful
Lint / lint (pull_request) Successful in 15s
2026-03-25 11:01:50 +01:00
didavila
917cc3b9cf feat: add mock generation for DTOs, models, and repositories with corresponding templates 2026-03-25 11:01:21 +01:00
c6fbc4c47c chore: fix bun action
Some checks failed
Lint / lint (pull_request) Failing after 16s
2026-03-25 10:57:17 +01:00
1b342b871b chore: fix bun action
Some checks failed
Lint / lint (pull_request) Failing after 5s
2026-03-25 10:55:01 +01:00
a01b5a2d82 chore: fix bun install
Some checks failed
Lint / lint (pull_request) Failing after 14s
2026-03-25 10:53:45 +01:00
16fe772bd2 chore: migrate from node to bun
Some checks failed
Lint / lint (pull_request) Failing after 7s
2026-03-25 10:52:30 +01:00
2c1163809a chore: migrate from node to bun
Some checks failed
Lint / lint (pull_request) Failing after 19s
2026-03-25 10:51:14 +01:00
e4e88d184e chore: migrate from node to bun
Some checks failed
Lint / lint (pull_request) Failing after 5s
2026-03-25 10:46:24 +01:00
f51eaf7c78 chore: migrate from node to bun
Some checks failed
Lint / lint (pull_request) Failing after 6s
2026-03-25 10:43:19 +01:00
e1ef10f317 chore: migrate from node to bun
Some checks failed
Lint / lint (pull_request) Failing after 6s
2026-03-25 10:39:36 +01:00
77b77a17f4 chore: migrate from node to bun
Some checks failed
Lint / lint (pull_request) Failing after 5s
2026-03-25 10:38:27 +01:00
e69826b824 Merge branch 'main' into test/bun
Some checks failed
Lint / lint (pull_request) Failing after 2m51s
2026-03-25 10:25:32 +01:00
21b0333788 chore: migrate from node to bun 2026-03-25 10:25:23 +01:00
04d2299a4c chore: migrate from node to bun 2026-03-25 10:17:14 +01:00
a0a8ba28f5 Merge pull request 'feat: translate-to-english' (#41) from feat/translate-to-english into main
Reviewed-on: #41
Reviewed-by: blas <me@blassanto.me>
2026-03-25 09:13:24 +00:00
didavila
3bec87ba6b Merge branch 'main' into feat/translate-to-english
All checks were successful
Lint / lint (pull_request) Successful in 13s
2026-03-25 10:09:46 +01:00
didavila
c86c6bece6 feat: translate application messages and logs to English for improved accessibility 2026-03-25 10:09:30 +01:00
e776d49a77 Merge pull request 'feat: translate comments and logs to English for better accessibility' (#40) from feat/translate-to-english into main
Reviewed-on: #40
Reviewed-by: didavila <diego.davilafreitas@gmail.com>
2026-03-25 08:33:30 +00:00
f09e19265b Merge branch 'main' into feat/translate-to-english
All checks were successful
Lint / lint (pull_request) Successful in 5m58s
2026-03-25 08:25:23 +00:00
7d51b6b3db Merge pull request 'fix: fix lint in files and add a pipe for checking' (#38) from fix/fix-lint into main
Reviewed-on: #38
Reviewed-by: didavila <diego.davilafreitas@gmail.com>
2026-03-25 08:10:48 +00:00
0eb918ed71 fix: fix lint in files and add a pipe for checking
All checks were successful
Lint / lint (pull_request) Successful in 10m22s
2026-03-25 08:53:03 +01:00
didavila
5f34aa2f89 feat: translate comments and logs to English for better accessibility 2026-03-25 08:44:39 +01:00
dd6bb3e755 Merge branch 'main' into fix/fix-lint
Some checks failed
Lint / lint (pull_request) Failing after 5m58s
# Conflicts:
#	main.ts
2026-03-25 08:35:49 +01:00
700597a9e8 fix: fix lint in files and add a pipe for checking
All checks were successful
Lint / lint (pull_request) Successful in 10m28s
2026-03-25 08:33:10 +01:00
ad9a957be4 chore: bump to version v1.0.1 2026-03-25 07:23:39 +00:00
f85b981ceb Merge pull request 'feat: add tag/endpoint selection mechanism' (#35) from feat/#11 into main
Reviewed-on: #35
Reviewed-by: didavila <diego.davilafreitas@gmail.com>
2026-03-24 19:07:38 +00:00
1cd25d2b90 Merge branch 'main' into feat/#11
Some checks failed
Publish npm package / publish (push) Failing after 4m22s
v1.0.1
2026-03-24 19:59:16 +01:00
bada7ba0e9 Merge pull request 'feat: add base url mechanism' (#34) from feat/#10 into main
Reviewed-on: #34
Reviewed-by: didavila <diego.davilafreitas@gmail.com>
2026-03-24 18:53:04 +00:00
b8d2fd8582 feat: add tag/endpoint selection mechanism 2026-03-24 19:51:48 +01:00
a90f7ba078 feat: add base url mechanism 2026-03-24 19:28:28 +01:00
4aeb108c55 feat: add base url mechanism 2026-03-24 19:15:47 +01:00
a9bbf21317 chore: bump to version v1.0.0 2026-03-24 15:52:12 +00:00
324e4f458c Merge pull request 'fix: review import templates' (#33) from feat/review-imports into main
All checks were successful
Publish npm package / publish (push) Successful in 2m15s
Reviewed-on: #33
Reviewed-by: blas <me@blassanto.me>
v1.0.0
2026-03-24 15:48:22 +00:00
didavila
5229a3ad45 refactor: separate return and param imports in Clean Architecture generator 2026-03-24 16:40:34 +01:00
didavila
ca63b85086 refactor: remove unused imports section from model template 2026-03-24 16:31:17 +01:00
didavila
e008144813 refactor: normalize array type notation from Array<T> to T[] in generators and type mapper 2026-03-24 16:27:10 +01:00
didavila
73dcb6f701 Merge branch 'main' into feat/review-imports 2026-03-24 16:10:59 +01:00
ac9d4ceb99 chore: bump to version v0.0.1-alpha 2026-03-24 15:04:46 +00:00
e9bf03a4fe Merge pull request 'chore: update secrets' (#32) from chore/update-secrets into main
All checks were successful
Publish npm package / publish (push) Successful in 3m7s
Reviewed-on: #32
v0.0.1-alpha
2026-03-24 15:02:20 +00:00
didavila
e8c919ee76 feat: collect and render model imports for referenced types in Clean Architecture generation 2026-03-24 16:02:17 +01:00
87e59c4955 chore: update secrets 2026-03-24 16:01:50 +01:00
cf0ba60b91 chore: bump to version v0.0.1-alpha 2026-03-24 14:54:26 +00:00