-
Notifications
You must be signed in to change notification settings - Fork 93
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
Add options to exclude other directories #28
Comments
Asimov is always down for additional Time Machine exclusions! Right now, the list is defined as readonly FILEPATHS=(
"vendor ../composer.json"
"node_modules ../package.json"
".vagrant ../Vagrantfile"
"bower_components ../bower.json"
) The trick is making sure that excluded files have the matching configuration file that defines how that dependency should be built. For example, a The whole "only exclude a dependency if we have a matching config" is to prevent cases such as:
Also, tagging #6 here so I remember to write this down 😉 |
@stevegrunwell so something like this would be awesome |
So this would ignore any directory which has a plain
|
'The trick is to make sure there is a matching config file' is a pretty weak solution, since in many cases, there is no such config file to list. Additionally, asimov won't even accept a directory as a config 'file', when directories are clearly as likely to be a trigger a file is. We need an option for a second list of filenames which get matched, regardless of the presence of a trigger file. A directory named 'build' which is chock full of object files, libraries, and linked binaries is an utterly common occurrence, and there is no way to detect it unless there happens to be some file with a common name sitting in a parent directory - which is pretty much never the case. |
As a developer, I often have compiled folders in my project and I would like to exclude them as well from TimeMaschine. e.g.:
build
: (from web projects compiled from webpack)cache
,__pycache__
: (some shit programs create for caching)tmp
: (temporary files that the program needs but can easily be recreated)The text was updated successfully, but these errors were encountered: