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

Namespacing for commands and frontend scaffolding #72

Open
fadeev opened this issue Jul 8, 2022 · 1 comment
Open

Namespacing for commands and frontend scaffolding #72

fadeev opened this issue Jul 8, 2022 · 1 comment
Labels
enhancement New feature or request ⚙️ task A task belongs to an epic

Comments

@fadeev
Copy link

fadeev commented Jul 8, 2022

Right now there are beaker new and beaker wasm new. There will be more code scaffolding commands, and it's a good practice to keep them in the same namespace.

beaker new project
beaker new contract
beaker new contract-counter
beaker new frontend

(doesn't have to be new, can be scaffold, create, etc.)

Currently, beaker wasm new creates a contract with a counter logic. This is helpful for new devs (to understand how to write a simple contract), but one might also want an empty contract to not have to delete scaffolded code they no longer need, hence beaker new contract.

This brings me to the frontend, which contains the counter logic, even if a dev hasn't scaffolded a contract yet. The counter logic on the frontend is incredibly simple and the main bits are barely 50 lines long. The proposal is to:

  • by default scaffold a frontend without the counter logic
  • add beaker new frontend in case a user has deleted the frontend dir or they just want to build a frontend
  • move the frontend logic counter into a short tutorial
@iboss-ptk
Copy link
Collaborator

iboss-ptk commented Jul 11, 2022

That makes a lot of sense! lower priority for now but will do that after next release.

@iboss-ptk iboss-ptk added ⚙️ task A task belongs to an epic enhancement New feature or request labels Jul 11, 2022
@iboss-ptk iboss-ptk modified the milestone: 0.0.5 Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ⚙️ task A task belongs to an epic
Projects
Status: No status
Development

No branches or pull requests

2 participants