Skip to content

metalsmith/core-plugin

Repository files navigation

Note: This is a template repository

Usage:

  1. Click "Use this template", see also https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template, fill in new plugin details
  2. Search and replace all core-plugin CorePlugin and corePlugin matches with the name of the plugin
  3. Change description in package.json & match in repo description
  4. Remove this text

@metalsmith/core-plugin

A metalsmith plugin to...

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

Features

An optional features section (if there are many), or an extended description of the core plugin

Installation

NPM:

npm install @metalsmith/~core-plugin~

Yarn:

yarn add @metalsmith/~core-plugin~

Usage

Pass @metalsmith/~core-plugin~ to metalsmith.use :

import ~corePlugin~ from '@metalsmith/~core-plugin~'

metalsmith.use(~corePlugin~()) // defaults
metalsmith.use(~corePlugin~({  // explicit defaults
  ...
}))

Options

Optional section with list or table of options, if the plugin has a lot of options

Specific usage example

Document a first specific usage example, the title can be "Achieve x by doing y"

Specific usage example

Document a second specific usage example, the title can be "Achieve x by doing y"

Debug

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

metalsmith.env('DEBUG', '@metalsmith/~core_plugin~*')

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/~core-plugin~ to the plugins key in your metalsmith.json file:

{
  "plugins": [
    {
      "@metalsmith/~core-plugin~": {}
    }
  ]
}

Credits (optional)

Special thanks to ... for ...

License

MIT

About

Metalsmith core plugin boilerplate

Resources

License

Stars

Watchers

Forks

Packages

No packages published