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

Add "scaffold" option for generated files #35

Merged
merged 6 commits into from
Jun 21, 2023
Merged

Conversation

pkedy
Copy link
Member

@pkedy pkedy commented Jun 19, 2023

This PR adds the --scaffold option to apex generate. This option allows an Apex configuration (and plugins) to defer generation of "scaffolded" files until the Apex spec is ready. This is important because once scaffolded files are generated, they cannot be regenerated because the developer would lose their changes.

Config example

generates:
  my_service.go:
    ifNotExists: true
    scaffold: true
    module: 'https://deno.land/x/apex_codegen@v0.1.9/go/mod.ts'
    visitorClass: ScaffoldVisitor

The developer runs apex generate --scaffold to include the generation of these files.

Other miscellaneous improvements:

  • Version bumps for std and dax
  • Removed dead code and fixed tests with remnants of shorthand tasks
  • Fixed bug where tables were being rendered twice

* Version bumps
* Removed dead code and fixed tests with remnants of shorthand tasks
* Fixed bug where tables were being rendered twice
@pkedy pkedy merged commit 59cbd1c into main Jun 21, 2023
1 check passed
@pkedy pkedy deleted the version_bumps_scaffold branch June 21, 2023 12:57
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.

None yet

1 participant