Skip to content

carlnordenfelt/metalsmith-move-remove

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

metalsmith-move-remove

Metalsmith plugin that move and/or removes files from the file structure.

Installation

$ npm install metalsmith-move-remove

Parameters

  • move: Array of objects with instructions for what to move and where
  • remove: Array of file regexp patterns to remove

Usage

var Metalsmith = require('metalsmith');
var moveRemove = require('metalsmith-move-remove');

var metalsmith = new Metalsmith(__dirname)
  .use(moveRemove({
    move: [
        { source: 'misplaced-file/index.html', target: 'correctly-placed-file.html' }
    ],
    remove: ['file-i-dont-want.html', 'another-file-i-dont-want']
  }))

#License

The MIT License (MIT)

#Change Log

Change Log

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages