spire-plugin-clean
Spire plugin to remove files matching
.gitignore
. Unstaged files are kept by default
Hooks
-
setup
Addsclean
command. -
run
Runsgit clean
command.
Options
-
Plugin
['spire-plugin-clean', options]
-
command
<string> Command to run on. Defaults toclean
. -
keep
<Array<string>> Glob of files to keep even if matched. Defaults to['node_modules/', '.vscode/', '.atom/', '.idea/', '.sublime-project/']
.
-
-
CLI
npx spire clean [args]
- Passes all arguments as-is to
git clean
-
Tip: use
npx spire clean --dry-run
to check which files would be removed.
- Passes all arguments as-is to