website icon indicating copy to clipboard operation
website copied to clipboard

Document new pattern export options

Open bmuenzenmeyer opened this issue 5 years ago • 3 comments

see https://github.com/pattern-lab/patternlab-node/pull/1089

bmuenzenmeyer avatar Oct 29 '19 12:10 bmuenzenmeyer

@bmuenzenmeyer can you provide some additional context here? I can take care of the website.

bradfrost avatar Oct 29 '19 16:10 bradfrost

the thought was to add to https://patternlab.io/docs/advanced-exporting-patterns.html with the new options available on pattern-lab.config in the above linked PR:

  • patternExportAll

    • default: false
    • description: if true, overrides patternExportPatternPartials and instead exports all patterns
  • patternExportPreserveDirectoryStructure

    • default: true
    • description: if true, preserves the top-level pattern type structure (atoms/, molecules/, organisms/) during export. if false, all patterns are flatly exported to the patternExportDirectory
  • patternExportRaw

    • default: false
    • description: if true, exports the pattern's template file instead of the rendered html

bmuenzenmeyer avatar Oct 29 '19 16:10 bmuenzenmeyer

this is available with pattern lab https://github.com/pattern-lab/patternlab-node/releases/tag/v5.1.0

bmuenzenmeyer avatar Oct 29 '19 16:10 bmuenzenmeyer