# ng-builder-file-remover

> Angular 8+ builder for removing files

Latest version **13.0.0** (published 2022-08-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install ng-builder-file-remover
pnpm add ng-builder-file-remover
yarn add ng-builder-file-remover
bun add ng-builder-file-remover
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 13.0.0 |
| Published | 2022-08-15 |
| First published | 2019-10-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Bojan Kogoj |
| Maintainers | bojankogoj |
| Keywords | angular, builder, file remover |

## Links

- npm: https://www.npmjs.com/package/ng-builder-file-remover
- Repository: https://github.com/BojanKogoj/ng-builder-file-remover
- Homepage: https://github.com/BojanKogoj/ng-builder-file-remover#readme
- Issues: https://github.com/BojanKogoj/ng-builder-file-remover/issues
- npm.io page: https://npm.io/package/ng-builder-file-remover

## Recent versions

- 13.0.0 (latest) — 2022-08-15
- 0.1.6 — 2020-10-17
- 0.1.5 — 2020-10-17
- 0.1.4 — 2020-05-26
- 0.1.3 — 2020-02-28
- 0.1.2 — 2019-10-17
- 0.1.1 — 2019-10-17
- 0.1.0 — 2019-10-02

## README

# [Angular 8+ builder - file remover](https://github.com/BojanKogoj/ng-builder-file-remover)

![CircleCI](https://img.shields.io/circleci/build/github/BojanKogoj/ng-builder-file-remover?style=flat-square)
[![npm](https://img.shields.io/npm/v/ng-builder-file-remover?style=flat-square)](https://www.npmjs.com/package/ng-builder-file-remover)
![NPM](https://img.shields.io/npm/l/ng-builder-file-remover?style=flat-square)

Angular builder that removes specified files and folders.

## Usage

Install library in project root

```sh
npm i -D ng-builder-file-remover
```

In angular.json add configuration under architect

```json
"file-remover": {
    "builder": "ng-builder-file-remover:remove",
    "options": {
        "files": [
            "todelete.txt",
            "random_folder"
        ]
    }
},
```

And run it

```sh
ng run [project-name]:file-remover
```

This should output something similar to

```sh
> ng run builder-example:file-remover
Starting file removing
Deleted todelete.txt
Deleted random_folder
✔ Removing files finished successfully
```

## Version compatibility

Since Angular 13 library follows Angular version.

| Angular version | Library version |
| --------------- | --------------- |
| <13             | 0.1.6           |
| 13              | 13              |

## Development

To build run

```sh
npm install
npm run build
```

For testing you need to use existing or create a new Angular 8+ project

For creating a new project simply use

```sh
ng new remover-test-project
```

Go inside the project and in `angular.json` under architect add local path to the project.

```json
"file-remover": {
    "builder": "../ng-builder-file-remover:remove",
    "options": {
        "files": [
            "file.txt"
        ]
    }
},
```

Run the command

```sh
ng run remover-test-project:file-remover
```

---
_Source: https://npm.io/package/ng-builder-file-remover · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
