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

feat(create-module): use stencil-golang to create modules #146

Merged
merged 6 commits into from
Aug 31, 2024

Conversation

jaredallard
Copy link
Member

Adds support for generating modules with a manifest.yaml as well as
populating service.yaml using rgst-io/stencil-golang in library
mode, unless specified to create a native extension.

stencil-golang in library mode has full CI, and is used mainly only for
releasing. Eventually, the release logic will be moved out and turned
into some framework (or use some other one) since it is a bit awkward to
depend on that for non-Go repositories.

Adds support for generating modules with a `manifest.yaml` as well as
populating `service.yaml` using `rgst-io/stencil-golang` in library
mode, unless specified to create a native extension.

stencil-golang in library mode has full CI, and is used mainly only for
releasing. Eventually, the release logic will be moved out and turned
into some framework (or use some other one) since it is a bit awkward to
depend on that for non-Go repositories.
Copy link

cloudflare-workers-and-pages bot commented Aug 31, 2024

Deploying stencil with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4e0d2ec
Status: ✅  Deploy successful!
Preview URL: https://bbee0be0.stencil-1wj.pages.dev
Branch Preview URL: https://jaredallard-feat-stencil-cre.stencil-1wj.pages.dev

View logs


// ensure we have a name
if c.NArg() != 1 {
return errors.New("must provide a name for the module")
}

moduleName := c.Args().Get(0)
hasPlugin := false
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NTS: Hook this up to the type flag.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed type from cvs to a string slice since cvs never really made much sense and screws with the JSON schema

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not used any more since we got rid of gobox awhile back.

Copy link

codecov bot commented Aug 31, 2024

Codecov Report

Attention: Patch coverage is 77.45098% with 23 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cmd/stencil/create_module.go 79.24% 5 Missing and 6 partials ⚠️
pkg/configuration/configuration.go 70.00% 4 Missing and 2 partials ⚠️
pkg/configuration/type.go 62.50% 4 Missing and 2 partials ⚠️

📢 Thoughts on this report? Let us know!

@jaredallard
Copy link
Member Author

PR is in draft state because I'm on a plane with a pretty bad headache and this is the most I could manage before landing 🚀

@jaredallard jaredallard marked this pull request as ready for review August 31, 2024 16:30
@jaredallard jaredallard merged commit eadb7c5 into main Aug 31, 2024
5 checks passed
@jaredallard jaredallard deleted the jaredallard/feat/stencil-create-module-framework branch August 31, 2024 16:40
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.

1 participant