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!: move shared to data #538

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

refactor!: move shared to data #538

wants to merge 2 commits into from

Conversation

solareon
Copy link
Contributor

Description

Apparently the shared folder is just one that folks skip when they update. This moves those files to the data folder where they can be more immutable. This will obviously break stuff from bad people that do things like require '@qbx_core.shared.items' but those should be few and far between.

Checklist

  • I have personally loaded this code into an updated Qbox project and checked all of its functionality.
  • My pull request fits the contribution guidelines & code conventions.

Copy link
Member

@Manason Manason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These could also be moved to config/shared. Something to consider.

@solareon
Copy link
Contributor Author

These could also be moved to config/shared. Something to consider.

yeah that's a better place. marking draft for now and i'll fix it.

@solareon solareon marked this pull request as draft August 17, 2024 14:15
@solareon solareon marked this pull request as ready for review August 19, 2024 10:13
@solareon
Copy link
Contributor Author

Moved it to config/shared

@mafewtm
Copy link
Member

mafewtm commented Aug 19, 2024

I think we should just stick with them being in a data folder like this was originally supposed to be tbh. They aren't configs.

'shared/items.lua',
'shared/jobs.lua',
'shared/locations.lua',
'data/*.lua',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also this is no longer needed currently

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch. i'm not opposed to either solution. just kind of needs to be in it's own place away from actual "code" that needs to execute

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.

3 participants