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

Refactor into workspace #20

Merged
merged 5 commits into from
Jun 9, 2021
Merged

Refactor into workspace #20

merged 5 commits into from
Jun 9, 2021

Conversation

MikkelPaulson
Copy link
Collaborator

This converts the project into a workspace, with all code in child crates. You may think I just (#18) refactored the entire code base, but mostly this is just continuing in the same direction as past changes.

Effectively, this leaves us with the following structure:

  • cli
    • light
    • rich
  • core
    • app
      • context
      • parser
    • world
  • macros
  • scripts

The web crate will follow. Generally core is currently a dumping ground for things that are used by both web and cli, but it may be further subdivided in the future.

Unfortunately this is a big 'un, but it's hard to rearrange this much
code in bite-sized pieces. The gist of it is:

* initiative::app -> initiative_core::app
* initiative::world -> initiative_core::world
* initiative::app::interface -> initiative_cli
Now the CLI binary starts from main.rs in the CLI package. Somehow this
didn't occur to me before.
@MikkelPaulson MikkelPaulson merged commit 73fe772 into main Jun 9, 2021
@MikkelPaulson MikkelPaulson deleted the refactor-to-workspace branch June 9, 2021 18:40
@MikkelPaulson MikkelPaulson added this to In progress in Web frontend via automation Jun 9, 2021
@MikkelPaulson MikkelPaulson linked an issue Jun 9, 2021 that may be closed by this pull request
2 tasks
@MikkelPaulson MikkelPaulson moved this from In progress to Done in Web frontend Jul 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Cross-compile to WASM
1 participant