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

Remove generated "website/node_modules"'s files from project #2299

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

Jarod42
Copy link
Contributor

@Jarod42 Jarod42 commented Oct 14, 2024

What does this PR do?

According to #2294 comments, there is a slowdown
so removing the extra generated files under website/node_modules

How does this PR change Premake's behavior?

No behavior change.

Anything else we should know?

@tritao: is it ok like that?

Did you check all the boxes?

  • Focus on a single fix or feature; remove any unrelated formatting or code changes
  • Add unit tests showing fix or feature works; all tests pass
  • Mention any related issues (put closes #XXXX in comment to auto-close issue when PR is merged)
  • Follow our coding conventions
  • Minimize the number of commits
  • Align documentation to your changes

You can now support Premake on our OpenCollective. Your contributions help us spend more time responding to requests like these!

premake5.lua Outdated Show resolved Hide resolved
@tritao
Copy link
Contributor

tritao commented Oct 14, 2024

removefiles "website/node_modules/**" -- 400+ generated files

Unfortunately that doesn't really fix the slowdown as Premake still enumerates everything.

I can see at least two potential solutions:

  1. Update os.matchfiles/match to allow being passed a blacklist (and update premake.field.kind("file", { to not recurse into node_modules, kind of an hack, but seems reasonable)
  2. Change premake5.lua website files and just pass all directories manually

@Jarod42
Copy link
Contributor Author

Jarod42 commented Oct 14, 2024

Unfortunately that doesn't really fix the slowdown as Premake still enumerates everything.

It was my doubt.

  1. Change premake5.lua website files and just pass all directories manually

Done

premake5.lua Outdated Show resolved Hide resolved
@tritao
Copy link
Contributor

tritao commented Oct 14, 2024

That works. 👍

Co-authored-by: João Matos <[email protected]>
Copy link
Member

@KyrietS KyrietS left a comment

Choose a reason for hiding this comment

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

Great! Thanks to you both 🤗

@KyrietS KyrietS merged commit cfb75fd into premake:master Oct 14, 2024
15 checks passed
@Jarod42 Jarod42 deleted the remove_website_node_modules branch October 15, 2024 12:24
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