1.0.1 • Published 1 year ago

@pkg-tools/clean v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@pkg-tools/clean

A build artifact cleaning tool with typed configuration.

@pkg-tools/clean::version @pkg-tools/clean::downloads

This CLI is a thin abstraction on top of ShellJs. It centralizes our usage of ShellJS's rm command.

Install

# w/ pnpm
pnpm add -D @pkg-tools/clean @pkg-tools/config

# w/ yarn
yarn add -D @pkg-tools/clean @pkg-tools/config

# w/ npm
npm install -D @pkg-tools/clean @pkg-tools/config

Usage

In your package.json, you can use the exported cli clean in your clean script e.g.

"scripts": {
  "clean": "clean"
}

Configure

Define a pkg.config.ts in the root of your package and add the following.

import { defineConfig } from '@pkg-tools/config';

export default defineConfig({
  clean: {
    directory: './dist',
  },
});

License

MIT

1.0.1

1 year ago

1.0.0

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago

0.1.1

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago