Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Config File and Watch #562

Closed
EricDunaway opened this issue Mar 21, 2023 · 3 comments
Closed

Feature Request: Config File and Watch #562

EricDunaway opened this issue Mar 21, 2023 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@EricDunaway
Copy link

EricDunaway commented Mar 21, 2023

Feature Request: Config File and Watch for generate command

I prefer to use the typia generate feature over patching typescript especially now the ts-patch does not support typescript v5. Could typia support a config file and watch functionality for generate?

  • I am looking to have one place to configure multiple input and output directories for a mono repo setup and to have the output regenerated when files in the input directories change.

Example Use:

NestJS Project:

In a nest mono repo project, multiple libraries may exist, and a project would want separate input and output directories for each library and the ability to regenerate the generated files when files in the input directories change.

nest project/
├─ apps/
│  ├─ app-1/
│  ├─ app-2/
├─ libs/
│  ├─ lib-1/
│  │  ├─ src/
│  │  │  ├─ types/
│  │  │  │  ├─ generated-typia/
│  │  │  │  │  ├─ <generated files>
│  │  │  │  ├─ src-typia/
│  │  │  │  │  ├─ type-2.ts
│  │  │  │  ├─ index.ts
│  ├─ lib-2/
│  │  ├─ src/
│  │  │  ├─ dtos/
│  │  │  │  ├─ generated-typia/
│  │  │  │  │  ├─ <generated files>
│  │  │  │  ├─ src-typia/
│  │  │  │  │  ├─ type-1.ts
│  │  │  │  ├─ index.ts
@EricDunaway EricDunaway changed the title ## Feature Request: Config File and Watch Feature Request: Config File and Watch Mar 21, 2023
@samchon
Copy link
Owner

samchon commented Mar 30, 2023

Not possible to providing watch mode, but configuration file is possible.

Can you design an interface type of the configuration file what you want?

@samchon samchon self-assigned this Mar 30, 2023
@samchon samchon added the question Further information is requested label Mar 30, 2023
@samchon
Copy link
Owner

samchon commented Mar 30, 2023

By the way, ts-patch seems to support to v5 in near time:

nonara/ts-patch#93 (comment)

@samchon
Copy link
Owner

samchon commented Jun 29, 2023

Close due to ts-patch started supporting TS 5

@samchon samchon closed this as completed Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants