Add NPM clean script to restore project & remove sizeable pkg deps #213
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 cleans up the environment, targeting
dist/andnode_modulesdirectories in particular and restoring the project to more or less the same state as a fresh git clone (i.e., after runninggit clone <url>but before runningnpm installornpm run build. This applies to theexamples/subdirs, too, which can be 2+GB in total since they include Puppeteer, which in turn includes separate versions of Chromium.I just happened to catch this today b/c I was clearing space on my hard drive and realized my local version of this repo was using up 2.5GB all on its own. After running the clean script it went down to 17.4MB.
I've also installed rimraf ("
rm -rffor node in a cross-platform implementation") and updated all the other NPM deps.I just ran the tests, however, for the example projects, which appear to be failing. So with that in mind, I'm opening this as a draft for now, since I don't have time to test more thoroughly, will update if I get more time to come back to this....