Introduces logic to exclude all build directory folders by default in new snapshots with an option to include them if needed. (node_modules, bower_components)
Benefits
Will result in smaller snapshot sizes and faster installs
Possible Drawbacks
Users will need to run 'npm install' on their local machines when they need to build files. This doesn't seem to be too big of an issue, as the packages are likely out of date and would need a pull from the repo and reinstall in any case.
Verification Process
Ran original wpsnapshots create command without any changes and noted the size of the snapshot zip file (178.8MB)
Made changes and ran wpsnapshots create command and noted the size of the snapshot zip file (131.6MB)
Checked zip to ensure node_modules folders are not included
Ran wpsnapshots create --include_build_files and verified the zip was created without the build folders.
Description of the Change
Introduces logic to exclude all build directory folders by default in new snapshots with an option to include them if needed. (node_modules, bower_components)
Benefits
Will result in smaller snapshot sizes and faster installs
Possible Drawbacks
Users will need to run 'npm install' on their local machines when they need to build files. This doesn't seem to be too big of an issue, as the packages are likely out of date and would need a pull from the repo and reinstall in any case.
Verification Process
wpsnapshots create
command without any changes and noted the size of the snapshot zip file (178.8MB)wpsnapshots create
command and noted the size of the snapshot zip file (131.6MB)wpsnapshots create --include_build_files
and verified the zip was created without the build folders.Checklist: