metalsmith-del

1.0.0 • Public • Published

metalsmith-del Build Status

Delete files and folders using globs.

Removes files and folders matching the passed globs, using Sindre Sorhus' multimatch. It also recognizes dot-files and -folders.

Install

$ npm install metalsmith-del

Usage

const metalsmith = require('metalsmith')
const del = require('metalsmith-del')
 
metalsmith(__dirname)
    .source('src/')
    .destination('build/')
    .del([ // Remove hidden folders and files
        'build/**/.*'
    ])
    .build()

API

del(globs)

globs

Type: Array of string

Array of glob to match files and directories against. Matching files and directories are being removed from the destination-folder.

License

MIT © Florian Breisch

Readme

Keywords

none

Package Sidebar

Install

npm i metalsmith-del

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

2.88 kB

Total Files

4

Last publish

Collaborators

  • florianb