Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

metalsmith-move-remove

carlnordenfelt21MIT0.0.1

A Metalsmith.io plugin that moves and removes files in the directory strucuture

Metalsmith.io, Move, Remove, Delete

readme

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

changelog

0.0.1

Initial release