Metalsmith plugin that move and/or removes files from the file structure.
$ npm install metalsmith-move-remove
move
: Array of objects with instructions for what to move and whereremove
: Array of file regexp patterns to remove
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
#Change Log