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
Tmp dir naming #262
Comments
Ordering the temp directories by use order would work well for us. We don't care a whole lot about tracking the pid as we clean the temp dir when killing gulp. Just naming the temp dirs something more informative would be a bit nicer. @IgorMinar has more insight into the angular use case, so cc-ing him |
Somewhat related: Should we consider a different name for the temporary directory itself? I could imagine a case where a project has an existing |
@cecchi, yes, unless there are unforeseen issues with this, we'll likely use the system |
|
broccoli 1.x has this Lines 272 to 292 in 0bc034c
|
/cc @rwjblue, @stefanpenner, @caitp
When tmp dir handling is centralized, what do we want the names of the temporary directories to be?
Currently we have names like
babel-tmp_dest_dir-kbIdaoyR.tmp
, which isn't terribly user-friendly.Are we going to do something like this (numbered by order of execution), or should we try to put more information into the names?
If we wanted to put more information (like
01-babel-lib
,02-babel-vendor
), it would likely have to be supplied by the build definition (likeBrocfile.js
orember-app.js
). I have no idea whether this is doable in practice. But if we plan on doing this, I'd like to take it into account for the API.Semi-relatedly, currently everything is in
./tmp
, but we likely want to change this. I'm thinking maybe/tmp/broccoli.$PID/trees/01-babel
for the output directory of the first plugin, and/tmp/broccoli.$PID/caches/01-babel
for its cache directory. Alternatively, we could use/tmp/broccoli.$PID/01-babel/{out,cache}
, and create symlinks at/tmp/broccoli.$PID/01-babel/in-{0,1,2,3,4,5}
pointing to the input directories; those symlinks would not be used by Broccoli, but created for the convenience of people inspecting the tmp dirs.The text was updated successfully, but these errors were encountered: