Skip to content
No description, website, or topics provided.
JavaScript Makefile
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
tests/unit
.editorconfig
.gitignore
CHANGELOG.md
LICENSE
Makefile
README.md
package.json

README.md

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

You can’t perform that action at this time.