-
Notifications
You must be signed in to change notification settings - Fork 2
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
Config based on file extensions instead of profiles #5
Comments
@RobertLang Yes, hat a similar idea but currenlty less time to refactor the tool. My idea was to allow extension configuration for each directory. in this way: ---
watch:
- dir: /tmp/watch1
extensions:
- ".scss"
- ".js"
- ".twig"
- dir: /tmp/watch2
extensions:
- ".foo"
- ".bar"
- ".js" |
cmuench
added a commit
that referenced
this issue
Dec 30, 2020
Change config structure. Allow definition of extensions and a profile on directory level. TODO: Find a solution to pass config entry in dir walker visit function.
@RobertLang New feature is released. Example Config: ---
watch:
- directory: /tmp/watch1
profile: magento2
- directory: /tmp/watch2
profile: vue-storefront
- directory: /tmp/watch3
extensions: [.css, .html] |
Thanks a lot :-) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
we just recently discovered your project and it has helped us already in fixing those watcher issues under MacOS and Docker.
Unfortunately the profile definitions are a bit limited and are always missing the one or the other file type (for example *.scss in magento2)
So I would suggest to extend the configuration file to provide some sort ruleset for watched file extension:
watch:
extensions:
I think this would make it easier to specifically watch the files needed for different technology types instead of having to watch all files if none of the given profiles match.
Thanks for considering,
Robert
The text was updated successfully, but these errors were encountered: