go-aah / aah

A secure, flexible, rapid Go web framework
https://aahframework.org
MIT License
690 stars 33 forks source link

Exclude subfolders on building single #245

Closed radutopala closed 5 years ago

radutopala commented 5 years ago

We need to be able to exclude subfolders on build --single.

Right now, if specified like this: "./ui/public/*", "./ui/src/*", "./ui/test/*", they will still appear in vfs find.

jeevatkm commented 5 years ago

@radutopala I would like to understand directory structure for the project. Could you share some tree structure view?

PS: If you would like to share via slack DM is also okay for confidentiality, I would like to learn some sample tree if possible

jeevatkm commented 5 years ago

@radutopala Just to give you an insight into current implementation.

aah CLI takes file base name from walk func and does the filepath.Match call for excludes. That's why your above definition didn't work.

radutopala commented 5 years ago

@jeevatkm well, I did a workaround for now and I wasn't required to have this deep subfolders exclusion after all. But it would be nice to have this feature in the framework itself, to be able to exclude subfolders like "\<root>/ui/tests" OR full file paths "\<root>/ui/config/conf.dist".

jeevatkm commented 5 years ago

@radutopala Thanks for your input.

jeevatkm commented 5 years ago

It's done 😄