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

✨ Add a working ecs example on project init #12

Merged
merged 17 commits into from
Jan 27, 2024

Conversation

GabrielePicco
Copy link
Contributor

@GabrielePicco GabrielePicco commented Jan 25, 2024

Add a working ecs example on project init

Status Type ⚠️ Core Change Issue
Hold Feature No #5

Problem

Complex to setup the ECS and interaction with the World program

Solution

  • On Init, create a minimal working example with one Component and one System
  • Anchor.toml specify the accounts that needs to be cloned in the local validator

Other improvements

  • Fix --version command
  • Enable the --force flag to init over existing folders
  • Remove -n from the component and systems command. E.g.: creating a component now can be done with bolt component new-component
  • Add tests for the CLI. Added a workflow to install it, create a new-project and run the tests of the new project

Dependencies

Depends on coral-xyz/anchor#2785 for defining workspace members

[workspace]
members = [
    "programs/*",
    "programs-ecs/components/*",
    "programs-ecs/systems/*"
]

Issues

Closes #5

@GabrielePicco GabrielePicco self-assigned this Jan 25, 2024
@GabrielePicco GabrielePicco added enhancement New feature or request cli labels Jan 25, 2024
@GabrielePicco GabrielePicco merged commit 4be0728 into main Jan 27, 2024
8 checks passed
@GabrielePicco GabrielePicco deleted the feat/add-working-ecs-example-on-init branch January 27, 2024 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add component/system example in project template created with Bolt Init
1 participant