cleanx
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

cleanx

GitHub Actions Workflow Status version downloads

Configurable cleaning tool for JavaScript/TypeScript projects

Usage

npx cleanx

Features

  • Highly configurable - Custom profiles, patterns, and workspace-specific rules
  • Works with single projects and monorepos
  • Built-in cleaning profiles with sensible defaults
  • Dry-run mode to preview changes
  • Smart exclude patterns protect important files

Installation

pnpm add -D cleanx

Profiles

default - Cleans build outputs, keeps node_modules

dist/, build/, out/, coverage/, .cache/, .turbo/, .next/, etc.

full - Includes node_modules/

cleanx --profile=full

Configuration

Flexible configuration via cleanx.config.ts:

import { defineConfig } from "cleanx";

export default defineConfig({
  include: ["dist", ".turbo"],
  exclude: [".env", "important-file.json"],
  profiles: {
    ci: {
      include: ["coverage", ".cache"],
    },
  },
  workspaces: {
    "apps/*": {
      exclude: ["public/uploads"],
    },
  },
});

CLI Options

USAGE cleanx [OPTIONS]

OPTIONS

             --config    Path to config file
                --cwd    Set working directory
             --dryRun    Show what would be deleted without actually deleting
  --profile="default"    Cleaning profile to use

Package Sidebar

Install

npm i cleanx

Weekly Downloads

10

Version

1.1.0

License

MIT

Unpacked Size

88 kB

Total Files

8

Last publish

Collaborators

  • jimmy_codes