Angular 8+ builder - file remover

CircleCI npm NPM

Angular builder that removes specified files and folders.

Usage

Install library in project root

npm i -D ng-builder-file-remover

In angular.json add configuration under architect

"file-remover": {
    "builder": "ng-builder-file-remover:remove",
    "options": {
        "files": [
            "todelete.txt",
            "random_folder"
        ]
    }
},

And run it

ng run [project-name]:file-remover

This should output something similar to

> ng run builder-example:file-remover
Starting file removing
Deleted todelete.txt
Deleted random_folder
✔ Removing files finished successfully

Development

To build run

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

ng new remover-test-project

Go inside the project and in angular.json under architect add local path to the project.

"file-remover": {
    "builder": "../ng-builder-file-remover:remove",
    "options": {
        "files": [
            "file.txt"
        ]
    }
},

Run the command

ng run remover-test-project:file-remover

Last updated

v0.1.6

Install

npm install ng-builder-file-remover
yarn add ng-builder-file-remover

BUNDLE SIZE

Not Available

DOWNLOAD TIME

Not Available

CDNs

extras

Contributors

  • BojanKogoj