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

CLI #36

Closed
kaermorchen opened this issue Jan 15, 2023 · 2 comments
Closed

CLI #36

kaermorchen opened this issue Jan 15, 2023 · 2 comments
Assignees

Comments

@kaermorchen
Copy link
Collaborator

Right now, all project files are created manually. It is not friendly. We need a cli tool. This is not a nearby issue; we need to create it when all file structures and concepts will be stable. But some suggestions now can reduce refactoring in the future.

The goal is to reduce amount of manual work for repeated actions like to generate a new route or component (as @lifeart have suggested in #30)

My thought:

  • the commands should be similar ember-cli
  • the project file structure shouldn't be hardcoded
  • be as simple as possible, but has a modular structure, and anyone can simply extend logic, override settings and create new commands in the project.
  • should be out of the box. It can be an external package, (may be in the monorepo with this demo), it allows to execute it from node_modules/bin/ or npx

Any other ideas?

@kaermorchen kaermorchen added the question Further information is requested label Jan 15, 2023
@lifeart
Copy link
Owner

lifeart commented Jan 15, 2023

agree, blueprints (for now) could be located in /blueprints, and likely should be way simplier, comparing to ember-cli one's.

Sample generators: https://dev.to/mbarzeev/creating-a-react-component-generator-20l, https://yeoman.io/

I like simplicity of https://plopjs.com/, but we could explore more if needed.

@kaermorchen kaermorchen removed the question Further information is requested label Jan 19, 2023
@kaermorchen kaermorchen self-assigned this Jan 19, 2023
@lifeart
Copy link
Owner

lifeart commented Jan 20, 2023

implemented in #41

@lifeart lifeart closed this as completed Jan 20, 2023
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

No branches or pull requests

2 participants