Last active
January 17, 2023 17:31
-
-
Save TylerSustare/9d0bf8ac4dfef8c9f74dce7da9386ab4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'fileutils' | |
FileUtils.rm_r Dir.glob './**/node_modules' | |
FileUtils.rm_r Dir.glob './**/dist' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find . -name node_modules -type d -print0 | xargs -0 rm -r --; | |
find . -name dist -type d -print0 | xargs -0 rm -r -- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
chmod +x clean.sh