Closed KyleRoss closed 7 years ago
Release 2.0.0
patterns.json
patterns
ignore
ignorePatterns
process
additionalPatterns
dotFiles
.DS_Store
Thumbs.db
beforeFind
beforeEmptyDirs
emptyDirs
emptyDirError
afterEmptyDirs
deletedEmptyDir
node-dir
subdirs
colors
chalk
empty-dir
async-each-series
extend
lodash.uniq
-n, --patterns
-d, --empty
-D, --modules-dir
-a, --additional-patterns
-k, --keep-empty
--no-dotfiles
inquirer
clui
If you still need to support Node < v6.9, use ModClean 1.3.0 instead. For more information about these changes, refer to the README.
Release 2.0.0
ModClean API Changes
patterns.json
file, instead uses plugins to allow further customization.patterns
option now takes array of pattern plugins instead of patterns. See README for more information.ignore
option has been renamed toignorePatterns
.process
option now is sync with only 1 argument and async with 2.additionalPatterns
option that takes array of glob patterns to use with any provided pattern plugins.dotFiles
option that allows disabling of removing dot files.process
event which will be fired before the files start processing..DS_Store
andThumbs.db
files.beforeFind
event.beforeEmptyDirs
event.emptyDirs
event.emptyDirError
event.afterEmptyDirs
event.deletedEmptyDir
event.node-dir
dependency withsubdirs
.colors
dependency withchalk
.empty-dir
dependency.async-each-series
dependency.extend
dependency.lodash.uniq
dependency.ModClean CLI Changes
-n, --patterns
option now takes list of plugins instead of a pattern rule name.-d, --empty
option.-D, --modules-dir
option.-a, --additional-patterns
option.-k, --keep-empty
option.--no-dotfiles
option.inquirer
dependency in favor ofclui
and utility functions.If you still need to support Node < v6.9, use ModClean 1.3.0 instead. For more information about these changes, refer to the README.