Skip to content

feat: new argument to use a custom external generator #311

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

Merged
merged 1 commit into from
Nov 16, 2021

Conversation

Shywim
Copy link
Contributor

@Shywim Shywim commented Nov 16, 2021

Q A
Branch? main
Tickets #52
License MIT
Doc PR api-platform/docs#1469

This allow the -g/--generator argument to specify a path, allowing to use custom generators.

The argument can point to any node module.

A quick and dirty command to test is available as yarn test-gen-custom.

Notes:

  • the lib entrypoint is now an async function because we do a dynamic import to load the custom generator inside src/generators.js

TODO:

  • changelog
  • doc

actually add the command

don't use a new argument
@Shywim Shywim force-pushed the feature/support-custom-templates branch from ab90a62 to b744312 Compare November 16, 2021 12:48
@Shywim Shywim marked this pull request as ready for review November 16, 2021 13:06
@dunglas dunglas merged commit d4c2421 into api-platform:main Nov 16, 2021
@dunglas
Copy link
Member

dunglas commented Nov 16, 2021

Thank you!

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