@messageflow/clean-cli
CLI for @messageflow/clean
!NPMnodei-badgenodei-url
!Versionversion-badgeversion-url !Downloadsdownloads-badgedownloads-url !MIT Licensemit-license-badgemit-license-url !Code of Conductcoc-badgecoc-url
!Build Statustravis-badgetravis-url !Dependency Statusdaviddm-badgedaviddm-url !NSP Statusnsp-badgensp-url
!codebeat-badgecodebeat-url !codacy-badgecodacy-url
Yet another opinionated CLI to reset your working directory with @messageflow/cleanmessageflow-clean-url.
Table of contents
- Install - Run with npx (recommended) - Or, install globally - Usage- [With npx (recommended)](#with-npx-recommended)
Pre-requisites
- Node.jsnodejs-url >= 8.9.0
- NPMnpm-url >= 5.5.1 (NPMnpm-url comes with Node.jsnodejs-url so there is no need to install separately.)
Setup
Install
Run with npx (recommended)
# Run CLi with npx
$ npx -p @messageflow/clean-cli -- clean
Or, install globally
# Install via NPM globally
$ npm install --global @messageflow/clean-cli
Usage
With npx (recommended)
$ npx -p @messageflow/clean-cli -- clean --help
Usage
$ clean <path|glob> ...
Options
-i, --file Specify the path to read \`.gitignore\`
-p, --path Specify the glob patterns to delete files/ folders.
-f, --force Allow deleting the current working directory and outside
-d, --dry-run List what would be deleted instead of deleting
Examples
$ clean .
$ clean -i ./.gitignore
$ clean -i ./.gitignore -d
$ clean -p "**/src/**/*.js,**/src/**/*.d.ts,!gulpfile.js"