Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.
/ tsc-cleaner Public archive

Small and simple lib for cleaning build files and folders before or after node builds (tsc (typescript), webpack, etc.).

License

Notifications You must be signed in to change notification settings

weroro-sk/tsc-cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Info

The library is outdated. Use rimraf instead.


tsc-cleaner

Small and simple lib for cleaning build files and folders before or after node builds (tsc (typescript), **webpack **, etc.).

The library is usable on Windows and Unix-like systems (macos, linux, ...)


NPM version GitHub version GitHub release (latest by date)


Installation

Manager Command
NPM npm install -D tsc-cleaner
YARN yarn add -D tsc-cleaner
PNPM pnpm add -D tsc-cleaner

Usage

Command line

npx tsc-cleaner [--arguments]

example:

npx tsc-cleaner --dir=dir_path

npx tsc-cleaner --file=file_path

npx tsc-cleaner --dir=dir_path --file=file_path

Javascript

const clean = require('tsc-cleaner');

clean({dir: 'dir_path'});

clean({file: 'file_path'});

clean({dir: 'dir_path', file: 'file_path'});

Argument dir is always recursive


Use in practice

(package.json)

{
  "scripts": {
    "prebuild": "tsc-cleaner --dir=lib",
    "build": "tsc",
    "build:pack": "npm run build && npm pack"
  }
}

License

MIT © Dárius Bokor

About

Small and simple lib for cleaning build files and folders before or after node builds (tsc (typescript), webpack, etc.).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published