This repository was archived by the owner on Mar 31, 2020. It is now read-only.
Allow an actual buildDir to be set and only delete versioned files #70
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is in response to #66
This is my first nodejs change so I'm expecting it to need updating, it also removes some previous 'features' in the default instance.
Whatever is passed as the second parameter to
version
is now used, as-is, for the build path (no/build
is appended). This allows the files to be created wherever someone might want them.Only files that are defined within the
rev-manifest.json
file are deleted now. Since it's possible to put the files in any folder we can't just delete everything because things will go missing (as I learnt while developing this). This does mean that if you're using the default setup that empty folders won't get deleted, but it's highly likely they would just've been re-created anyway.The duplicated
app.css
files that would be created by the versioning aren't cleaned up after the versioning. They aren't deleted at the start when deleting the pervious versioned files since it's possible that we wouldn't be deleting the duplicated file but the original.Map files are only copied if the new location doesn't match the old location.