Skip to content

Instantly share code, notes, and snippets.

@cwonrails
Created December 15, 2017 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cwonrails/b78b5e4ba975b298796b71bce1e70e3e to your computer and use it in GitHub Desktop.
Save cwonrails/b78b5e4ba975b298796b71bce1e70e3e to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
find node_modules \( -name '.*ignore' -o \
-name '.documentup.json' -o \
-name '.editorconfig' -o \
-name '.eslintrc' -o \
-name '.eslintrc.*' -o \
-name '.flowconfig' -o \
-name '.gitattributes' -o \
-name '.idea' -o \
-name '.jshintrc' -o \
-name '.nyc_output' -o \
-name '.tern-project' -o \
-name '.travis.yml' -o \
-name '.vscode' -o \
-name '.yarn-metadata.json' -o \
-name 'Gruntfile.js' -o \
-name 'Gulpfile.js' -o \
-name 'Makefile' -o \
-name 'appveyor.yml' -o \
-name 'assets' -o \
-name 'circle.yml' -o \
-name 'codeship*.yml' -o \
-name 'coverage' -o \
-name 'doc' -o \
-name 'docs' -o \
-name 'example' -o \
-name 'examples' -o \
-name 'images' -o \
-name 'powered-test' -o \
-name 'tests' -o \
-name '__tests__' -o \
-name 'website' -o \
-name 'wercker.yml' -o \) -exec rm -rf {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment