0.1.4 • Published 3 years ago

cem-plugin-readme v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

cem-plugin-readme

Generates a README.md file for a custom element package

Options

OptionTypeDescriptionDefault
fromstringabsolute path to package root2 dirs above the plugin
tostringrelative path from package root'README.md'
headingOffsetintegernumber of levels to offset generated markdown headings1
headerstringrelative path to header fileundefined
footerstringrelative path to footer fileundefined

Example

custom-elements-manifest.config.js

import { readmePlugin } from 'cem-plugin-readme';

export default {
  plugins: [
    readmePlugin({
      header: 'README.head.md',
      footer: 'README.foot.md',
    }),
  ]
}