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

Make the assets configuration more powerful #4

Closed
rtxa opened this issue Apr 3, 2022 · 4 comments · Fixed by #8
Closed

Make the assets configuration more powerful #4

rtxa opened this issue Apr 3, 2022 · 4 comments · Fixed by #8

Comments

@rtxa
Copy link

rtxa commented Apr 3, 2022

Right now the way the assets are copied works fine for simple projects, it will just copy the entire folder. But for more complex projects, it will be useful to have the ability to exclude some folders, to add more folders for copying, maybe the ability to avoid copying sub-dirs inside that dir. Doing this will avoid the necessity to use external scripts.

To put it more clear, these are some of the options I would like to see implemented:

  • Exclude folders for copying
  • Being able to add more folders for copying
  • Have the ability to choose if we need to copy also subdirs
  • Limit copying by file extension.

For example, I have my project (AG Mod X) which has assets like maps, models and sprites which are fine for those, but I have too files that are platform dependent like the server binaries (custom DLLs, Metamod, etc.). We need to have the ability to export assets by platform, like having two folders inside dist, one for Windows for Linux. Right now this stops me from using AMXXPack to its full potential.

How can this be implemented? I'm not sure, maybe I can give a draft how this will look inside the .amxxpack.json if you are interested.

@Hedgefog
Copy link
Owner

Work in Progress: #7

@rtxa
Copy link
Author

rtxa commented Nov 1, 2022

Good you are on this, I'll test it when it's ready :)

@Hedgefog Hedgefog mentioned this issue Nov 12, 2022
@Hedgefog
Copy link
Owner

Hedgefog commented Nov 12, 2022

Added the ability to use multiple directories for src, includes, assets. Using new functionality with various configurations will partially cover the described case.
Check https://github.com/Hedgefog/cs-halloween-mod to see an example of using multiple configurations.

@Hedgefog Hedgefog mentioned this issue Nov 13, 2022
@Hedgefog
Copy link
Owner

Use objects with dir and filter fields for assets input instead of a string. More info: https://github.com/Hedgefog/node-amxxpack#assets-filtering-and-subdirectories

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 a pull request may close this issue.

2 participants