metalsmith-ignore
A Metalsmith plugin to ignore files that match a pattern.
Last updated 2 years ago by woodyrew .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install metalsmith-ignore 
SYNC missed versions from official npm registry.

metalsmith-ignore

A Metalsmith plugin to ignore files that match a pattern. Uses multimatch for matching.

Installation

$ npm install metalsmith-ignore

CLI Usage

Install via npm and then add the metalsmith-ignore key to your metalsmith.json plugins. The simplest case just ignores a single pattern:

{
  "plugins": {
    "metalsmith-ignore": "drafts/*"
  }
}

But you can also pass an array of patterns to ignore:

{
  "plugins": {
    "metalsmith-ignore": [
      "drafts/*",
      "unfinished/*"
    ]
  }
}

Javascript Usage

Pass the options to Metalsmith#use:

var ignore = require('metalsmith-ignore');

metalsmith.use(ignore('drafts/*'));

You can also pass an array of patterns to ignore:

var ignore = require('metalsmith-ignore');

metalsmith.use(ignore([
  'drafts/*',
  'unfinished/*'
]));

License

MIT

Current Tags

  • 1.0.0                                ...           latest (2 years ago)

5 Versions

  • 1.0.0                                ...           2 years ago
  • 0.1.2                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
  • 0.0.1                                ...           6 years ago

Copyright 2014 - 2017 © taobao.org |