Skip to content

Component load pr - #554

Merged
AmyrAhmady merged 3 commits into
masterfrom
component-load-pr
Dec 29, 2022
Merged

AmyrAhmady merged 3 commits into
masterfrom
component-load-pr

Conversation

@Y-Less

@Y-Less Y-Less commented Dec 28, 2022

Copy link
Copy Markdown
Collaborator

Two small improvements to component loading:

  1. Adds "exclude": to the top level of the JSON so you can explicitly not load certain components. Especially when testing I would frequently have to list all the components and remove one just to load all but one:
{
    "exclude": [ "Vehicles" ]
}
  1. Gives a message when a component listed in "components": doesn't exist:
{
    "components": [ "Checkpoints", "GongZones", "Variables" ]
}

Now gives an error instead of silently failing.

@Y-Less

Y-Less commented Dec 28, 2022

Copy link
Copy Markdown
Collaborator Author

P.S. I now want to write a GongZones component...

@AmyrAhmady
AmyrAhmady merged commit d527a81 into master Dec 29, 2022
@AmyrAhmady
AmyrAhmady deleted the component-load-pr branch December 29, 2022 17:27
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

Successfully merging this pull request may close these issues.

2 participants