Skip to content

Rollup plugin used to copy markdown files to new destination which is determined by a function which is passed the frontmatter of the md document. This function can be supplied by the user, but the default function expects YAML arrays listing the paths with sub-arrays listing each section in that path.

License

Notifications You must be signed in to change notification settings

RossHathaway/rollup-plugin-copy-md-based-on-frontmatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rollup-starter-plugin

This repo contains bare-bones code for creating a Rollup plugin.

Getting started

Clone this repository and install its dependencies:

npx degit https://github.com/rollup/rollup-starter-plugin my-plugin
cd my-plugin
npm install
  1. Edit package.json

  2. Edit src/index.js

  • rename the starterPlugin function
  • change name: 'starter-plugin' to your plugin name
  • implement or delete the function stubs. See hooks guide
  1. Add your preferred test framework and implement tests

See conventions for writing Rollup plugins.

About

Rollup plugin used to copy markdown files to new destination which is determined by a function which is passed the frontmatter of the md document. This function can be supplied by the user, but the default function expects YAML arrays listing the paths with sub-arrays listing each section in that path.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published