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

Custom template #60

Merged
merged 5 commits into from
Jun 26, 2020
Merged

Custom template #60

merged 5 commits into from
Jun 26, 2020

Conversation

andrefilimono
Copy link
Contributor

@andrefilimono andrefilimono commented Jun 25, 2020

This feature (closes #54) enables users to generate models and a client by providing path to a directory containing custom templates using a new CLI parameter -t --template.
It's also allows us to skip unnecessary templates if generating of a client or route types is not needed.

@js2me js2me changed the base branch from master to next June 25, 2020 20:15
@js2me js2me changed the base branch from next to master June 25, 2020 20:24
@js2me js2me changed the base branch from master to next June 25, 2020 20:24
index.js Outdated Show resolved Hide resolved
src/templates.js Outdated Show resolved Hide resolved
@js2me
Copy link
Member

js2me commented Jun 26, 2020

@andrefilimono Thank you for this PR with a nice feature!

@js2me js2me merged commit 72733ee into acacode:next Jun 26, 2020
js2me added a commit that referenced this pull request Jun 26, 2020
* feat: allow to provide custom templates

* docs: update readme

* internal: add manual test script for custom templates option

* feat: resolving paths to templates

* internal: adjust test for custom templates

Co-authored-by: svolkov <svolkov@everpoint.ru>
Co-authored-by: andrefilimono <andrefilimono@gmail.com>
js2me added a commit that referenced this pull request Jun 26, 2020
* Custom template (#60)

* feat: allow to provide custom templates

* internal: add manual test script for custom templates option

* feat: resolving paths to templates

* internal: adjust test for custom templates

Co-authored-by: Volkov Sergey <js2me@outlook.com>
Co-authored-by: Filimonov Andrey <andrefilimono@gmail.com>

* [Feature] `--union-enums` CLI option (#61)

* feat: add --union-enums cli option which generate all enums as union types

* docs: update README, CHANGELOG

* chore(fix): manual test for union enums option

* docs: update CHANGELOG; bump: up version to 1.10.0

Co-authored-by: Filimonov Andrey <andrefilimono@gmail.com>
@andrefilimono andrefilimono deleted the feature/custom-templates branch June 27, 2020 09:07
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.

Custom Templates
2 participants