Skip to content

oscarmarina/cem-to-markdown-readme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom Element Manifest Plugin:

Generating README from custom-elements.json

cem-to-markdown-readme combines the functionality of two community plugins:

All configuration options are as described in this document - README-to-markdown, and it also utilizes an additional option, 'filename,' which corresponds to the 'file' option in the fs.writeFileSync(file, data[, options]) method.

Usage

Installation:

npm install --save-dev @blockquote/cem-to-markdown-readme

Import

Add the following code to your custom-elements-manifest.config.js:

import { cemToMarkdownReadme } from '@blockquote/cem-to-markdown-readme';

export default {
  plugins: [...cemToMarkdownReadme()],
};

Configuration options required to use the original to-markdown plugin by default.

// @override: {private:'details', headingOffset = 2, omitSections = ['super-class']}

export default {
  plugins: [
    ...cemToMarkdownReadme({
      private: 'all',
      headingOffset: 0,
      omitSections: [],
    }),
  ],
};

Configuration filename option.

export default {
  plugins: [
    ...cemToMarkdownReadme({
      filename: 'internal-readme.md',
    }),
  ],
};

About

Custom Element Manifest Plugin: Creates a README from a custom-elements.json

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published