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

Generate default option: command #568

Open
1 task done
paularmstrong opened this issue Jan 21, 2024 · 0 comments
Open
1 task done

Generate default option: command #568

paularmstrong opened this issue Jan 21, 2024 · 0 comments
Labels
⚛️ core The oneRepo core 🚀 feature New feature or request
Milestone

Comments

@paularmstrong
Copy link
Owner

paularmstrong commented Jan 21, 2024

Describe the problem

Commands in oneRepo have a basic boilerplate structure and requirements. Copy/paste is fine, but error prone.

Suggest a solution

Have a default provided template for one generate that can build the command boilerplate.

This is not completely straightforward because the generate command itself looks for .onegen generation config files and templates out files in found directories. While that sounds okay, oneRepo is built by bundling its code, so references to templating files won't directly work.

One alternative would be to create a package of packages of templates. This could be nice to support some defaults, but I'm wary of this running down the path of Nx's generators that are really specific and opinionated and aren't always that helpful for real-world scenarios. I'd hate to have too much cruft to maintain.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@paularmstrong paularmstrong added 🚀 feature New feature or request ⚛️ core The oneRepo core labels Jan 21, 2024
@paularmstrong paularmstrong added this to the 1.0.0 milestone Jan 21, 2024
@paularmstrong paularmstrong modified the milestones: 1.0.0, 1.x.x Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚛️ core The oneRepo core 🚀 feature New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant