Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Create a cookiecutter-like template #6

Open
mostafa opened this issue Mar 3, 2024 · 5 comments
Open

Create a cookiecutter-like template #6

mostafa opened this issue Mar 3, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@mostafa
Copy link
Member

mostafa commented Mar 3, 2024

Cookiecutter templates are good for scaffolding new projects based on a template. There are similar projects for Go, like go-scaffold. The idea is to convert this project into a cookiecutter(-like) template and let the gatewayd plugin scaffold/init command take care of creating a project for the user.

Related

@mostafa mostafa converted this from a draft issue Mar 3, 2024
@mostafa mostafa added the enhancement New feature or request label Mar 3, 2024
@mostafa mostafa changed the title Create cookiecutter-like template Create a cookiecutter-like template Mar 3, 2024
@mostafa mostafa moved this from 🆕 New to 📋 Backlog in Plugins Public Roadmap Mar 15, 2024
@zeina1i
Copy link
Member

zeina1i commented Mar 15, 2024

Screenshot 2024-03-15 at 21 41 45

Hey @mostafa ,

1-I consider the above directory structure for the templates. Do you agree with the structure?
2-With the introduction of cookiecutter-like templating, the flow for creating plugins will change. Currently, users can fork or use the GitHub template to get started. However, with templating, users will scaffold their plugin in a separate directory/project using this project and the scaffolder command in gatewayd project. Is my assumption correct?

@mostafa
Copy link
Member Author

mostafa commented Mar 16, 2024

Hey @zeina1i,

  1. Yes.
  2. I suppose that the gatewayd command will take care of generating a plugin from the template. I can create a separate repo to continue the development of this template-based system. WDYT?

@zeina1i
Copy link
Member

zeina1i commented Mar 16, 2024

Hey @mostafa

Yes. I agree.
Let's do it👍

@mostafa
Copy link
Member Author

mostafa commented Mar 18, 2024

Hey @zeina1i,

I created this repo and added you.

@zeina1i
Copy link
Member

zeina1i commented Mar 19, 2024

Hey @mostafa
Thanks, I will check it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants