All Projects → metalsmith → remove

metalsmith / remove

Licence: MIT license
A Metalsmith plugin to remove files from the build

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to remove

permalinks
A Metalsmith plugin for permalinks.
Stars: ✭ 61 (+221.05%)
Mutual labels:  metalsmith, metalsmith-plugin
headings
A Metalsmith plugin that extracts headings from HTML files and attaches them to the file's metadata.
Stars: ✭ 22 (+15.79%)
Mutual labels:  metalsmith, metalsmith-plugin
markdown
A metalsmith plugin to render markdown files to HTML.
Stars: ✭ 58 (+205.26%)
Mutual labels:  metalsmith, metalsmith-plugin
metalsmith-imagemin
Metalsmith plugin to minify images
Stars: ✭ 17 (-10.53%)
Mutual labels:  metalsmith
metalsmith-paths
Metalsmith plugin that adds file path values to metadata
Stars: ✭ 19 (+0%)
Mutual labels:  metalsmith
metalsmith-request
Metalsmith plugin to grab content from the web and expose the results to metadata
Stars: ✭ 12 (-36.84%)
Mutual labels:  metalsmith
Metalsmith
An extremely simple, pluggable static site generator.
Stars: ✭ 7,692 (+40384.21%)
Mutual labels:  metalsmith
metalsmith-html-minifier
A Metalsmith plug-in to minify HTML files
Stars: ✭ 23 (+21.05%)
Mutual labels:  metalsmith
Node Fs Extra
Node.js: extra methods for the fs object like copy(), remove(), mkdirs()
Stars: ✭ 8,142 (+42752.63%)
Mutual labels:  remove
streetsupport-web
Helping people facing homelessness across the UK to find services in their area, and connecting people who want to help to where it is needed most.
Stars: ✭ 21 (+10.53%)
Mutual labels:  metalsmith
metalsmith-babel
A Metalsmith plugin to compile JavaScript with Babel
Stars: ✭ 19 (+0%)
Mutual labels:  metalsmith
metalsmith-jquery
A Metalsmith plugin to manipulate HTML via jQuery syntax
Stars: ✭ 13 (-31.58%)
Mutual labels:  metalsmith
directus-metalsmith-snipcart
Lookbook web app with Directus' open source headless CMS, Metalsmith, Vue.js & Snipcart
Stars: ✭ 14 (-26.32%)
Mutual labels:  metalsmith
metalsmith-code-highlight
Metalsmith plugin for syntax highlighting code with HTML
Stars: ✭ 14 (-26.32%)
Mutual labels:  metalsmith
Gray Matter
Contributing Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Stars: ✭ 2,105 (+10978.95%)
Mutual labels:  metalsmith
Dropcss
An exceptionally fast, thorough and tiny unused-CSS cleaner
Stars: ✭ 2,102 (+10963.16%)
Mutual labels:  remove
wastebasket
A crossplatform go library for moving files to the trashbin
Stars: ✭ 30 (+57.89%)
Mutual labels:  remove
omit-empty
Recursively omit empty properties from an object. Omits empty objects, arrays, strings, and optionally zero. Similar results to what you would expect with `compact` for arrays.
Stars: ✭ 71 (+273.68%)
Mutual labels:  remove
Staticman
💪 User-generated content for Git-powered websites
Stars: ✭ 2,098 (+10942.11%)
Mutual labels:  metalsmith
metalsmith
An extremely simple, pluggable static site generator.
Stars: ✭ 7,721 (+40536.84%)
Mutual labels:  metalsmith

@metalsmith/remove

A Metalsmith plugin to remove files from the build

metalsmith: core plugin npm: version ci: build code coverage license: MIT

Use @metalsmith/remove to discard files from the build output after their metadata and contents have been read and used by plugins. While Metalsmith#ignore ignores the matched files completely, @metalsmith/remove only removes them at the point the plugin is use'd.

Installation

NPM:

npm install @metalsmith/remove

Yarn:

yarn add @metalsmith/remove

Usage

Pass the plugin with options to Metalsmith#use:

import remove from '@metalsmith/remove'

metalsmith.use(remove('drafts/*')) // single pattern
metalsmith.use(remove(['drafts/*', 'unfinished/*'])) // multiple patterns

Debug

To enable debug logs, set the DEBUG environment variable to @metalsmith/remove*:

metalsmith.env('DEBUG', '@metalsmith/remove*')

Alternatively you can set DEBUG to @metalsmith/* to debug all Metalsmith core plugins.

CLI Usage

To use this plugin with the Metalsmith CLI, add @metalsmith/remove to the plugins key in your metalsmith.json file:

{
  "plugins": [{ "@metalsmith/remove": "drafts/*" }]
}

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

{
  "plugins": [{ "@metalsmith/remove": ["drafts/*", "unfinished/*"] }]
}

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].