metalsmith-move-remove

0.0.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    0

Package Sidebar

Install

npm i metalsmith-move-remove

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • polythene