This package has been deprecated

Author message:

This plugin is no longer developed

docpad-plugin-combiner

2.0.8 • Public • Published

Combiner Plugin for DocPad

Build Status NPM version Dependency Status Gittip donate button Bitdeli Badge

Convention:

Join file parts together of any type. Can be any file type. Can be mixed with layouts too

Example:

  • test.js

      ---
      combine: true
      outPath: scripts/myScript.js
      write: false # prevents "Rename one of them to avoid an over-write" message
      ---
      function foo(){}
    
  • anothTest.js.coffee

      ---
      combine: true
      outPath: scripts/myScript.js
      write: false # prevents "Rename one of them to avoid an over-write" message
      ---
      ### coffeescript ###
      bar ->
    
  • out: scripts/myScript.js:

      function foo(){}
      
      /* coffeescript
      */
      
      bar(function() {});
    

Install

npm install --save docpad-plugin-combiner

Configure

combiner:
    # default collection name
    collectionName: "combineOut"
    # default sort comparator
    comparator: [filename: 1]

For more info on the sort comparator see Query Engine Guide

License

Licensed under the incredibly permissive MIT License
Copyright © 2013+ [Stringz Solutions Ltd]
Copyright © 2013+ Peter Flannery

Readme

Keywords

none

Package Sidebar

Install

npm i docpad-plugin-combiner

Weekly Downloads

10

Version

2.0.8

License

none

Last publish

Collaborators

  • pflannery